[mrtg] Re: OpenBSD and GD

Rippe, Mark (CCI-Warwick) Mark.Rippe at cox.com
Thu Jul 18 19:40:23 MEST 2002


i had this problem and found two things i did wrong.
1] i messed up the spacing in the command
2] i  got the double quotes in the wrong places
	the result was that the libraries did not get built properly.
so ......

go back to gd.
do a make clean
then run the following command;

---- snip ----

make INCLUDEDIRS="-I. -I../zlib -I../libpng" LIBDIRS="-L../zlib -L. -L../libpng" LIBS="-lgd -lpng -lz -lm"

---- snip ----

now run the following;

---- snip ----

 ./configure --prefix=/usr/local/mrtg-2  --with-gd=/usr/local/src/gd  --with-z=/usr/local/src/zlib  --with-png=/usr/local/src/libpng

---- snip ----

good luck,


mark.rippe at cox.com

"Don't pay no attention to 'im.
He's dumber 'n a bag full 'o hammers"

Everett McGill


> -----Original Message-----
> From:	Fridtjof Busse [SMTP:fridtjof.busse at gmx.de]
> Sent:	Thursday, July 18, 2002 1:25 PM
> To:	mrtg at list.ee.ethz.ch
> Subject:	[mrtg] Re: OpenBSD and GD
> 
> 
> On Thursday 18 July 2002 19:20, Fridtjof Busse wrote:
> > ./configure --prefix=/usr/local/mrtg --includedir=/usr/local/include
> > --with-gd-inc=/usr/local/include --with-gd-lib=/usr/local/lib works.
> 
> But the next problem occurs immediatly:
> $ make
> gcc -I/usr/local/include -DGFORM_GD=gdImagePng -g -O2 -Wall 
> -Wpointer-arith -Wcast-align -Wmissing-declarations -Wnested-externs 
> -Winline -W -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 
> -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 
> -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_UNISTD_H=1 
> -DHAVE_UNSIGNED_LONG_LONG=1 -DHAVE_LONG_LONG=1 -DLIBM=1 -DHAVE_LIBM=1 
> -c ./src/rateup.c -o bin/rateup.o
> LD_RUN_PATH=/usr/local/lib gcc bin/rateup.o -o bin/rateup 
> -L/usr/local/lib -lm  -Wl,-Bstatic -lgd -lpng -lz -Wl,-Bdynamic -lm
> gd_png.o: Undefined symbol `_gdGetBuf' referenced from text segment
> gd_png.o: Undefined symbol `_gdPutBuf' referenced from text segment
> gd_png.o: Undefined symbol `_gdNewFileCtx' referenced from text segment
> gd_png.o: Undefined symbol `_gdGetBuf' referenced from text segment
> gd_png.o: Undefined symbol `_gdNewFileCtx' referenced from text segment
> gd_png.o: Undefined symbol `_gdNewDynamicCtx' referenced from text 
> segment
> gd_png.o: Undefined symbol `_gdDPExtractData' referenced from text 
> segment
> collect2: ld returned 1 exit status
> *** Error code 1
> 
> -- 
> Fridtjof Busse
> BOFH excuse #318:
> Your EMAIL is now being delivered by the USPS.
> 
> --
> Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
> Archive     http://www.ee.ethz.ch/~slist/mrtg
> FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
> WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi
> 

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list