[mrtg] Re: conftest.c error?
Yozo Toda
yozo at aohakobe.ipc.chiba-u.ac.jp
Tue Aug 31 18:04:30 MEST 1999
> Compiling mrtg for UnixWare:
> --
> MRTG 2.8.6
> GD 1.6.3
> libpng 1.0.3
> zlib1.1.3
> --
>
> I have ran into a problem compiling on UnixWare.
> It seems to miss the file 'conftest.c'.
conftest.c is generated by configure. try read it.
> The config.log states:
> ------
>
> configure:1002: checking for gdImageGif in -lgd
> configure:1021: cc -o conftest -g -lm -lgd conftest.c -lgd 1>&5
> Undefined first referenced
> symbol in file
> gdImageGif conftest.o
> UX:ld: ERROR: conftest: fatal error:
> Symbol referencing errors. No output written to conftest
> ------
when I ran configure as
./configure --with-gd-lib=/opt/gd/lib ......
I got the output as
======================================================================
......
configure:1002: checking for gdImageGif in -lgd
configure:1021: gcc -o conftest -g -O2 -I/opt/gd/include -lm -L/opt/gd/lib -lgd conftest.c -lgd 1>&5
Undefined first referenced
symbol in file
png_set_strip_16 /opt/gd/lib/libgd.so
png_set_read_fn /opt/gd/lib/libgd.so
png_create_write_struct /opt/gd/lib/libgd.so
png_create_read_struct /opt/gd/lib/libgd.so
png_set_tRNS /opt/gd/lib/libgd.so
png_write_end /opt/gd/lib/libgd.so
gdImageGif /var/tmp/cczzNnJy.o
......
======================================================================
note the existence of "-L/opt/gd/lib".
(see
<http://aohakobe.ipc.chiba-u.ac.jp/misc/docs/mrtg/mrtg-2.8.6/config.log>
<ftp://aohakobe.ipc.chiba-u.ac.jp/misc/docs/mrtg/mrtg-2.8.6/config.log>
if you're interested.)
I wonder why your adding --with-gd-lib option does not work...
-- yozo.
--
* To unsubscribe from the mrtg mailing list, send a message with the
subject: unsubscribe to mrtg-request at list.ee.ethz.ch
* The mailing list archive is at http://www.ee.ethz.ch/~slist/mrtg
More information about the mrtg
mailing list