Skip to content

移植到ShadowPath(IOS)中编译失败 #46

Description

Please answer these questions before submitting your issue. Thanks!

What version of shadowsocks-libev are you using?

2.5.3

What operating system are you using?

Mac OS Mojave 10.14.1 (18B75)

What did you do?

replace the shadowsocks-libev in the ShadowPath with this shadowsocksr-libev,and run compile.

What did you expect to see?

Compile successfully

What did you see instead?

tunnel.c

jconf_t *conf = read_jconf(conf_path);
        if (remote_num == 0) {
            remote_num = conf->remote_num;
            for (i = 0; i < remote_num; i++)
                remote_addr[i] = conf->remote_addr[i];
        }
        if (remote_port == NULL) {
            remote_port = conf->remote_port;
        }
        if (local_addr == NULL) {
            local_addr = conf->local_addr;
        }
        if (local_port == NULL) {
            local_port = conf->local_port;
        }
        if (password == NULL) {
            password = conf->password;
        }
        // SSR beg
        if (protocol == NULL) {
            protocol = conf->protocol;
            LOGI("protocol %s", protocol);
        }
        if (protocol_param == NULL) {
            protocol_param = conf->protocol_param;
            LOGI("protocol_param %s", protocol_param);
        }
        if (method == NULL) {
            method = conf->method;
            LOGI("method %s", method);
        }
        if (obfs == NULL) {
            obfs = conf->obfs;
            LOGI("obfs %s", obfs);
        }
        if (obfs_param == NULL) {
            obfs_param = conf->obfs_param;
            LOGI("obfs_param %s", obfs_param);
->No member named 'remote_num' in 'jconf_t'
->No member named 'remote_addr' in 'jconf_t'
->No member named 'remote_port' in 'jconf_t'
->No member named '......' in 'jconf_t'

if (method) {
        server->e_ctx = ss_malloc(sizeof(struct enc_ctx));
        server->d_ctx = ss_malloc(sizeof(struct enc_ctx));
        enc_ctx_init(&cipher_env, server->e_ctx, 1);
        enc_ctx_init(&cipher_env, server->d_ctx, 0);
Use of undeclared identifier 'cipher_env'
Use of undeclared identifier 'cipher_env'

What is your config in detail (with all sensitive info masked)?

Xcode Version 10.1 (10B61)
config.h I generated it

原版的ShadowPath就可以编译,换了这个之后就失败了。不知道什么情况,希望作者大大能帮忙看下,谢谢了。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions