Errors on Solaris 2.5
Josh Skains
JSkains at deltad.com
Wed Aug 28 21:33:17 CEST 2002
autoheader is attached to the autoconf package, and both are 2.53
I've even done an LD_LIBRARY_PATH=/usr/local/bin with no additional luck.
I've even moved libsnprintf.so and libsnprintf.a to the src directory with
no additonal luck.
I've installed a new version of binutils, and the error is just formatted
differently now:
root@:/mhome/jskains/work/mon/nrpe-1.5>make
make: *** Warning: File `Makefile' has modification time in the future
(2002-08-28 12:22:17 > 2002-08-28 12:21:58.280481
793)
cd ./src/; make ; cd ..
make[1]: Entering directory `/mhome/jskains/work/mon/nrpe-1.5/src'
make[1]: *** Warning: File `Makefile' has modification time in the future
(2002-08-28 12:22:17 > 2002-08-28 12:21:58.342
730602)
gcc -g -O2 -DHAVE_CONFIG_H -lnsl -lsocket nrpe.c netutils.c -o nrpe
/var/tmp/cczIIrtk.o: In function `wait_for_connections':
/mhome/jskains/work/mon/nrpe-1.5/src/nrpe.c:446: undefined reference to
`snprintf'
/var/tmp/cczIIrtk.o: In function `handle_connection':
/mhome/jskains/work/mon/nrpe-1.5/src/nrpe.c:554: undefined reference to
`snprintf'
/mhome/jskains/work/mon/nrpe-1.5/src/nrpe.c:569: undefined reference to
`snprintf'
/mhome/jskains/work/mon/nrpe-1.5/src/nrpe.c:591: undefined reference to
`snprintf'
/mhome/jskains/work/mon/nrpe-1.5/src/nrpe.c:593: undefined reference to
`snprintf'
/var/tmp/cczIIrtk.o:/mhome/jskains/work/mon/nrpe-1.5/src/nrpe.c:725: more
undefined references to `snprintf' follow
collect2: ld returned 1 exit status
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory `/mhome/jskains/work/mon/nrpe-1.5/src'
*** Compile finished ***
-----Original Message-----
From: Rusch, Daniel [mailto:Daniel.Rusch at GlobalCrossing.com]
Sent: Wednesday, August 28, 2002 12:27 PM
To: 'Josh Skains'; 'nagios-users at lists.sourceforge.net'
Subject: RE: [Nagios-users] Errors on Solaris 2.5
I apologize if you have done these already just trying to help
Have you checked you autoheader version?
How about your path? which make is it pointing at?
Which version of make?
-----Original Message-----
From: Josh Skains [mailto:JSkains at deltad.com]
Sent: Tuesday, August 27, 2002 9:48 AM
To: 'nagios-users at lists.sourceforge.net'
Subject: [Nagios-users] Errors on Solaris 2.5
Ok.. I got my Solaris 7 nrpe installed.. Now I am fighting with 2.5. Thanks
ahead of time for any help :)
I have autoconf v2.53
I have automake v1.4
gcc v2.95.3
glib v1.2.10
I get the following:
cd ./src/; make ; cd ..
make[1]: Entering directory `/mhome/jskains/work/mon/nrpe-1.5/src'
gcc -g -O2 -DHAVE_CONFIG_H -lnsl -lsocket nrpe.c netutils.c -o nrpe
Undefined first referenced
symbol in file
snprintf /var/tmp/cc88wkDn.o
ld: fatal: Symbol referencing errors. No output written to nrpe
collect2: ld returned 1 exit status
make[1]: *** [nrpe] Error 1
make[1]: Leaving directory `/mhome/jskains/work/mon/nrpe-1.5/src'
I get the following when I do a configure:
creating cache ./config.cache
checking for a BSD compatible install... ./install-sh -c
checking for gcc... gcc
checking whether the C compiler (gcc ) works... yes
checking whether the C compiler (gcc ) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether gcc accepts -g... yes
checking whether make sets ${MAKE}... yes
checking how to run the C preprocessor... gcc -E
checking for ANSI C header files... yes
checking whether time.h and sys/time.h may both be included... yes
checking for sys/wait.h that is POSIX.1 compatible... yes
checking for ctype.h... yes
checking for errno.h... yes
checking for fcntl.h... yes
checking for grp.h... yes
checking for netdb.h... yes
checking for pwd.h... yes
checking for signal.h... yes
checking for strings.h... yes
checking for string.h... yes
checking for syslog.h... yes
checking for unistd.h... yes
checking for arpa/inet.h... yes
checking for netinet/in.h... yes
checking for sys/types.h... yes
checking for sys/time.h... yes
checking for sys/resource.h... yes
checking for sys/wait.h... (cached) yes
checking for sys/socket.h... yes
checking for sys/stat.h... yes
checking for working const... yes
checking whether struct tm is in sys/time.h or time.h... time.h
checking for mode_t... yes
checking for pid_t... yes
checking for size_t... yes
checking return type of signal handlers... void
checking for uid_t in sys/types.h... yes
checking type of array argument to getgroups... gid_t
checking for main in -lnsl... yes
checking for socket in -lsocket... yes
checking for strdup... yes
checking for strstr... yes
checking for strtoul... yes
checking for initgroups... yes
checking for type of socket size... size_t
updating cache ./config.cache
creating ./config.status
creating Makefile
creating src/Makefile
creating nrpe.cfg
creating common/config.h
*** Configuration summary for nrpe 1.5 06-03-2002 ***:
General Options:
-------------------------
NRPE user: nagios
NRPE group: nagios
Review the options above for accuracy. If they look okay,
type 'make all' to compile the NRPE daemon and client.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20020828/511850ea/attachment.html>
More information about the Users
mailing list