php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #24261 --with-cpdflib=/path forgets paths leading to compile failure.
Submitted: 2003-06-19 14:11 UTC Modified: 2003-06-26 13:07 UTC
From: pj at dc dot luth dot se Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.3.2 OS: Solaris 8
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: pj at dc dot luth dot se
New email:
PHP Version: OS:

 

 [2003-06-19 14:11 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-06-26 13:07 UTC] sniper@php.net
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.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 10:01:30 2024 UTC