Problems compile on solaris with gcc-2.95.3, or gcc-3.2

Scott Walker swalker at floridabroadband.net
Mon Nov 4 20:31:10 CET 2002


gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE  nagios.c checks.o config.o 
commands.o flapping.o logging.o notifications.o sehandlers.o utils.o 
sretention.o ../xdata/xrddefault.c ../common/comments.c 
../xdata/xcddefault.c ../common/objects.c ../xdata/xodtemplate.c 
../common/statusdata.c ../xdata/xsddefault.c perfdata.o 
../xdata/xpddefault.c ../common/downtime.c ../xdata/xdddefault.c    -lm 
-o nagios
Undefined                       first referenced
 symbol                             in file
getopt_long                         /var/tmp//ccWr7l0s.o
ld: fatal: Symbol referencing errors. No output written to nagios
collect2: ld returned 1 exit status
make[1]: *** [nagios] Error 1
make[1]: Leaving directory `/usr/local/src/monitoring/nagios-1.0b6/base'
make: *** [all] Error 2


I keep getting the above error no matter what I use to compile it. Any 
suggestions?



-------------------------------------------------------
This SF.net email is sponsored by: ApacheCon, November 18-21 in
Las Vegas (supported by COMDEX), the only Apache event to be
fully supported by the ASF. http://www.apachecon.com




More information about the Users mailing list