I'm trying to compile the 64-bit version of Nagios 4.1.1 on Solaris 11.3 SPARC and getting the following errors:
Code: Select all
gmake[1]: Entering directory `/export/home/dheitepriem/nagios/nagios-4.1.1/module'
gcc -m64 -I.. -m64 -DHAVE_CONFIG_H -o helloworld.o helloworld.c -G -m64 -lsocket
ld: fatal: relocation error: R_SPARC_H44: file /var/tmp//ccl5aiPv.o: symbol helloworld_module_handle: relocations based on the ABS44 coding model can not be used in building a shared object
ld: fatal: relocation error: R_SPARC_M44: file /var/tmp//ccl5aiPv.o: symbol helloworld_module_handle: relocations based on the ABS44 coding model can not be used in building a shared object
ld: fatal: relocation error: R_SPARC_L44: file /var/tmp//ccl5aiPv.o: symbol helloworld_module_handle: relocations based on the ABS44 coding model can not be used in building a shared object
ld: fatal: relocation error: R_SPARC_H44: file /var/tmp//ccl5aiPv.o: symbol helloworld_module_handle: relocations based on the ABS44 coding model can not be used in building a shared object
ld: fatal: relocation error: R_SPARC_M44: file /var/tmp//ccl5aiPv.o: symbol helloworld_module_handle: relocations based on the ABS44 coding model can not be used in building a shared object
ld: fatal: relocation error: R_SPARC_L44: file /var/tmp//ccl5aiPv.o: symbol helloworld_module_handle: relocations based on the ABS44 coding model can not be used in building a shared object
ld: fatal: relocation error: R_SPARC_H44: file /var/tmp//ccl5aiPv.o: symbol .rodata (section): relocations based on the ABS44 coding model can not be used in building a shared object
ld: fatal: relocation error: R_SPARC_M44: file /var/tmp//ccl5aiPv.o: symbol .rodata (section): relocations based on the ABS44 coding model can not be used in building a shared object
ld: fatal: relocation error: R_SPARC_L44: file /var/tmp//ccl5aiPv.o: symbol .rodata (section): relocations based on the ABS44 coding model can not be used in building a shared object
ld: fatal: relocation error: R_SPARC_H44: file /var/tmp//ccl5aiPv.o: symbol helloworld_module_handle: relocations based on the ABS44 coding model can not be used in building a shared object
ld: fatal: relocation error: R_SPARC_M44: file /var/tmp//ccl5aiPv.o: symbol helloworld_module_handle: relocations based on the ABS44 coding model can not be used in building a shared object
[...]
ld: fatal: symbol referencing errors
collect2: error: ld returned 1 exit status
gmake[1]: *** [helloworld.o] Error 1
gmake[1]: Leaving directory `/export/home/dheitepriem/nagios/nagios-4.1.1/module'
gmake: *** [all] Error 2
Code: Select all
CFLAGS="-m64" CC="gcc -m64" LD="ldd -m64" LDFLAGS="-m64" CXXFLAGS="-m64" ./configure --prefix=/opt/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-command-user=nagios --with-command-group=nagios
CFLAGS="-m64" CC="gcc -m64" LD="ldd -m64" LDFLAGS="-m64" CXXFLAGS="-m64" /usr/bin/gmake all
Thank you very much in advance.