From owner-freebsd-isp Thu May 11 8:28:54 2000 Delivered-To: freebsd-isp@freebsd.org Received: from richard2.pil.net (richard2.pil.net [207.8.164.9]) by hub.freebsd.org (Postfix) with SMTP id 0FC9737B887 for ; Thu, 11 May 2000 08:28:47 -0700 (PDT) (envelope-from up@3.am) Received: (qmail 49245 invoked by uid 1825); 11 May 2000 15:28:44 -0000 Received: from localhost (sendmail-bs@127.0.0.1) by localhost with SMTP; 11 May 2000 15:28:44 -0000 Date: Thu, 11 May 2000 11:28:44 -0400 (EDT) From: X-Sender: up@richard2.pil.net To: Enno Davids Cc: freebsd-isp@FreeBSD.ORG Subject: Re: gd library woes... In-Reply-To: <200005111427.AAA09386@metva.com.au> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org 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