Need help compiling plugins on Solaris 8


#1

I’m trying to compile the nagios-plugins on a solaris 8 machine. the configure works fine, but the make exits with the following:

Undefined first referenced
symbol in file
rpl_open pst3-pst3.o
rpl_strerror pst3-pst3.o
ld: fatal: Symbol referencing errors. No output written to pst3
collect2: ld returned 1 exit status
gmake[2]: *** [pst3] Error 1
gmake[2]: Leaving directory /home/lohma499/nagios-plugins/nagios-plugins-1.4.14/plugins-root' gmake[1]: *** [all-recursive] Error 1 gmake[1]: Leaving directory/home/lohma499/nagios-plugins/nagios-plugins-1.4.14’
gmake: *** [all] Error 2

Any ideas? Help would be appreciated!


#2

Solaris is infamous for having a “practical” include inter dependency. That is on other systems things like socket.h and string.h might be included by stdio.h on Solaris if you plan to make use of these you need to explicitly include them.

I’m not sure where rpl_open is defined, my guess is there is some other object that failed to configure that defines rpl_open. I’d say we need more of the build output to say for sure, but look for previous undefined references and perhaps add the include for them at the begging of the code.


#3

try searching the forum… solaris problems come up quite regularly :wink: