|
我编译不成功啊,发现需要两个makefile,源代码里有个makefile是指到官方的地方的,改了还是编译不成功,报错:
make[2]: Entering directory '/OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/package/n2n'
make CC="ccache_cc" -C /OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/build_dir/target-mips_34kc_uClibc-0.9.33.2/n2n-gitn2n_v2/n2n_v2
make[3]: Entering directory '/OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/build_dir/target-mips_34kc_uClibc-0.9.33.2/n2n-gitn2n_v2/n2n_v2'
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" -c n2n.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" -c n2n_keyfile.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" -c wire.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" -c minilzo.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" -c twofish.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" -c transform_null.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" -c transform_tf.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" -c transform_aes.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" -c tuntap_freebsd.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" -c tuntap_netbsd.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" -c tuntap_linux.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" -c tuntap_osx.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" -DN2N_VERSION='"2.1.0"' -DN2N_OSNAME='"unknown"' -c version.c
cc1: note: someone does not honour COPTS correctly, passed 0 times
ar rcs n2n.a n2n.o n2n_keyfile.o wire.o minilzo.o twofish.o transform_null.o transform_tf.o transform_aes.o tuntap_freebsd.o tuntap_netbsd.o tuntap_linux.o tuntap_osx.o version.o
ccache_cc -g3 -Wall -Wshadow -Wpointer-arith -Wmissing-declarations -Wnested-externs "-DN2N_HAVE_AES" edge.c n2n.a -lcrypto -o edge
cc1: note: someone does not honour COPTS correctly, passed 0 times
/OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/staging_dir/target-mips_34kc_uClibc-0.9.33.2/usr/lib/libcrypto.so: warning: gethostbyname is obsolescent, use getnameinfo() instead.
/tmp/ccj6j87m.o: In function `main':
/OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/build_dir/target-mips_34kc_uClibc-0.9.33.2/n2n-gitn2n_v2/n2n_v2/edge.c:2869: undefined reference to `SCM_Start'
collect2: error: ld returned 1 exit status
Makefile:67: recipe for target 'edge' failed
make[3]: *** [edge] Error 1
make[3]: Leaving directory '/OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/build_dir/target-mips_34kc_uClibc-0.9.33.2/n2n-gitn2n_v2/n2n_v2'
Makefile:76: recipe for target '/OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/build_dir/target-mips_34kc_uClibc-0.9.33.2/n2n-gitn2n_v2/.built' failed
make[2]: *** [/OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/build_dir/target-mips_34kc_uClibc-0.9.33.2/n2n-gitn2n_v2/.built] Error 2
make[2]: Leaving directory '/OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/package/n2n'
package/Makefile:191: recipe for target 'package/n2n/compile' failed
make[1]: *** [package/n2n/compile] Error 2
make[1]: Leaving directory '/OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64'
/OpenWrt-SDK-15.05.1-ar71xx-generic_gcc-4.8-linaro_uClibc-0.9.33.2.Linux-x86_64/include/toplevel.mk:174: recipe for target 'package/n2n/compile' failed
make: *** [package/n2n/compile] Error 2 |
|