php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #39939 Make with GD2 error
Submitted: 2006-12-24 06:54 UTC Modified: 2006-12-24 12:39 UTC
From: lendy dot chen at gmail dot com Assigned: pajoye (profile)
Status: Not a bug Package: GD related
PHP Version: 5.2.0 OS: Linux AS4.0U2
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: lendy dot chen at gmail dot com
New email:
PHP Version: OS:

 

 [2006-12-24 06:54 UTC] lendy dot chen at gmail dot com
Description:
------------
use same configure in php5.1.6 is success,but in php5.2.1,make error.


./configure 
--prefix=/usr/local/php 
--with-apxs2=/usr/local/apache2/bin/apxs 
--with-openssl-dir=/usr/local/ssl 
--with-jpeg-dir=/usr/local/modules/jpeg6 
--with-png 
--with-freetype-dir=/usr/local/modules/freetype 
--with-gd=/usr/local/gd2 
--enable-trace-vars 
--with-mysql=/usr/local/mysql 
--with-pdo-mysql=/usr/local/mysql 
--with-mysqli=/usr/local/mysql/bin/mysql_config 
--enable-sqlite-utf8 
--enable-pdo 
--with-libxml-dir=/usr/local/libxml2 
--enable-dba 
--with-zlib 
--enable-mbstring 
--with-iconv 
--enable-memory-limit 
--enable-sockets 
--enable-force-cgi-redirect 
--disable-debug 
--with-config-file-path=/etc 
--enable-fastcgi 
--enable-zip 
--enable-apc 
--enable-apc-mmap 
--enable-apc-sem 

ok

make
make error info:
ext/apc/.libs/apc_fcntl.o(.text+0x51): In function `apc_fcntl_create':
/usr/src/php-5.2.0/ext/apc/apc_fcntl.c:41: warning: the use of `mktemp' is dangerous, better use `mkstemp'
ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function `zim_xmlreader_setSchema':
/usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined reference to `xmlTextReaderSchemaValidate'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

not with 
--with-gd=/usr/local/gd2 
is make success.

Reproduce code:
---------------
use same configure in php5.1.6 is success,but in php5.2.1,make error.


./configure 
--prefix=/usr/local/php 
--with-apxs2=/usr/local/apache2/bin/apxs 
--with-openssl-dir=/usr/local/ssl 
--with-jpeg-dir=/usr/local/modules/jpeg6 
--with-png 
--with-freetype-dir=/usr/local/modules/freetype 
--with-gd=/usr/local/gd2 
--enable-trace-vars 
--with-mysql=/usr/local/mysql 
--with-pdo-mysql=/usr/local/mysql 
--with-mysqli=/usr/local/mysql/bin/mysql_config 
--enable-sqlite-utf8 
--enable-pdo 
--with-libxml-dir=/usr/local/libxml2 
--enable-dba 
--with-zlib 
--enable-mbstring 
--with-iconv 
--enable-memory-limit 
--enable-sockets 
--enable-force-cgi-redirect 
--disable-debug 
--with-config-file-path=/etc 
--enable-fastcgi 
--enable-zip 
--enable-apc 
--enable-apc-mmap 
--enable-apc-sem 

ok

make
make error info:
ext/apc/.libs/apc_fcntl.o(.text+0x51): In function `apc_fcntl_create':
/usr/src/php-5.2.0/ext/apc/apc_fcntl.c:41: warning: the use of `mktemp' is dangerous, better use `mkstemp'
ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function `zim_xmlreader_setSchema':
/usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined reference to `xmlTextReaderSchemaValidate'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

not with 
--with-gd=/usr/local/gd2 
is make success.

Expected result:
----------------
use same configure in php5.1.6 is success,but in php5.2.1,make error.


./configure 
--prefix=/usr/local/php 
--with-apxs2=/usr/local/apache2/bin/apxs 
--with-openssl-dir=/usr/local/ssl 
--with-jpeg-dir=/usr/local/modules/jpeg6 
--with-png 
--with-freetype-dir=/usr/local/modules/freetype 
--with-gd=/usr/local/gd2 
--enable-trace-vars 
--with-mysql=/usr/local/mysql 
--with-pdo-mysql=/usr/local/mysql 
--with-mysqli=/usr/local/mysql/bin/mysql_config 
--enable-sqlite-utf8 
--enable-pdo 
--with-libxml-dir=/usr/local/libxml2 
--enable-dba 
--with-zlib 
--enable-mbstring 
--with-iconv 
--enable-memory-limit 
--enable-sockets 
--enable-force-cgi-redirect 
--disable-debug 
--with-config-file-path=/etc 
--enable-fastcgi 
--enable-zip 
--enable-apc 
--enable-apc-mmap 
--enable-apc-sem 

ok

make
make error info:
ext/apc/.libs/apc_fcntl.o(.text+0x51): In function `apc_fcntl_create':
/usr/src/php-5.2.0/ext/apc/apc_fcntl.c:41: warning: the use of `mktemp' is dangerous, better use `mkstemp'
ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function `zim_xmlreader_setSchema':
/usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined reference to `xmlTextReaderSchemaValidate'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

not with 
--with-gd=/usr/local/gd2 
is make success.

Actual result:
--------------
use same configure in php5.1.6 is success,but in php5.2.1,make error.


./configure 
--prefix=/usr/local/php 
--with-apxs2=/usr/local/apache2/bin/apxs 
--with-openssl-dir=/usr/local/ssl 
--with-jpeg-dir=/usr/local/modules/jpeg6 
--with-png 
--with-freetype-dir=/usr/local/modules/freetype 
--with-gd=/usr/local/gd2 
--enable-trace-vars 
--with-mysql=/usr/local/mysql 
--with-pdo-mysql=/usr/local/mysql 
--with-mysqli=/usr/local/mysql/bin/mysql_config 
--enable-sqlite-utf8 
--enable-pdo 
--with-libxml-dir=/usr/local/libxml2 
--enable-dba 
--with-zlib 
--enable-mbstring 
--with-iconv 
--enable-memory-limit 
--enable-sockets 
--enable-force-cgi-redirect 
--disable-debug 
--with-config-file-path=/etc 
--enable-fastcgi 
--enable-zip 
--enable-apc 
--enable-apc-mmap 
--enable-apc-sem 

ok

make
make error info:
ext/apc/.libs/apc_fcntl.o(.text+0x51): In function `apc_fcntl_create':
/usr/src/php-5.2.0/ext/apc/apc_fcntl.c:41: warning: the use of `mktemp' is dangerous, better use `mkstemp'
ext/xmlreader/.libs/php_xmlreader.o(.text+0x1256): In function `zim_xmlreader_setSchema':
/usr/src/php-5.2.0/ext/xmlreader/php_xmlreader.c:983: undefined reference to `xmlTextReaderSchemaValidate'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1

not with 
--with-gd=/usr/local/gd2 
is make success.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-12-24 12:37 UTC] pajoye@php.net
The errors do not look like a ext/gd errors. What do you have in /usr/local/gd2?

Why don't you use simply "--with-gd" which uses the bundled library (strongly recommended).
 [2006-12-24 12:39 UTC] pajoye@php.net
Duplicate of 39940.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon May 12 13:01:27 2025 UTC