BUG #8952
| From: | Ken Allan | Date: | Fri, 02 Feb 2001 01:31:05 +0000 |
| Subject: | BUG #8952 | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-1876@lists.php.net to get a copy of this message | ||
Hi there,
I noticed your bug id #8952 was a problem that I personally had, and one
that i find usually pops up from time to time (read every release so far
:)...
I'm not much of a programmer, but I do know what's happening here...
gcc -funsigned-char -I/usr/local/installs/web_stuff/php-4.0.4pl1
-I/usr/local/installs/web_stuff/php-4.0.4pl1/main -I/usr/local/installs/web_
stuff/php-4.0.4pl1/main
-I/usr/local/installs/web_stuff/php-4.0.4pl1/Zend -I/usr/local/installs/web_
stuff/php-4.0.4pl1/Zend
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM
-I/usr/local/installs/web_stuff/php-4.0.4pl1/TSRM -I/usr/local/installs/web_
stuff/php-4.0.4pl1 -DUSE_EXPAT -I./lib/expat-lite
-DNO_DL_NEEDED
./apaci -o httpd buildmark.o modules.o
modules/standard/libstandard.a
modules/php4/libphp4.a main/libmain.a ./os/unix/libos.a ap/libap.a
lib/expat-lite/libexpat.a
-L/usr/local/installs/web_stuff/libpng-1.07/ -lpng -R/usr/local//lib -R/usr/
local/lib
-R/usr/local/lib/mysql -R/usr/local/pgsql//lib -rdynamic -L/usr/local//lib
-L/usr/local/lib
-L/usr/local/lib/mysql -L/usr/local/pgsql//lib -Lmodules/php4 -L../modules/p
hp4
-L../../modules/php4 -lmodphp4 -lpam -lpq -lmysqlclient -lttf -lpng -lz -l
gd -ljpeg -lm -lcrypt
-L/usr/local//lib -ljpeg -lcrypt
You see the part (towards the end) where the linked libraries are specified:
"-lttf -lpng -lz -lgd"
What they are doing wrong is doing the "-lttf -lpng" before the "-lgd" - now
i'm not sure why that doesn't work (or why it keeps on happening, and nobody
fixes it), but i know it gives me problems *everytime* i try and compile the
gd libraries... :(
anyhow, a hacked up solution that an extreme non-programmer like me uses to
make the compile work with the gd libraries is to just do a search and
replace on the apache Makefiles, to put things in the right order... ( do
this *AFTER* the final apache configure, and *BEFORE* you start compiling
apache )
perl -pi -e 's{(-lttf -lpng)(.+)(-lgd)}{$3$2$1}g;' \
Makefile */Makefile */*/Makefile */*/*/Makefile */*/*/*/Makefile
Works a charm for me...
Ken.