AnhTVc / OpenVPN-IOS

Build OpenVPN source for IOS
GNU General Public License v3.0
124 stars 53 forks source link

Help ,i have errors. #1

Open hfchui opened 7 years ago

hfchui commented 7 years ago

When I exec. bash build-openvpn.sh, I got errors like

...... make[2]: No rule to make target .gitignore', needed byall-am'. Stop. make[1]: [all-recursive] Error 1 make: *** [all] Error 2

Will you give some help?

AnhTVc commented 7 years ago

you check data in folder: OpenVPN-IOS/Submodules

cd OpenVPN-IOS/Submodules

git clone https://github.com/chrisballinger/hans/tree/893ac91eaf080b43170b839b22f9086f0dbc648d

git clone https://github.com/chrisballinger/openvpn/tree/0f77573024e69c34ec8a5cbc0744e126ad73de27

hope to help you!

hfchui commented 7 years ago

Thanks! Solved! Old errors have vanished. But I've met new problems. When I build the project with XCode8.2, the latest version, scheme choosing iPhone7 simulator, I've got errors as follows,

ld: warning: ignoring file /Users/a-a-dev/dev/OpenVPN-IOS-master/dependencies/lib/libopenvpn.a, missing required architecture x86_64 in file /Users/a-a-dev/dev/OpenVPN-IOS-master/dependencies/lib/libopenvpn.a (1 slices) Undefined symbols for architecture x86_64: "_openvpn_main", referenced from: ___31-[VPNWrapper startWithOptions:]_block_invoke in VPNWrapper.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

When I add x86_64 to variable ARCHS as ARCHS="armv7 x86_64" in file build-openvpn.sh, it doesn't work. Will you give some advice? 3X!

AnhTVc commented 7 years ago

I guess, because can't link to lib: libopenvpn.a Try one of the following ways

if you can not contact me, I will send you my builds.

t4nja commented 7 years ago

I got the same error (I'm building to device with the newest openvpn). Did you find the way around?

Undefined symbols for architecture arm64: "_openvpn_main", referenced from: ___31-[VPNWrapper startWithOptions:]_block_invoke in VPNWrapper.o ld: symbol(s) not found for architecture arm64

angrykub commented 7 years ago

I got the same error, too; I think libopenvpn.a don't export the function what "openvpn_main",can you tell me how to solve this error?

AnhTVc commented 7 years ago

clone project, try with device armv7. My project in github is available with device armv7.

This error happens with version openvpn, please try version orther in: https://github.com/OpenVPN/openvpn/releases

ScottZg commented 7 years ago

would you mind update your proj to latest?

or sending your builds to me at zhanggui925@gmail.com

liuxn2015 commented 7 years ago

Can you send your builds to me ? Whether openvpn needs to apply for an interface to Apple?hiningbaba@gmail.com,Thanks

AnhTVc commented 7 years ago

I updated lib. Now you can clone project using with device: armv7 arm64 formerly, we need NDA with apple. But, now we need not. Apple have NEPacketTunnelProvider allow open tunnel, link

liuxn2015 commented 7 years ago

my device is iphone se , and i get a error :Undefined symbols for architecture x86_64: "_openvpn_main", referenced from: ___31-[VPNWrapper startWithOptions:]_block_invoke in VPNWrapper.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation).

liuxn2015 commented 7 years ago

Does your lib only support armv7 arm64?

AnhTVc commented 7 years ago

please using device armv7 arm64 not Simulator I only public build support armv7 arm64 , If you want full, contact me by email 2017-06-14 11:07 GMT+07:00 HiNing notifications@github.com:

my device is iphone se , and i get a error :Undefined symbols for architecture x86_64: "_openvpn_main", referenced from: ___31-[VPNWrapper startWithOptions:]_block_invoke in VPNWrapper.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation).

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/AnhTVc/OpenVPN-IOS/issues/1#issuecomment-308314172, or mute the thread https://github.com/notifications/unsubscribe-auth/AL6ECRSAq-h0UEWXbA47ghbPcGZq0VIwks5sD1yTgaJpZM4MN4cX .

mantra-valuecoders commented 7 years ago

@AnhTVc, I am trying to run the code but facing below errors.

Undefined symbols for architecture arm64: "_append_three_string", referenced from: _add_route in libopenvpn.a(route.o) "_append", referenced from: _openvpn_main in libopenvpn.a(openvpn.o) _write_to_ip_client in libopenvpn.a(route.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Looking forward for your prompt reply.

Regards

AnhTVc commented 7 years ago

please run with device iphone not Simulator

AntonieWilson commented 7 years ago

@AnhTVc, How to build with arm64 device?

I have the same link error. Undefined symbols for architecture arm64: "_append_three_string", referenced from: _add_route in libopenvpn.a(route.o) "_append", referenced from: _openvpn_main in libopenvpn.a(openvpn.o) _write_to_ip_client in libopenvpn.a(route.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Looking forward for your reply.

Best Regards

AnhTVc commented 7 years ago

retry with iPhone 5 If necessary, I will send you the build for arm64. Please contact my email

AlishahSolanki commented 7 years ago

i have also i have tried to build on iphone 6 plus but i wont work can you send me your build at alishah.solanki@gmail.com Thanks

AlishahSolanki commented 7 years ago

"_openvpn_main", referenced from: ___31-[VPNWrapper startWithOptions:]_block_invoke in VPNWrapper.o ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

AnhTVc commented 7 years ago

@solanki12 Your problem is with arm64, please give me your email, i will send you lib version for arm64

AlishahSolanki commented 7 years ago

alishah.solanki@gmail.com Thanks

GongChuanZan commented 7 years ago

@AnhTVc Can you send me the libopenvpn version for arm64 ? Thx ! zan999@qq.com

j-cimb-barker commented 6 years ago

@AnhTVc I am also looking for libopenvpn version for arm64 . Can you send to joel@talkingcucumber.com ...? Thanks...!

galuzokb commented 6 years ago

@AnhTVc can you send libopenvpn for arm64 to galuzokb@gmail.com Thanks

AlishahSolanki commented 6 years ago

all version libopenvpn https://drive.google.com/file/d/0B0wnMoPHj0QUTG5xc1hhX183QlU/view?usp=sharing

billianne commented 6 years ago

without NDA, I got an error:

Tue Oct 24 17:10:24 2017 OpenVPN 2.3_git arm-apple-darwin [SSL (OpenSSL)] [MH] [IPv6] built on Oct 24 2017 Tue Oct 24 17:10:24 2017 WARNING: file '/var/containers/Bundle/Application/EAD10AEC-4DC3-4D57-BEBD-C3B61F676451/openvpn.app/ta.key' is group or others accessible Tue Oct 24 17:10:24 2017 tunemu: fork for ppp kext: Operation not permitted Tue Oct 24 17:10:24 2017 Cannot allocate TUN/TAP dev dynamically Tue Oct 24 17:10:24 2017 Exiting due to fatal error

Enviroment: ios 10.3.

Is that NDA's problem?

AlishahSolanki commented 6 years ago

I think its licence issues openvpn has gnu licence

Regards Alishah Solanki

On 24-Oct-2017, at 2:15 PM, billianne notifications@github.com wrote:

without NDA, I got an error:

Tue Oct 24 17:10:24 2017 OpenVPN 2.3_git arm-apple-darwin [SSL (OpenSSL)] [MH] [IPv6] built on Oct 24 2017 Tue Oct 24 17:10:24 2017 WARNING: file '/var/containers/Bundle/Application/EAD10AEC-4DC3-4D57-BEBD-C3B61F676451/openvpn.app/ta.key' is group or others accessible Tue Oct 24 17:10:24 2017 tunemu: fork for ppp kext: Operation not permitted Tue Oct 24 17:10:24 2017 Cannot allocate TUN/TAP dev dynamically Tue Oct 24 17:10:24 2017 Exiting due to fatal error

Enviroment: ios 10.3.

Is that NDA's problem?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

mohamad-n commented 6 years ago

please send me the builds najafidev@hotmail.com

xianglinhe commented 6 years ago

@AnhTVc can you send libopenvpn for arm64 to xianglinhe@gmail.com? Thanks!

AnhTVc commented 6 years ago

libopenvpn.a are: armv7 arm64. You dont rebuild lib

JangNeo commented 6 years ago

my device is iphone se , and i get a error :Undefined symbols for architecture x86_64: "_openvpn_main", referenced from: ___31-[VPNWrapper startWithOptions:]_block_invoke in VPNWrapper.o ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation).

could you send me full source for x86_64 ? My email is namejsk@gmail.com please ... thanks..

JangNeo commented 6 years ago

How to build with arm64 device? Can you send me the libopenvpn version for arm64 ? My email is namejsk@gmail.com

please thanks

JangNeo commented 6 years ago

@AnhTVc, I am trying to run the code but facing below errors.

Undefined symbols for architecture arm64: "_append_three_string", referenced from: _add_route in libopenvpn.a(route.o) "_append", referenced from: _openvpn_main in libopenvpn.a(openvpn.o) _write_to_ip_client in libopenvpn.a(route.o) ld: symbol(s) not found for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

Looking forward for your prompt reply.

Can you send me the libopenvpn version for arm64 ? Thanks namejsk@gmail.com

jerrin15 commented 6 years ago

clang: error: no such file or directory: '....OpenVPN-IOS/Submodules/openvpn/src/openvpn/util.c' i have an error that says this file does not exist. When I checked this git repo it seems this file is not present. Where can i get an alternative? @AnhTVc