Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
# make all
cd ./base && make
make -C ../lib
Using $< in a non-suffix rule context is a GNUmake idiom (Makefile:157)
*** Error 2 in /root/nagios-4.2.2 (Makefile:73 'all')
Can anybody help here?
TIA
Matthias
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
gmake[1]: Entering directory '/root/nagios-4.2.2/module'
gcc -I.. -g -O2 -DHAVE_CONFIG_H -o helloworld.o helloworld.c -shared
/usr/bin/ld: /tmp//ccZ4SCsv.o: relocation R_X86_64_PC32 against `helloworld_h le_data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
gmake[1]: *** [Makefile:30: helloworld.o] Error 1
gmake[1]: Leaving directory '/root/nagios-4.2.2/module'
gmake: *** [Makefile:76: all] Error 2
Hulluna humpasta taas
Minä olen hulluna humpasta taas
Minen toivu koskaan, luotan voimaan votkan
Hulluna humpasta taas
gmake[1]: Entering directory '/root/nagios-4.2.2/module'
gcc -I.. -g -O2 -DHAVE_CONFIG_H -o helloworld.o helloworld.c -shared
/usr/bin/ld: /tmp//ccZ4SCsv.o: relocation R_X86_64_PC32 against `helloworld_h le_data' can not be used when making a shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
gmake[1]: *** [Makefile:30: helloworld.o] Error 1
gmake[1]: Leaving directory '/root/nagios-4.2.2/module'
gmake: *** [Makefile:76: all] Error 2
That's the same problem I just fixed for Solaris.
You can either comment out these lines at line 166 in Makefile:
FYI, it's not really OpenBSD you should be waiting on, it's the Nagios port maintainer. I don't know how to find that on OpenBSD but the information is there somewhere. If the Nagios port isn't corrected, it will be buggy on every version of OpenBSD.