From:             [EMAIL PROTECTED]
Operating system: FreeBSD 4.3
PHP version:      4.2.1
PHP Bug Type:     GD related
Bug description:  compile problem with GD & JPEG support

when compiling PHP with GD & JPEG support i get a lot of errors with
libjpeg.a moaning about 'multiple definitions' and 'first defined here'
stuff.

system config:
FreeBSD 4.3
Apache 2.0.36
PHP 4.2.1

GD 1.8.4 (compiled ok with support for png, jpeg, freetype)
Jpeg 6B
Libpng 1.2.2
Gdbm 1.8.0
Pdflib 4.0.2
Freetype 2.1.0

configure:
./configure \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-config-file-path=/etc \
--enable-shared \
--enable-track-vars \
--enable-ftp \
--with-gdbm=/usr/local \
--with-gd=/usr/local/graph/gd \
--with-jpeg-dir=/usr/local/graph/jpeg \
--enable-gd-native-ttf \
--with-png-dir=/usr/local/graph/png \
--with-freetype-dir=/usr/local/graph/freetype2 \
--with-mysql=/usr/local \
--with-zlib-dir=/usr/local/graph/zlib \
--with-zlib \
--with-pdflib=/usr/local/graph/pdflib \
--with-tsrm-pth \

configure goes OK. all the functions are supported and no errors are
given.

When i do a gmake i get this error:

/usr/local/lib/libjpeg.a(jcapimin.o): In function `jpeg_CreateCompress':
jcapimin.o(.text+0x0): multiple definition of `jpeg_CreateCompress'
/usr/local/lib/libjpeg.a(jcapimin.o)(.text+0x0): first defined here

It goes on for about 50 of these jpeg_<functions>.
you can look at the complete error here:

http://httpd.chello.nl/~jstienstra01/php/compile_error.txt

The STRANGE thing is that if i leave apache2 support out (--with-apxs2)
and compile it as a CGI-BINARY, i do not get errors and it compiles fine
?

thing i've tried:
-tried GD2.0.1 and gd 1.8.3 instead of gd 1.8.4

-did a system search for old jpeg/png/GD libraries. deleted them all and
did a clean install for these packages 

-install the packages in standard directorys (/usr/lib and /usr/include
etc), doesn't work either.

-tried php 4.1.0, php 4.2.0 and php 4.2.1

-searching bug database for similiar problem :)

-been busy googling for 4 days, yet to find no fix for this problem, only
people that have the same problem and didnt
get an answer too.

THE thing that i don't understand is that if i leave apache support out
and compile it as a cgi binary it gives no compile errors.

help?

-- 
Edit bug report at http://bugs.php.net/?id=17269&edit=1
-- 
Fixed in CVS:        http://bugs.php.net/fix.php?id=17269&r=fixedcvs
Fixed in release:    http://bugs.php.net/fix.php?id=17269&r=alreadyfixed
Need backtrace:      http://bugs.php.net/fix.php?id=17269&r=needtrace
Try newer version:   http://bugs.php.net/fix.php?id=17269&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=17269&r=support
Expected behavior:   http://bugs.php.net/fix.php?id=17269&r=notwrong
Not enough info:     http://bugs.php.net/fix.php?id=17269&r=notenoughinfo
Submitted twice:     http://bugs.php.net/fix.php?id=17269&r=submittedtwice
register_globals:    http://bugs.php.net/fix.php?id=17269&r=globals

Reply via email to