[PHP-DEV] Re: Bug #11638 Updated: Compile --with-gd causes error

2001-06-24 Thread Bill Negrelli

Attached is my debug.log, can you offer any insight to the errors?

thanks.

-=Bill



On 24 Jun 2001, Bug Database wrote:

 ID: 11638
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Old-Status: Open
 Status: Bogus
 Bug Type: *Install and Config
 Operating system: 
 PHP Version: 4.0.6
 Assigned To: 
 Comments:
 
 I can not reproduce this with GD versions: 1.5 / 1.8.3 / 1.8.4 / 2.0.1. Also, using 
/usr/lib as path to any
 configure option is not correct. You must ALWAYS use
 the install prefix, in this case /usr for --with-jpeg-dir
 
 I think you have some conflict with older GD and newer one
 in your system. Try installing the GD into some other
 prefix than /usr, e.g. /opt/gd 
 
 Not bug in PHP.
 
 --Jani
 
 
 Previous Comments:
 ---
 
 [2001-06-24 09:09:51] [EMAIL PROTECTED]
 My configure command is:
 
 
 ./configure --with-gd=/usr --with-jpeg-dir=/usr/lib --enable-track-vars 
--with-apache=../apache_1.3.20/ --with-mysql
 
 make[1]: Entering directory `/usr/src/php-4.0.6/ext'
 Making all in gd
 make[2]: Entering directory `/usr/src/php-4.0.6/ext/gd'
 make[3]: Entering directory `/usr/src/php-4.0.6/ext/gd'
 gcc  -I. -I/usr/src/php-4.0.6/ext/gd -I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6 
-I/usr/src/apache_1.3.20/src/include -I/usr/src/apache_1.3.20/src/os/unix 
-I/usr/src/php-4.0.6/Zend -I/usr/src/php-4.0.6/ext/mysql/libmysql 
-I/usr/src/php-4.0.6/ext/xml/expat/xmltok -I/usr/src/php-4.0.6/ext/xml/expat/xmlparse 
-I/usr/src/php-4.0.6/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c gd.c  
touch gd.lo
 gd.c:95: conflicting types for `gdIOCtx'
 /usr/include/gd_io.h:18: previous declaration of `gdIOCtx'
 make[3]: *** [gd.lo] Error 1
 make[3]: Leaving directory `/usr/src/php-4.0.6/ext/gd'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory `/usr/src/php-4.0.6/ext/gd'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/usr/src/php-4.0.6/ext'
 make: *** [all-recursive] Error 1
 
 This is reproducable using GD Libs v1.8.x and 2.0.x
 
 PHP 4.0.6 and PHP 4.0.6
 
 Thanks.
 
 ---
 
 
 
 ATTENTION! Do NOT reply to this email!
 To reply, use the web interface found at http://bugs.php.net/?id=11638edit=2
 

-- 


BillyZ.com


CONFIGURE:   './configure' '--with-apache=../apache_1.3.20/' '--with-mysql' 
'--with-gd' '--enable-track-vars' '--enable-debug=no'
CC: gcc
CFLAGS: -g -O2
CPPFLAGS:-DSUPPORT_UTF8
CXX:
CXXFLAGS:   
INCLUDES:-I/usr/src/apache_1.3.20/src/include -I/usr/src/apache_1.3.20/src/os/unix 
 -I$(top_builddir)/Zend -I/usr/src/php-4.0.6/ext/mysql/libmysql
LDFLAGS:
LIBS:   -lgd -lcrypt -lresolv -lm -ldl -lnsl  -lresolv
DLIBS:  
SAPI:   apache
PHP_RPATHS: 
uname -a:   Linux sigma6 2.4.4 #3 SMP Fri May 25 17:07:40 EDT 2001 i686 unknown

gcc -o conftest -g -O2  -DSUPPORT_UTF8  conftest.c -lgd -lcrypt -lresolv -lm -ldl 
-lnsl  -lresolv 15
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`uncompress'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`FT_Init_FreeType'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`jpeg_read_scanlines'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`jpeg_simple_progression'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`FT_Load_Glyph'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`FT_Done_Face'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`png_get_rowbytes'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`png_set_strip_16'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`png_create_read_struct'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`FT_Get_Kerning'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`FT_Get_Char_Index'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`png_set_sig_bytes'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`jpeg_set_defaults'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`png_set_read_fn'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`png_set_packing'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`FT_Get_Glyph'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`png_get_io_ptr'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`jpeg_start_decompress'
/usr/lib/gcc-lib/i386-redhat-linux/2.96/../../../libgd.so: undefined reference to 
`jpeg_destroy'

Re: [PHP-DEV] Re: Bug #11638 Updated: Compile --with-gd causes error

2001-06-24 Thread Jani Taskinen


--with-jpeg-dir
--with-png-dir

--Jani


On Sun, 24 Jun 2001, Bill Negrelli wrote:

Attached is my debug.log, can you offer any insight to the errors?

thanks.

-=Bill



On 24 Jun 2001, Bug Database wrote:

 ID: 11638
 Updated by: sniper
 Reported By: [EMAIL PROTECTED]
 Old-Status: Open
 Status: Bogus
 Bug Type: *Install and Config
 Operating system:
 PHP Version: 4.0.6
 Assigned To:
 Comments:

 I can not reproduce this with GD versions: 1.5 / 1.8.3 / 1.8.4 / 2.0.1. Also, using 
/usr/lib as path to any
 configure option is not correct. You must ALWAYS use
 the install prefix, in this case /usr for --with-jpeg-dir

 I think you have some conflict with older GD and newer one
 in your system. Try installing the GD into some other
 prefix than /usr, e.g. /opt/gd

 Not bug in PHP.

 --Jani


 Previous Comments:
 ---

 [2001-06-24 09:09:51] [EMAIL PROTECTED]
 My configure command is:


 ./configure --with-gd=/usr --with-jpeg-dir=/usr/lib --enable-track-vars 
--with-apache=../apache_1.3.20/ --with-mysql

 make[1]: Entering directory `/usr/src/php-4.0.6/ext'
 Making all in gd
 make[2]: Entering directory `/usr/src/php-4.0.6/ext/gd'
 make[3]: Entering directory `/usr/src/php-4.0.6/ext/gd'
 gcc  -I. -I/usr/src/php-4.0.6/ext/gd -I/usr/src/php-4.0.6/main -I/usr/src/php-4.0.6 
-I/usr/src/apache_1.3.20/src/include -I/usr/src/apache_1.3.20/src/os/unix 
-I/usr/src/php-4.0.6/Zend -I/usr/src/php-4.0.6/ext/mysql/libmysql 
-I/usr/src/php-4.0.6/ext/xml/expat/xmltok -I/usr/src/php-4.0.6/ext/xml/expat/xmlparse 
-I/usr/src/php-4.0.6/TSRM  -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -g -O2  -c gd.c  
touch gd.lo
 gd.c:95: conflicting types for `gdIOCtx'
 /usr/include/gd_io.h:18: previous declaration of `gdIOCtx'
 make[3]: *** [gd.lo] Error 1
 make[3]: Leaving directory `/usr/src/php-4.0.6/ext/gd'
 make[2]: *** [all-recursive] Error 1
 make[2]: Leaving directory `/usr/src/php-4.0.6/ext/gd'
 make[1]: *** [all-recursive] Error 1
 make[1]: Leaving directory `/usr/src/php-4.0.6/ext'
 make: *** [all-recursive] Error 1

 This is reproducable using GD Libs v1.8.x and 2.0.x

 PHP 4.0.6 and PHP 4.0.6

 Thanks.

 ---



 ATTENTION! Do NOT reply to this email!
 To reply, use the web interface found at http://bugs.php.net/?id=11638edit=2





-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]