[Nagiosplug-devel] build error

Andreas Ericsson ae at op5.se
Tue Dec 21 02:37:00 CET 2004


Voon, Ton wrote:
> Sigh. Maybe I should have left well alone. I thought we were going to get
> better compiles with the coreutils synchronisation...
> 

Why have the linker depend on autoconf to know what files to include?

> Which platform is this on? I think all the detection code should be in
> m4/fsusage.m4. I'm definitely getting detection on Sol2.6 and MacOSX
> (lib/Makefile shows: "LIBOBJS =  error$U.o getloadavg$U.o mountlist$U.o
> fsusage$U.o" on Sol2.6), so maybe there's a bug on your platform (though I
> find that hard to believe). What happens if you compile coreutils 5.2.1?
> 
> -----Original Message-----
> From: Matthew Kent [mailto:mkent at magoazul.com] 
> Sent: 21 December 2004 03:16
> To: nagiosplug-devel at lists.sourceforge.net
> Subject: [Nagiosplug-devel] build error
> 
> 
> Anyone else seeing this breakage in latest cvs? After a bit of poking around
> I'm too tired to figure it out. Seems to be from the recent sweep of changes
> in the build process 
> 
> -- snip --
> gcc  -g -O2  -L. -o check_disk  check_disk.o utils.o ../lib/libnagiosplug.a
> ../lib/libcoreutils.a popen.o -lssl -lcrypto
> check_disk.o(.text+0xbe): In function `main':
> /home/mkent/nagiosplug/plugins/check_disk.c:164: undefined reference to
> `read_filesystem_list'
> check_disk.o(.text+0x2ed):/home/mkent/nagiosplug/plugins/check_disk.c:188:
> undefined reference to `get_fs_usage'
> collect2: ld returned 1 exit status
> -- snip --
> 

These files should always be built, and if nothing is detected (beyond 
all the #else's, a fall-back function should be there to print an error 
message and return the equivalence of EXIT_FAIL.

> Looks like fsusage.o and mountlist.o in lib/ aren't getting built due to a
> detection problem of some sort. Could be my setup, but older releases still
> compile fine.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Lead Developer




More information about the Devel mailing list