Problem with compilation with GD support on OpenBSD 2.9
| From: | Martin Ambroz | Date: | Wed, 19 Sep 2001 18:13:04 +0000 |
| Subject: | Problem with compilation with GD support on OpenBSD 2.9 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-67883@lists.php.net to get a copy of this message | ||
Hi,
I have problem with GD lib in PHP. I try compile PHP with Gdlib on OpenBSD
2.9. I download gd-1.8.4, freetype-2.0.4, libpng-1.2.0 and jpeg-6b. With
compile gd i have some problems, but I thought it was OK. But during
compilation php-4.0.6 has happened mistake. This:
/bin/sh /home/darius/install/php-4.0.6/libtool --silent --mode=link
gcc -I. -I/
home/darius/install/php-4.0.6/ -I/home/darius/install/php-4.0.6/main -I/home
/dar
ius/install/php-4.0.6 -I/usr/local/httpd/include -I/home/darius/install/php-
4.0.
6/Zend -I/usr/local/include -I/usr/local/include/c-client -I/home/darius/ins
tall
/php-4.0.6/ext/mysql/libmysql -I/home/darius/install/php-4.0.6/ext/xml/expat
/xml
tok -I/home/darius/install/php-4.0.6/ext/xml/expat/xmlparse -I/home/darius/i
nsta
ll/php-4.0.6/TSRM -DUSE_EXPAT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2 -
o li
bphp4.la -rpath
/home/darius/install/php-4.0.6/libs -avoid-version -L/usr/local/
lib -R /usr/local/lib stub.lo Zend/libZend.la sapi/apache/libsapi.la
main/li
bmain.la regex/libregex.la ext/ftp/libftp.la ext/gd/libgd.la
ext/imap/libimap.
la ext/mysql/libmysql.la ext/pcre/libpcre.la ext/posix/libposix.la
ext/session/l
ibsession.la ext/standard/libstandard.la ext/xml/libxml.la
TSRM/libtsrm.la -lc-
client -lgd -lresolv -lm -lresolv
gd.c:361: Definition of symbol `_gdImageColorResolve' (multiply defined)
my_tempnam.c:86: warning: tempnam() possibly used unsafely; consider using
mkste
mp()
/usr/local/lib/libgd.a(gd.o): Definition of symbol `_gdImageColorResolve'
(multi
ply defined)
collect2: ld returned 1 exit status
*** Error code 1
Stop in /home/darius/install/php-4.0.6 (line 23 of
/home/darius/install/php-4.0.
6/build/library.mk).
*** Error code 1
Stop in /home/darius/install/php-4.0.6 (line 37 of
/home/darius/install/php-4.0.
6/build/rules.mk).
The configure command is:
./configure --with-apxs=/usr/local/httpd/bin/apxs --with-mysql --with-imap -
-enable-ftp --with-gd=/usr/local
What is wrong? Could you help me please, how to compile PHP with gd library
on OpenBSD 2.9?
Thank
Radek