ID:               24261
 Updated by:       [EMAIL PROTECTED]
 Reported By:      pj at dc dot luth dot se
-Status:           Open
+Status:           Closed
 Bug Type:         Compile Failure
 Operating System: Solaris 8
 PHP Version:      4.3.2
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.


Previous Comments:
------------------------------------------------------------------------

[2003-06-19 14:11:19] pj at dc dot luth dot se

Description:
------------
When libtiff and libjpeg are in different directories compared to
clibpdf and a path is given to all three configure fails to find
clibpdf although it exists. (It only searches in the libtiff for some
reason, it seems to mangle the paths that are given). 

This fixes it for me, however it seems like it is a gross hack. A guess
is that CPDF_TIFF_TEST mangles the path.

--- ext/cpdf/config.m4.orig     Thu Jun 19 09:57:51 2003
+++ ext/cpdf/config.m4  Thu Jun 19 21:00:00 2003
@@ -63,10 +63,12 @@
   if test "$withval" = "no"; then
     AC_MSG_RESULT(no)
   else
+    old_withval=$withval
     AC_MSG_RESULT(yes)
     PHP_NEW_EXTENSION(cpdf, cpdf.c)
     CPDF_JPEG_TEST
     CPDF_TIFF_TEST
+    withval=$old_withval
     for i in $withval /usr /usr/local; do
       if test -f "$i/include/cpdflib.h"; then
         CPDFLIB_INCLUDE=$i/include


Reproduce code:
---------------
Fill in the variables with paths.

./configure --prefix=%{_prefix} \
            --enable-ftp \
            --enable-versioning \
            --with-config-file-path=/env/%{module} \
            --with-apxs=$APACHE/bin/apxs \
            --enable-pear \
            --disable-short-tags \
            --enable-bcmath \
            --enable-memory-limit \
            --with-db3=$DB3 \
            --with-ldap=$OPENLDAP \
            --with-mhash=$MHASH \
            --enable-track-vars \
            --enable-trans-sid \
            --enable-calendar \
            --with-unixODBC=$UNIXODBC \
            --with-mysql=$MYSQL \
            --with-imap=$IMAP \
            --with-imap-ssl=$OPENSSL \
            --with-gd=$GD \
            --with-jpeg-dir=$LIBJPEG \
            --with-png-dir=$LIBPNG \
            --with-zlib=$ZLIB \
            --with-gettext=$GETTEXT \
            --with-tiff-dir=$LIBTIFF \
            --with-cpdflib=$CLIBPDF \
            --with-xpm-dir=$XPM \
            --with-readline=$READLINE \
            --with-openssl=$OPENSSL \
            --with-bz2=$BZIP2 \
            --with-gmp=$GMP \
            --with-freetype-dir=$FREETYPE \
            --with-gdbm=$GDBM 


Expected result:
----------------
Configure complete and ready to make.

Actual result:
--------------
configure fails to find clibpdf.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=24261&edit=1

Reply via email to