Can't compile source error on CentOS 7 on aarch64
Posted: Sun Dec 20, 2020 12:57 pm
Hello,
So I have a Raspberry Pi 4 (architecture aarch64) with CentOS 7 installed on it.
The problem is when I try to compile the version 4.34-9745 RTM (32bit_-_ARM_EABI version) I get this error :
make
make[1]: Entering directory `/root/vpnserver'
Preparing SoftEther VPN Server...
ranlib lib/libcharset.a
ranlib lib/libcrypto.a
1ranlib lib/libedit.a
ranlib lib/libiconv.a
ranlib lib/libncurses.a
ranlib lib/libssl.a
ranlib lib/libz.a
ranlib code/vpnserver.a
gcc code/vpnserver.a -fPIE -O2 -fsigned-char -pthread -lm -lrt -Wl,--no-warn-mismatch -lpthread -L./ lib/libssl.a lib/libcrypto.a lib/libiconv.a lib/libcharset.a lib/libedit.a lib/libncurses.a lib/libz.a -ldl -o vpnserver
code/vpnserver.a: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[1]: *** [i_read_and_agree_the_license_agreement] Error 1
make[1]: Leaving directory `/root/vpnserver'
I also tried to compile from the source code, this time it worked a bit better, but still got an error, but a different one this time when I try to start the vpnserver service :
vpnserver start
/usr/local/libexec/softether/vpnserver/vpnserver: error while loading shared libraries: libcedar.so: cannot open shared object file: No such file or directory
I found the library libcedar that is missing on Github but can't install it, I get this error :
make
/media/usbdisk/xbmc/xbmc-alwinner/buildroot-allwinner/output/host/usr//bin/arm-linux-gnueabihf-g++ --sysroot=/media/usbdisk/xbmc/xbmc-alwinner/buildroot-allwinner/output/host/usr/arm-unknown-linux-gnueabi/sysroot -isystem/media/usbdisk/xbmc/xbmc-alwinner/buildroot-allwinner/output/host/usr/arm-unknown-linux-gnueabi/sysroot/include -fPIC -pipe -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -O3 -fomit-frame-pointer -mabi=aapcs-linux -Wno-psabi -mno-apcs-stack-check -mstructure-size-boundary=32 -mno-sched-prolog -DCEDAR_LIBRARY -DHAVE_LIBCEDAR -DOS_LINUX -isystem/media/usbdisk/xbmc/xbmc-alwinner/buildroot-allwinner/output/staging/staging/usr/include -Isrc/ -c src/CedarBitstreamBufferManager.cpp -o src/CedarBitstreamBufferManager.o -Wno-deprecated-declarations
make: /media/usbdisk/xbmc/xbmc-alwinner/buildroot-allwinner/output/host/usr//bin/arm-linux-gnueabihf-g++: Command not found
make: *** [src/CedarBitstreamBufferManager.o] Error 127
Also, I can't find a RPM package which can install this library libcedar.
Do you guys have any idead how can I solve this problem? If you guys need more info, feel free to ask in order to solve this matter.
Thank you!
So I have a Raspberry Pi 4 (architecture aarch64) with CentOS 7 installed on it.
The problem is when I try to compile the version 4.34-9745 RTM (32bit_-_ARM_EABI version) I get this error :
make
make[1]: Entering directory `/root/vpnserver'
Preparing SoftEther VPN Server...
ranlib lib/libcharset.a
ranlib lib/libcrypto.a
1ranlib lib/libedit.a
ranlib lib/libiconv.a
ranlib lib/libncurses.a
ranlib lib/libssl.a
ranlib lib/libz.a
ranlib code/vpnserver.a
gcc code/vpnserver.a -fPIE -O2 -fsigned-char -pthread -lm -lrt -Wl,--no-warn-mismatch -lpthread -L./ lib/libssl.a lib/libcrypto.a lib/libiconv.a lib/libcharset.a lib/libedit.a lib/libncurses.a lib/libz.a -ldl -o vpnserver
code/vpnserver.a: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
make[1]: *** [i_read_and_agree_the_license_agreement] Error 1
make[1]: Leaving directory `/root/vpnserver'
I also tried to compile from the source code, this time it worked a bit better, but still got an error, but a different one this time when I try to start the vpnserver service :
vpnserver start
/usr/local/libexec/softether/vpnserver/vpnserver: error while loading shared libraries: libcedar.so: cannot open shared object file: No such file or directory
I found the library libcedar that is missing on Github but can't install it, I get this error :
make
/media/usbdisk/xbmc/xbmc-alwinner/buildroot-allwinner/output/host/usr//bin/arm-linux-gnueabihf-g++ --sysroot=/media/usbdisk/xbmc/xbmc-alwinner/buildroot-allwinner/output/host/usr/arm-unknown-linux-gnueabi/sysroot -isystem/media/usbdisk/xbmc/xbmc-alwinner/buildroot-allwinner/output/host/usr/arm-unknown-linux-gnueabi/sysroot/include -fPIC -pipe -mcpu=cortex-a8 -mtune=cortex-a8 -mfpu=neon -mfloat-abi=hard -O3 -fomit-frame-pointer -mabi=aapcs-linux -Wno-psabi -mno-apcs-stack-check -mstructure-size-boundary=32 -mno-sched-prolog -DCEDAR_LIBRARY -DHAVE_LIBCEDAR -DOS_LINUX -isystem/media/usbdisk/xbmc/xbmc-alwinner/buildroot-allwinner/output/staging/staging/usr/include -Isrc/ -c src/CedarBitstreamBufferManager.cpp -o src/CedarBitstreamBufferManager.o -Wno-deprecated-declarations
make: /media/usbdisk/xbmc/xbmc-alwinner/buildroot-allwinner/output/host/usr//bin/arm-linux-gnueabihf-g++: Command not found
make: *** [src/CedarBitstreamBufferManager.o] Error 127
Also, I can't find a RPM package which can install this library libcedar.
Do you guys have any idead how can I solve this problem? If you guys need more info, feel free to ask in order to solve this matter.
Thank you!