[PHP-DEV] Bug #10331 Updated: configure: test gd functions lacks inclusion of -lpng, -lz

2001-05-10 Thread sniper

ID: 10331
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Feedback
Status: Closed
Bug Type: GD related
Operating system: 
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Try latest CVS. If that doesn't work for you, reopen.

--Jani


Previous Comments:
---

[2001-04-16 21:12:00] [EMAIL PROTECTED]
User Reported:
-
Works for some parts, but not all:
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... no
checking for gdImagePaletteCopy in -lgd... no
checking for gdImageColorClosestHWB in -lgd... no
checking for compress in -lz... no
checking for png_info_init in -lpng... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... yes
checking for gdImageCreateFromXpm in -lgd... yes

To whom should I send the config.log? It is uncompressed about 120K,
compress about 11K - so probably not suitable for a mailing list?

Regards,
jens.

BTW: Any hints how to trace that problem:

# /etc/init.d/apachectl-1.3.19 start
Syntax error on line 233 of /opt/www/conf/httpd.conf:
API module structure `php4_module' in file /opt/www/libexec/libphp4.so is garbled - 
perhaps this is not an Apache module DSO?
/etc/init.d/apachectl start: httpd could not be started
-

Please email me the config.log to mailto:[EMAIL PROTECTED]

The garbled module problem is technically a different bug; I would suggest ensuring 
that gd links in correctly (or building without) and making sure that you do 
"./cvsclean; ./buildconf" before you configure.

---

[2001-04-16 05:30:22] [EMAIL PROTECTED]
Could you reverse your patch, and then:
rm config.cache
./configure
 --prefix=/develop/sl7/proto/opt/php4
 --with-apxs --enable-discard-path
 --with-config-file-path=/etc --enable-safe-mode
 --with-exec-dir=/opt/php/bin
 --with-openssl=/opt/ssl --enable-calendar
 --enable-ftp --with-ldap --with-mysql
 --with-oci8=/opt/oracle --enable-sockets
 --with-regex=system --enable-sysvsem
 --enable-sysvshm --with-zlib=/usr/local
 --with-xpm-dir=/usr/X11R6
 --with-jpeg-dir=/usr
 --enable-track-vars
 --with-png-dir=/usr
 --with-gd=/usr/local 

Let me know if it works; if it does not, I would like to see your config.log to find 
out what is going on.

BTW: --with-sockets enables the sockets extension - you probably don't need it.



---

[2001-04-15 14:21:54] [EMAIL PROTECTED]
I made a quick and dirty patch to configure, so that it
works:

--- configure   Thu Jan 11 19:39:29 2001
+++ ../../php-4.0.4pl1/configureSun Apr 15 19:40:28 2001
@@ -16390,7 +16390,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lgd  $LIBS"
+LIBS="-lgd  -lpng -lz $LIBS"
 cat > conftest.$ac_ext <&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lgd  $LIBS"
+LIBS="-lgd -lpng -lz $LIBS"
 cat > conftest.$ac_ext <&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lgd  $LIBS"
+LIBS="-lgd -lpng -lz $LIBS"
 cat > conftest.$ac_ext <&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lz  $LIBS"
+LIBS="-lz -lpng $LIBS"
 cat > conftest.$ac_ext 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10331 Updated: configure: test gd functions lacks inclusion of -lpng, -lz

2001-04-16 Thread wez

ID: 10331
Updated by: wez
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: GD related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

User Reported:
-
Works for some parts, but not all:
checking whether to include GD support... yes (static)
checking for gdImageString16 in -lgd... no
checking for gdImagePaletteCopy in -lgd... no
checking for gdImageColorClosestHWB in -lgd... no
checking for compress in -lz... no
checking for png_info_init in -lpng... yes
checking for gdImageColorResolve in -lgd... yes
checking for gdImageCreateFromPng in -lgd... yes
checking for gdImageCreateFromGif in -lgd... no
checking for gdImageWBMP in -lgd... yes
checking for gdImageCreateFromJpeg in -lgd... yes
checking for gdImageCreateFromXpm in -lgd... yes

To whom should I send the config.log? It is uncompressed about 120K,
compress about 11K - so probably not suitable for a mailing list?

Regards,
jens.

BTW: Any hints how to trace that problem:

# /etc/init.d/apachectl-1.3.19 start
Syntax error on line 233 of /opt/www/conf/httpd.conf:
API module structure `php4_module' in file /opt/www/libexec/libphp4.so is garbled - 
perhaps this is not an Apache module DSO?
/etc/init.d/apachectl start: httpd could not be started
-

Please email me the config.log to mailto:[EMAIL PROTECTED]

The garbled module problem is technically a different bug; I would suggest ensuring 
that gd links in correctly (or building without) and making sure that you do 
"./cvsclean; ./buildconf" before you configure.

Previous Comments:
---

[2001-04-16 05:30:22] [EMAIL PROTECTED]
Could you reverse your patch, and then:
rm config.cache
./configure
 --prefix=/develop/sl7/proto/opt/php4
 --with-apxs --enable-discard-path
 --with-config-file-path=/etc --enable-safe-mode
 --with-exec-dir=/opt/php/bin
 --with-openssl=/opt/ssl --enable-calendar
 --enable-ftp --with-ldap --with-mysql
 --with-oci8=/opt/oracle --enable-sockets
 --with-regex=system --enable-sysvsem
 --enable-sysvshm --with-zlib=/usr/local
 --with-xpm-dir=/usr/X11R6
 --with-jpeg-dir=/usr
 --enable-track-vars
 --with-png-dir=/usr
 --with-gd=/usr/local 

Let me know if it works; if it does not, I would like to see your config.log to find 
out what is going on.

BTW: --with-sockets enables the sockets extension - you probably don't need it.



---

[2001-04-15 14:21:54] [EMAIL PROTECTED]
I made a quick and dirty patch to configure, so that it
works:

--- configure   Thu Jan 11 19:39:29 2001
+++ ../../php-4.0.4pl1/configureSun Apr 15 19:40:28 2001
@@ -16390,7 +16390,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lgd  $LIBS"
+LIBS="-lgd  -lpng -lz $LIBS"
 cat > conftest.$ac_ext <&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lgd  $LIBS"
+LIBS="-lgd -lpng -lz $LIBS"
 cat > conftest.$ac_ext <&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lgd  $LIBS"
+LIBS="-lgd -lpng -lz $LIBS"
 cat > conftest.$ac_ext <&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lz  $LIBS"
+LIBS="-lz -lpng $LIBS"
 cat > conftest.$ac_ext 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10331 Updated: configure: test gd functions lacks inclusion of -lpng, -lz

2001-04-16 Thread wez

ID: 10331
Updated by: wez
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: GD related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Could you reverse your patch, and then:
rm config.cache
./configure
 --prefix=/develop/sl7/proto/opt/php4
 --with-apxs --enable-discard-path
 --with-config-file-path=/etc --enable-safe-mode
 --with-exec-dir=/opt/php/bin
 --with-openssl=/opt/ssl --enable-calendar
 --enable-ftp --with-ldap --with-mysql
 --with-oci8=/opt/oracle --enable-sockets
 --with-regex=system --enable-sysvsem
 --enable-sysvshm --with-zlib=/usr/local
 --with-xpm-dir=/usr/X11R6
 --with-jpeg-dir=/usr
 --enable-track-vars
 --with-png-dir=/usr
 --with-gd=/usr/local 

Let me know if it works; if it does not, I would like to see your config.log to find 
out what is going on.

BTW: --with-sockets enables the sockets extension - you probably don't need it.



Previous Comments:
---

[2001-04-15 14:21:54] [EMAIL PROTECTED]
I made a quick and dirty patch to configure, so that it
works:

--- configure   Thu Jan 11 19:39:29 2001
+++ ../../php-4.0.4pl1/configureSun Apr 15 19:40:28 2001
@@ -16390,7 +16390,7 @@
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lgd  $LIBS"
+LIBS="-lgd  -lpng -lz $LIBS"
 cat > conftest.$ac_ext <&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lgd  $LIBS"
+LIBS="-lgd -lpng -lz $LIBS"
 cat > conftest.$ac_ext <&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lgd  $LIBS"
+LIBS="-lgd -lpng -lz $LIBS"
 cat > conftest.$ac_ext <&6
 else
   ac_save_LIBS="$LIBS"
-LIBS="-lz  $LIBS"
+LIBS="-lz -lpng $LIBS"
 cat > conftest.$ac_ext <&5
/usr/local/lib/libgd.so: undefined reference to `uncompress'
/usr/local/lib/libgd.so: undefined reference to `png_get_rowbytes'
/usr/local/lib/libgd.so: undefined reference to `png_set_strip_16'
/usr/local/lib/libgd.so: undefined reference to `png_create_read_struct'
...
collect2: ld returned 1 exit status
configure: failed program was:
...

---

The remainder of the comments for this report are too long.  To view the rest of the 
comments, please view the bug report online.


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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10331 Updated: configure: test gd functions lacks inclusion of -lpng, -lz

2001-04-15 Thread wez

ID: 10331
Updated by: wez
Reported By: [EMAIL PROTECTED]
Status: Feedback
Bug Type: GD related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Sorry - you also need --with-xpm-dir, and I meant to say GD 2.



Previous Comments:
---

[2001-04-15 08:52:32] [EMAIL PROTECTED]
Support for GD was just added to the latest CVS.
Try a snapshot from snaps.php.net or checkout the latest CVS and configure with:

./configure 
"--with-jpeg-dir"  
"--with-png-dir"  
"--with-freetype-dir"  
"--with-gd" 

Beware - this will implicitly --enable-gd-native-ttf.

Please let me know how you get on.

--Wez.

---

[2001-04-15 02:07:18] [EMAIL PROTECTED]
I'm using shared libgd.so.2.0.0 which supports jpeg, xpm, png and libz. Unfortunately 
php configure does NOT include
libpng and libz in its test, so it gets wrong results.
E.g.:

configure:15759: checking whether to include GD support
configure:16388: checking for gdImageString16 in -lgd
configure:16407: gcc -o conftest -g -O2  -DLINUX=2 -DMOD_SSL=206105 -DEAPI -DUSE
_EXPAT -DSHARED_CORE  -Wl,-rpath,/opt/ssl/lib -L/opt/ssl/lib -Wl,-rpath,/usr/X11
R6/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -L/usr/local/
lib conftest.c -lgd  -lgd -lX11 -lXpm -ljpeg -lcrypto -lssl -lresolv -lm -ldl -l
crypt -lnsl  -lresolv -L/usr/lib -ljpeg -L/usr/X11R6/lib -lXpm -L/usr/X11R6/lib 
-lX11 1>&5
/usr/local/lib/libgd.so: undefined reference to `uncompress'
/usr/local/lib/libgd.so: undefined reference to `png_get_rowbytes'
/usr/local/lib/libgd.so: undefined reference to `png_set_strip_16'
/usr/local/lib/libgd.so: undefined reference to `png_create_read_struct'
...
collect2: ld returned 1 exit status
configure: failed program was:
...

---



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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #10331 Updated: configure: test gd functions lacks inclusion of -lpng, -lz

2001-04-15 Thread wez

ID: 10331
Updated by: wez
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: GD related
PHP Version: 4.0.4pl1
Assigned To: 
Comments:

Support for GD was just added to the latest CVS.
Try a snapshot from snaps.php.net or checkout the latest CVS and configure with:

./configure 
"--with-jpeg-dir" \ 
"--with-png-dir" \ 
"--with-freetype-dir" \ 
"--with-gd" 

Beware - this will implicitly --enable-gd-native-ttf.

Please let me know how you get on.

--Wez.

Previous Comments:
---

[2001-04-15 02:07:18] [EMAIL PROTECTED]
I'm using shared libgd.so.2.0.0 which supports jpeg, xpm, png and libz. Unfortunately 
php configure does NOT include
libpng and libz in its test, so it gets wrong results.
E.g.:

configure:15759: checking whether to include GD support
configure:16388: checking for gdImageString16 in -lgd
configure:16407: gcc -o conftest -g -O2  -DLINUX=2 -DMOD_SSL=206105 -DEAPI -DUSE
_EXPAT -DSHARED_CORE  -Wl,-rpath,/opt/ssl/lib -L/opt/ssl/lib -Wl,-rpath,/usr/X11
R6/lib -L/usr/X11R6/lib -Wl,-rpath,/usr/local/lib -L/usr/local/lib -L/usr/local/
lib conftest.c -lgd  -lgd -lX11 -lXpm -ljpeg -lcrypto -lssl -lresolv -lm -ldl -l
crypt -lnsl  -lresolv -L/usr/lib -ljpeg -L/usr/X11R6/lib -lXpm -L/usr/X11R6/lib 
-lX11 1>&5
/usr/local/lib/libgd.so: undefined reference to `uncompress'
/usr/local/lib/libgd.so: undefined reference to `png_get_rowbytes'
/usr/local/lib/libgd.so: undefined reference to `png_set_strip_16'
/usr/local/lib/libgd.so: undefined reference to `png_create_read_struct'
...
collect2: ld returned 1 exit status
configure: failed program was:
...

---



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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]