ID: 21973 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Bogus Bug Type: *Configuration Issues Operating System: Solaris 8 PHP Version: 4.3.0 New Comment:
The way this works, works for 99.99% of users. We're not going to change this. Previous Comments: ------------------------------------------------------------------------ [2003-01-31 04:08:00] [EMAIL PROTECTED] 1) The patch allows to present the correct error message without changing anything else yet. I am working on a php wide patch that solves such problems generically. 2) I knew before what you are trying to. However you got a problem simply because you wnated to save some bytes... Try this layout .../normal/png/lib .../normal/png/include .../sparcv9/png/lib .../sparcv9/png/include What is left could be the fact that you used "libpng12" and i am not quite sure if we want to search for all versions since there should be links named libpng.whatever that point to the specific version (thats different from db-n where we search for a specific version). If you use the layout above you even have no need to configure any compiler linker configuration before calling ./configure. ------------------------------------------------------------------------ [2003-01-31 03:34:09] [EMAIL PROTECTED] In response to (1): This makes no difference. I'm not sure if we're on the same planet. I'm not quite sure what the patch was meant to achieve (and thus I don't understand what I was supposed to do to take advantage of it once configure was regenerated). I think the loop that fails to find libpng is indeed the one you've provided the patch for, so you and I are possibly within the same universe. In response to (2): > Since you obviated a system immanent feature... Hey, I'm really confused now. I'm not at all sure what nuance you're implying with those words. I really don't understand why you said it at all. Can I try saying this to you: /usr/local/include/libpng/png.h (for both arch) /usr/local/include/libpng/pngconf.h (for both arch) /usr/local/lib/libpng12.so (32-bit) /usr/local/lib/sparcv9/libpng12.so (64-bit) PHP needs to use the files in /usr/local/include/libpng and /usr/local/lib/sparcv9. The library path is already known by the compiler, linker, and loader. ------------------------------------------------------------------------ [2003-01-31 03:14:27] [EMAIL PROTECTED] 1) Please check if the following patch for ext/gd/config.m4 shows the correct message: Index: ext/gd/config.m4 =================================================================== RCS file: /repository/php4/ext/gd/config.m4,v retrieving revision 1.120.2.8 diff -u -r1.120.2.8 config.m4 --- ext/gd/config.m4 23 Jan 2003 06:22:42 -0000 1.120.2.8 +++ ext/gd/config.m4 31 Jan 2003 09:11:28 -0000 @@ -72,7 +72,9 @@ AC_DEFUN(PHP_GD_PNG,[ if test "$PHP_PNG_DIR" != "no"; then - for i in /usr /usr/local $PHP_PNG_DIR; do + PNG_USER_DIR=$PHP_PNG_DIR + unset PHP_PNG_DIR + for i in /usr /usr/local $PNG_USER_DIR; do test -f $i/lib/libpng.$SHLIB_SUFFIX_NAME -o -f $i/lib/libpng.a && GD_PNG_DIR=$i done 2) Since you obviated a system immanent feature (libs in x/lib and includes in x/include) you may required a link to point to your library and includes. ------------------------------------------------------------------------ [2003-01-31 02:39:47] [EMAIL PROTECTED] > --with-png-dir[=DIR] GD: Set the path to libpng install prefix. > that means you can set your library patch as follows: > --with-png-dir=/usr/local/lib/sparcv9 That makes no observable difference. Configure still reports "checking for the location of libpng... yes" (not that I have a directory called 'yes'...) and still says "If configure fails try --with-jpeg-dir=<DIR> configure: error: libpng.(a|so) not found." (and then stops). Note that the sparcv9 path is not libpng's "install prefix", it is just the lib dir. ------------------------------------------------------------------------ [2003-01-31 02:11:45] [EMAIL PROTECTED] Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php Look into ./configure --help: --with-png-dir[=DIR] GD: Set the path to libpng install prefix. that means you can set your library patch as follows: --with-png-dir=/usr/local/lib/sparcv9 But yes we could do it in another order to have more helpful error messages. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/21973 -- Edit this bug report at http://bugs.php.net/?id=21973&edit=1