mahiccc / ics-openvpn

Automatically exported from code.google.com/p/ics-openvpn
0 stars 0 forks source link

Compile problem on linux and windows - openvpn source #209

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Installed ndk r9b
2. Downloaded google-breakpad
3. Try compile

Please provide any additional information below.

[root@test ics-openvpn]# ./build-native.sh
[armeabi-v7a] Compile thumb  : minivpn <= minivpn.c
[armeabi-v7a] Compile++ thumb: minivpn <= dummy.cpp
[armeabi-v7a] Compile thumb  : openvpn <= compat-basename.c
[armeabi-v7a] Compile thumb  : openvpn <= compat-daemon.c
[armeabi-v7a] Compile thumb  : openvpn <= compat-dirname.c
[armeabi-v7a] Compile thumb  : openvpn <= compat-gettimeofday.c
[armeabi-v7a] Compile thumb  : openvpn <= compat-inet_ntop.c
[armeabi-v7a] Compile thumb  : openvpn <= compat-inet_pton.c
[armeabi-v7a] Compile thumb  : openvpn <= compat-rsa_generate_key.c
[armeabi-v7a] Compile thumb  : openvpn <= base64.c
[armeabi-v7a] Compile thumb  : openvpn <= buffer.c
[armeabi-v7a] Compile thumb  : openvpn <= clinat.c
[armeabi-v7a] Compile thumb  : openvpn <= console.c
[armeabi-v7a] Compile thumb  : openvpn <= crypto.c
[armeabi-v7a] Compile thumb  : openvpn <= crypto_openssl.c
[armeabi-v7a] Compile thumb  : openvpn <= crypto_polarssl.c
[armeabi-v7a] Compile thumb  : openvpn <= cryptoapi.c
[armeabi-v7a] Compile thumb  : openvpn <= dhcp.c
[armeabi-v7a] Compile thumb  : openvpn <= error.c
[armeabi-v7a] Compile thumb  : openvpn <= event.c
[armeabi-v7a] Compile thumb  : openvpn <= fdmisc.c
openvpn//src/openvpn/error.c: In function 'set_machine_readable_output':
openvpn//src/openvpn/error.c:168:3: error: 'machine_readable_output' undeclared 
(first use in this function)
openvpn//src/openvpn/error.c:168:3: note: each undeclared identifier is 
reported only once for each function it appears in
openvpn//src/openvpn/error.c: In function 'error_reset':
openvpn//src/openvpn/error.c:176:3: error: 'machine_readable_output' undeclared 
(first use in this function)
openvpn//src/openvpn/error.c: In function 'x_msg_va':
openvpn//src/openvpn/error.c:348:8: error: 'machine_readable_output' undeclared 
(first use in this function)
openvpn//src/openvpn/error.c:360:10: warning: format '%d' expects argument of 
type 'int', but argument 4 has type 'suseconds_t' [-Wformat]
make: *** [obj/local/armeabi-v7a/objs/openvpn/src/openvpn/error.o] Error 1
make: *** Waiting for unfinished jobs....

Original issue reported on code.google.com by xdrago...@gmail.com on 23 Nov 2013 at 6:41

GoogleCodeExporter commented 9 years ago
Fix : 

declare in error.c : 
static bool machine_readable_output; /* GLOBAL */ 

another error:

openvpn//src/openvpn/options.c: In function 'show_settings':
openvpn//src/openvpn/options.c:1515:3: error: 'struct options const' has no 
member named 'parsable_output'

Fix:
comment out
/**SHOW_BOOL (parsable_output);**/

Original comment by xdrago...@gmail.com on 23 Nov 2013 at 7:08

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 650aa43d6d97.

Original comment by arne@rfc2549.org on 23 Nov 2013 at 1:09