Web Hosting Talk







View Full Version : GD 1.8.4 make not working


DaWiseMouse
12-16-2001, 05:15 AM
k, been trying everything, when I run the make command I get the following error

[root gd-1.8.4]# make
gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include pngtogd.o -o pngtogd -L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib -lm -lpng -lz -ljpeg -lX11 -lgd
pngtogd.o: In function `main':
pngtogd.o(.text+0x6b): undefined reference to `gdImageCreateFromPng'
collect2: ld returned 1 exit status
make: *** [pngtogd] Error 1

I have installed the following with no problems as it seems they are a requirement.
zlib-1.1.3.tar.gz
jpegsrc.v6b.tar.gz
libpng-1.2.1.tar.gz

and all have installed fine, yet when I try installing the GD it crashes and burns, this is all in an attempt to install/upgrade to PHP-4.1.0
currently running PHP-4.0.6 with GD-1.8.3 installed from the PKG from Cobalts site..
Any idea's, suggestions or help is appreciated.. Mouse

jahsh
12-26-2001, 07:53 PM
get the gd package from ftp.redhat.com (i worked for me when trying to install mrtg on a raq3)

allera
12-26-2001, 11:53 PM
Two helpful points:

- Make sure all of your .h files are in fact in /usr/local/include and all your libs are in fact in /usr/local/lib.

- Switch around the -l<name> options in the gd makefile. For instance, instead of -lm -lpng <the rest> put -lgd -lpng <etc>. Some OSes are picky about that order. Some of them need -lgd to come first for some reason (I didn't care to figure out why, I just made the changes and when they worked kept going). GD can be a royal pain, so if you have more problems post back here and I'm sure someone can give some more help.

Good luck. :)

hennaboy
01-02-2002, 07:06 AM
have the same problem if u have a working solution please post

DaWiseMouse
01-02-2002, 02:47 PM
Sorry, took a break from it for a while, tried changing the order several ways on the line you described allera, still no luck, here i sthe error output with -lgd first in the order, more or less the same error no matter which is in what order,

gcc -I. -I/usr/include/freetype2 -I/usr/include/X11 -I/usr/X11R6/include/X11 -I/usr/local/include pngtogd.o -o pngtogd -L. -L/usr/local/lib -L/usr/lib/X11 -L/usr/X11R6/lib -lgd -lpng -lz -ljpeg -lX11 -lm
pngtogd.o: In function `main':
pngtogd.o(.text+0x6b): undefined reference to `gdImageCreateFromPng'
collect2: ld returned 1 exit status
make: *** [pngtogd] Error 1

looks like something else in the makefile is off kilter, also checked for all of the requeted files in the correct location, will try the next suggestion and see if a RPM works.. Mouse

hennaboy
01-02-2002, 03:49 PM
i had success with gd-2.0.1 which is the current dev version....it seems the make is a bit more together with this one - you may want to try this instead.

DaWiseMouse
01-02-2002, 03:56 PM
I have heard some people have had problems with that, but i may very well give it a try, its not an urgancy, just some clients who want some of the new features..