OpenVPN-IOS icon indicating copy to clipboard operation
OpenVPN-IOS copied to clipboard

Help ,i have errors.

Open hfchui opened this issue 7 years ago • 33 comments

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

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

Will you give some help?

hfchui avatar Feb 28 '17 02:02 hfchui

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!

AnhTVc avatar Feb 28 '17 06:02 AnhTVc

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!

hfchui avatar Mar 02 '17 01:03 hfchui

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

  • build app to device not simulator.
  • try OpenVPN last version https://github.com/OpenVPN/openvpn

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

AnhTVc avatar Mar 02 '17 15:03 AnhTVc

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

t4nja avatar Apr 04 '17 19:04 t4nja

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?

angrykub avatar Apr 26 '17 09:04 angrykub

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

AnhTVc avatar Jun 13 '17 09:06 AnhTVc

would you mind update your proj to latest?

or sending your builds to me at [email protected]

ScottZg avatar Jun 13 '17 09:06 ScottZg

Can you send your builds to me ? Whether openvpn needs to apply for an interface to Apple?[email protected],Thanks

liuxn2015 avatar Jun 14 '17 02:06 liuxn2015

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

AnhTVc avatar Jun 14 '17 03:06 AnhTVc

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 avatar Jun 14 '17 04:06 liuxn2015

Does your lib only support armv7 arm64?

liuxn2015 avatar Jun 14 '17 04:06 liuxn2015

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 [email protected]:

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 .

AnhTVc avatar Jun 14 '17 04:06 AnhTVc

@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

mantra-valuecoders avatar Jun 19 '17 12:06 mantra-valuecoders

please run with device iphone not Simulator

AnhTVc avatar Jun 19 '17 15:06 AnhTVc

@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

AntonieWilson avatar Jun 21 '17 05:06 AntonieWilson

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

AnhTVc avatar Jun 21 '17 07:06 AnhTVc

i have also i have tried to build on iphone 6 plus but i wont work can you send me your build at [email protected] Thanks

AlishahSolanki avatar Jul 06 '17 17:07 AlishahSolanki

"_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)

AlishahSolanki avatar Jul 06 '17 18:07 AlishahSolanki

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

AnhTVc avatar Jul 09 '17 11:07 AnhTVc

[email protected] Thanks

AlishahSolanki avatar Jul 09 '17 17:07 AlishahSolanki

@AnhTVc Can you send me the libopenvpn version for arm64 ? Thx ! [email protected]

GongChuanZan avatar Aug 28 '17 10:08 GongChuanZan

@AnhTVc I am also looking for libopenvpn version for arm64 . Can you send to [email protected] ...? Thanks...!

j-cimb-barker avatar Sep 02 '17 06:09 j-cimb-barker

@AnhTVc can you send libopenvpn for arm64 to [email protected] Thanks

galuzokb avatar Oct 04 '17 09:10 galuzokb

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

AlishahSolanki avatar Oct 18 '17 12:10 AlishahSolanki

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?

billianne avatar Oct 24 '17 09:10 billianne

I think its licence issues openvpn has gnu licence

Regards Alishah Solanki

On 24-Oct-2017, at 2:15 PM, billianne [email protected] 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.

AlishahSolanki avatar Oct 24 '17 09:10 AlishahSolanki

please send me the builds [email protected]

mohamad-n avatar Dec 08 '17 22:12 mohamad-n

@AnhTVc can you send libopenvpn for arm64 to [email protected]? Thanks!

xianglinhe avatar Jan 08 '18 05:01 xianglinhe

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

AnhTVc avatar Jan 08 '18 13:01 AnhTVc

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 [email protected] please ... thanks..

JangNeo avatar Mar 06 '18 07:03 JangNeo