Date: Thu, 11 May 2000 11:28:44 -0400 (EDT) From: <up@3.am> To: Enno Davids <enno.davids@metva.com.au> Cc: freebsd-isp@FreeBSD.ORG Subject: Re: gd library woes... Message-ID: <Pine.BSF.4.10.10005111127030.49088-100000@richard2.pil.net> In-Reply-To: <200005111427.AAA09386@metva.com.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 12 May 2000, Enno Davids wrote: > | up@richard2.pil.net wrote: > | It seems alot of things I want to run (webalizer, mrtg, etc) need the gd > | libraries to run. Ok, fine...it doesn't build from ports because it's too > | old, so I get the source, make, make install with no incidents. > | > | graphs.o: In function `pie_chart': > | graphs.o(.text+0x25fd): undefined reference to `gdImageGif' > | *** Error code 1 > > .... > > | So, what am I doing wrong? > > The problem here is that GD has over time evolved a little. Specifically, > early versions of GD used the GIF format for the graphic they were > generating. As GIF is encumbered by patents though, GD has dropped support > in favour of supporting PNG (and more recently JPG I believe). > > So, in general you need to make sure the app you're trying to run has a > version of GD with the relevant interface. So, old versions of webalizer need > old versions of GD and new versions of webalizer use more recent versions of > GD for instance. Only matched APIs will 'mate' correctly. Ok, I tried installing the new, PNG-friendly version of webalizer, and now I get this: gcc -L/usr/local/include -o webalizer webalizer.o graphs.o -lgd -lz -lm graphs.o: In function `year_graph6x': graphs.o(.text+0xce6): undefined reference to `gdImagePng' graphs.o: In function `month_graph6': graphs.o(.text+0x1a4d): undefined reference to `gdImagePng' graphs.o: In function `day_graph3': graphs.o(.text+0x2083): undefined reference to `gdImagePng' graphs.o: In function `pie_chart': graphs.o(.text+0x25fd): undefined reference to `gdImagePng' *** Error code 1 Stop. Damn, it appears to be looking in the correct place for the header files, etc, but it just ain't working... James Smallacombe PlantageNet, Inc. CEO and Janitor up@3.am http://3.am ========================================================================= To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.10005111127030.49088-100000>