el1n/OpenWRT-package-softether

Error compile on Openwrt barrier breaker

Opened this issue · 1 comments

I followed the readme file and installed all prerequisites on my linux mint system.
you git repository has been added to feeds and softether packages has been selected by make menuconfig.

issue1: the library libiconv-full is shipped with BB release, when selecting softether from menuconfig, the libiconv-full is not selected as dependency. and libiconv shall be compiled manually first or error can been seen like: libiconv is not found.

issue2: compile libiconv-full first: make package/libiconv-full/compile V=99 then compile softether.
there are some errors:

if [ -f /home/colin/bb/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/zlib.default.install.clean ]; then rm -f /home/colin/bb/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/zlib.default.install /home/colin/bb/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/zlib.default.install.clean; fi; echo "zlib" >> /home/colin/bb/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/zlib.default.install
make[2]: Leaving directory /home/colin/bb/package/libs/zlib' make[2]: Entering directory/home/colin/bb/package/libs/openssl'
if [ -f /home/colin/bb/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/openssl.default.install.clean ]; then rm -f /home/colin/bb/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/openssl.default.install /home/colin/bb/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/openssl.default.install.clean; fi; echo "libopenssl" >> /home/colin/bb/staging_dir/target-mips_34kc_uClibc-0.9.33.2/pkginfo/openssl.default.install
WARNING: skipping openssl-util -- package not selected
make[2]: Leaving directory /home/colin/bb/package/libs/openssl' make[2]: Entering directory/home/colin/bb/feeds/softethervpn/softethervpn'
make -C /home/colin/bb/build_dir/target-mips_34kc_uClibc-0.9.33.2/v4.14-9529 -f src/makefiles/linux_32bit.mak src/bin/BuiltHamcoreFiles/unix/hamcore.se2
make[3]: Entering directory /home/colin/bb/build_dir/target-mips_34kc_uClibc-0.9.33.2/v4.14-9529' make[3]: Warning: Filesrc/bin/BuiltHamcoreFiles/unix/hamcore.se2' has modification time 8.5e+04 s in the future
cc -DNDEBUG -DVPN_SPEED -DUNIX -DUNIX_LINUX -D_REENTRANT -DREENTRANT -D_THREAD_SAFE -D_THREADSAFE -DTHREAD_SAFE -DTHREADSAFE -D_FILE_OFFSET_BITS=64 -I./src/ -I./src/Cedar/ -I./src/Mayaqua/ -O2 -fsigned-char tmp/objs/Mayaqua/Cfg.o tmp/objs/Mayaqua/Encrypt.o tmp/objs/Mayaqua/FileIO.o tmp/objs/Mayaqua/Internat.o tmp/objs/Mayaqua/Kernel.o tmp/objs/Mayaqua/Mayaqua.o tmp/objs/Mayaqua/Memory.o tmp/objs/Mayaqua/Microsoft.o tmp/objs/Mayaqua/Network.o tmp/objs/Mayaqua/Object.o tmp/objs/Mayaqua/OS.o tmp/objs/Mayaqua/Pack.o tmp/objs/Mayaqua/Secure.o tmp/objs/Mayaqua/Str.o tmp/objs/Mayaqua/Table.o tmp/objs/Mayaqua/TcpIp.o tmp/objs/Mayaqua/Tick64.o tmp/objs/Mayaqua/Tracking.o tmp/objs/Mayaqua/Unix.o tmp/objs/Mayaqua/Win32.o tmp/objs/Cedar/Account.o tmp/objs/Cedar/Admin.o tmp/objs/Cedar/AzureClient.o tmp/objs/Cedar/AzureServer.o tmp/objs/Cedar/Bridge.o tmp/objs/Cedar/BridgeUnix.o tmp/objs/Cedar/BridgeWin32.o tmp/objs/Cedar/Cedar.o tmp/objs/Cedar/CedarPch.o tmp/objs/Cedar/Client.o tmp/objs/Cedar/CM.o tmp/objs/Cedar/Command.o tmp/objs/Cedar/Connection.o tmp/objs/Cedar/Console.o tmp/objs/Cedar/Database.o tmp/objs/Cedar/DDNS.o tmp/objs/Cedar/EM.o tmp/objs/Cedar/EtherLog.o tmp/objs/Cedar/Hub.o tmp/objs/Cedar/Interop_OpenVPN.o tmp/objs/Cedar/Interop_SSTP.o tmp/objs/Cedar/IPsec.o tmp/objs/Cedar/IPsec_EtherIP.o tmp/objs/Cedar/IPsec_IKE.o tmp/objs/Cedar/IPsec_IkePacket.o tmp/objs/Cedar/IPsec_IPC.o tmp/objs/Cedar/IPsec_L2TP.o tmp/objs/Cedar/IPsec_PPP.o tmp/objs/Cedar/IPsec_Win7.o tmp/objs/Cedar/Layer3.o tmp/objs/Cedar/Link.o tmp/objs/Cedar/Listener.o tmp/objs/Cedar/Logging.o tmp/objs/Cedar/Nat.o tmp/objs/Cedar/NativeStack.o tmp/objs/Cedar/NM.o tmp/objs/Cedar/NullLan.o tmp/objs/Cedar/Protocol.o tmp/objs/Cedar/Radius.o tmp/objs/Cedar/Remote.o tmp/objs/Cedar/Sam.o tmp/objs/Cedar/SecureInfo.o tmp/objs/Cedar/SecureNAT.o tmp/objs/Cedar/SeLowUser.o tmp/objs/Cedar/Server.o tmp/objs/Cedar/Session.o tmp/objs/Cedar/SM.o tmp/objs/Cedar/SW.o tmp/objs/Cedar/UdpAccel.o tmp/objs/Cedar/UT.o tmp/objs/Cedar/VG.o tmp/objs/Cedar/Virtual.o tmp/objs/Cedar/VLan.o tmp/objs/Cedar/VLanUnix.o tmp/objs/Cedar/VLanWin32.o tmp/objs/Cedar/WaterMark.o tmp/objs/Cedar/WebUI.o tmp/objs/Cedar/WinUi.o tmp/objs/Cedar/Wpc.o src/hamcorebuilder/hamcorebuilder.c -O2 -fsigned-char -lm -ldl -lrt -lpthread -lssl -lcrypto -lreadline -lncurses -lz -o tmp/hamcorebuilder
/usr/bin/ld: tmp/objs/Mayaqua/Cfg.o: Relocations in generic ELF (EM: 8)
/usr/bin/ld: tmp/objs/Mayaqua/Cfg.o: Relocations in generic ELF (EM: 8)
/usr/bin/ld: tmp/objs/Mayaqua/Cfg.o: Relocations in generic ELF (EM: 8)
tmp/objs/Mayaqua/Cfg.o: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[3]: *** [tmp/hamcorebuilder] Error 1
make[3]: Leaving directory /home/colin/bb/build_dir/target-mips_34kc_uClibc-0.9.33.2/v4.14-9529' make[2]: *** [/home/colin/bb/build_dir/target-mips_34kc_uClibc-0.9.33.2/v4.14-9529/.built] Error 2 make[2]: Leaving directory/home/colin/bb/feeds/softethervpn/softethervpn'
make[1]: *** [package/feeds/softethervpn/softethervpn/compile] Error 2
make[1]: Leaving directory `/home/colin/bb'
make: *** [package/softethervpn/compile] Error 2

el1n commented

about issue1:
couldn't read correctly nls.mk(./include/nls.mk) file possibly. (line 23 of Makefile)
but i don't know why this problem occurs bcoz i can't reproduce this errors.
sry.

about issue2:
try make clean plz.
make package/softethervpn/clean

compile method of the softether for openwrt is 2 steps.
first, make hamcorebuilder for x86(if on x86 system) and execute.
and then make the softether binary for target architecture.

so this problem occurs if make for target architecture at first step on x86 system.
for example, in such a case, run step 1 after stop at step 2.