ID:               15873
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         Apache related
 Operating System: rh linux 7.2
 PHP Version:      4.1.2
 New Comment:

I am experiencing the same problem. I have built freetype, libpng and
gd myself, if theres a problem linking to the wrong gd (which there
does not appear to be) it would be a php bug, as the path to gd was
explicitly stated.

gcc  -DLINUX=22 -I/root/php-4.1.2 -I/root/php-4.1.2/main
-I/root/php-4.1.2/main -I/root/php-4.1.2/Zend -I/root/php-4.1.2/Zend
-I/root/php-4.1.2/TSRM -I/root/php-4.1.2/TSRM -I/root/php-4.1.2
-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   
-Wl,-rpath,/usr/local/freetype-1.3.1//lib
-Wl,-rpath,/usr/local/gd-1.8.4//lib -Wl,-rpath,/opt/sybase-11.9.2//lib 
-rdynamic -L/usr/local/freetype-1.3.1//lib -L/usr/local/gd-1.8.4//lib
-L/opt/sybase-11.9.2//lib -Lmodules/php4 -L../modules/php4
-L../../modules/php4 -lmodphp4  -lpam  -ldl -linsck -lsybtcl -lintl
-lcomn -lct -lcs -lsnmp -lgd -lttf -lcrypt -lssl -lcrypto -lresolv -lm
-ldl -lnsl  -lresolv -lcrypt -lssl -lcrypto   -lm -lcrypt -lexpat
modules/php4/libphp4.a(gd.o): In function `zif_imagecreatefromstring':
/root/php-4.1.2/ext/gd/gd.c:1043: undefined reference to
`gdImageCreateFromJpegCtx'
modules/php4/libphp4.a(gd.o): In function `zif_imagecreatefromjpeg':
/root/php-4.1.2/ext/gd/gd.c:1216: undefined reference to
`gdImageCreateFromJpegCtx'
/root/php-4.1.2/ext/gd/gd.c:1216: undefined reference to
`gdImageCreateFromJpeg'
modules/php4/libphp4.a(gd.o): In function `zif_imagejpeg':


Previous Comments:
------------------------------------------------------------------------

[2002-03-06 13:16:32] [EMAIL PROTECTED]

well, i did have uninstalled gd-1.4.8 (i didn't notice the version
before), by "rpm -e gd-1.4.8"

but the version i reinstall is also gd-1.4.8 source
and compile/install to /usr/local/ (rpm version should be /usr/)

i've done "rm -f config.cache"
dunno why "configure" still think that nothing changed
so can't link with gd and give out "undefined reference" error

------------------------------------------------------------------------

[2002-03-06 06:12:55] [EMAIL PROTECTED]

This might be caused by multiple versions of GD being installed. Check
if the old version is really gone and try again :)

------------------------------------------------------------------------

[2002-03-05 08:30:31] [EMAIL PROTECTED]

what i did:
step1:
redhat7.2
with gd/jpeg/... support
build php as apache module
ok, works

step2:
uninstall some of the redhat rpm
download gd/jpeg and build it
reconfig php; make clean; make; make install;
all passed;

step3:
now reconfig apache, rebuild apache
failed! undefined reference to gdImageCreate gdImage....
and so on...

i've tried so many times, still get such error.

and by change, i did the following command in apache src-package
directory:
[apache]# rm src/modules/php4/libphp4.module
and:
[php]# make install
[apache]# make

all pass! it works.


in a word, libphp4.module was not reinstalled correctly!

------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=15873&edit=1

Reply via email to