Solaris make utils.o

Nick Westmancoat NIWestmancoat at somerset.gov.uk
Mon Jan 17 18:12:05 CET 2005


I have just compiled nagios 2.2 on solaris 9.

cd ./base && gmake
gmake[1]: Entering directory `/export/home/source/nagios-2.0b1/base'
gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -o nagios nagios.c broker.o nebmods.o
checks.o config.o commands.o events.o flapping.o logging.o notifications.o
sehandlers.o utils.o retention-base.o xretention-base.o comments-base.o
xcomments-base.o objects-base.o xobjects-base.o statusdata-base.o
xstatusdata-base.o perfdata-base.o xperfdata-base.o downtime-base.o
xdowntime-base.o       -lm -lnsl -lsocket -lpthread -ldl -lrt
Undefined                       first referenced
 symbol                             in file
setenv                              utils.o
unsetenv                            utils.o
ld: fatal: Symbol referencing errors. No output written to nagios
collect2: ld returned 1 exit status
gmake[1]: *** [nagios] Error 1
gmake[1]: Leaving directory `/export/home/source/nagios-2.0b1/base'
gmake: *** [all] Error 2



To fix this comment out the two lines in utils.c containing setenv and
unsetenv with /* eg.
/* setenv

make clean 
./configure
make all

I was looking to post this as a bug but cannot find the right place.  If
anyone knows please forward this.

Thanks

Nick


This communication is intended solely for the person (s) or organisation to
whom it is addressed.  It may contain privileged and confidential
information and if you are not the intended recipient (s), you must not
copy, distribute or take any action in reliance on it.  If you have received
this e-mail in error please notify the sender and copy the message to
ICTDHelp at somerset.gov.uk

Individuals are advised that by replying to, or sending an e-mail message to
Somerset County Council, you accept that you have no explicit or implicit
expectation of privacy.

In line with the Surveillance and Monitoring Policy, any e-mail messages
(and attachments) transmitted over the Council's network may be subject to
scrutiny.




-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list