ID:               26655
 User updated by:  mmokrejs at natur dot cuni dot cz
 Reported By:      mmokrejs at natur dot cuni dot cz
-Status:           Feedback
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: solaris 2.6
 PHP Version:      4CVS-2003-12-17 (stable)
 New Comment:

Hi, I tested with php4-STABLE-200401102230 and the problem with libz2
symbols unresolved is caused by using --with-mysql=/usr/local/mysql .


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

[2004-01-06 18:32:12] [EMAIL PROTECTED]

Please try using this CVS snapshot:

  http://snaps.php.net/php4-STABLE-latest.tar.gz
 
For Windows:
 
  http://snaps.php.net/win32/php4-win32-STABLE-latest.zip

(The one you tried is bogus and should not really show up in the list)


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

[2004-01-05 05:16:30] mmokrejs at natur dot cuni dot cz

$ ls -la /usr/local/lib/libbz*
-rw-r--r--    1 root     other       72822 Dec  9 11:18
/usr/local/lib/libbz2.a
lrwxrwxrwx    1 root     other          15 Dec  9 11:19
/usr/local/lib/libbz2.so -> libbz2.so.1.0.2
-rwxr-xr-x    1 root     other       72807 Dec 18 23:48
/usr/local/lib/libbz2.so.1.0
-rwxr-xr-x    1 root     other       72807 Dec 18 23:48
/usr/local/lib/libbz2.so.1.0.1
-rwxr-xr-x    1 root     other       73967 Dec  9 11:19
/usr/local/lib/libbz2.so.1.0.2

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

[2004-01-05 05:14:53] mmokrejs at natur dot cuni dot cz

I did with php4-200401050830:

CC=gcc ./configure --disable-all --with-bz2
--with-apxs2=/usr/local/apache2/bin/apxs

and got:

... -lresolv -lm -lsocket -L/usr/local/lib -L/software/@sys/usr/lib
-L/software/@sys/usr/openssl/lib -L/usr/lib -lgcc  -o sapi/cli/php
ext/standard/filestat.lo: In function `php_stat':
ext/standard/filestat.lo(.text+0x1ec4): undefined reference to
`php_check_open_basedir_ex'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


$ grep lbz2 Makefile
$ grep lbz Makefile
$ grep bz2 Makefile
CONFIGURE_COMMAND = './configure' '--disable-all' '--with-bz2'
'--with-apxs2=/usr/local/apache2/bin/apxs'
$

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

[2003-12-19 07:47:49] [EMAIL PROTECTED]

You have static bz2 lib -> of course it doesn't show up in the ldd
output. Secondly, the -lbz2 sure is in EXTRA_LIBS in your Makefile. 

Now, what version of BZ2 do you have installed?
And try this configure line instead:
(don't try outsmart the configure with your CFLAGS etc)

# rm config.cache ; CC=gcc ./configure --disable-all --with-bz2
--with-apxs2=/usr/local/apache2/bin/apxs



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

[2003-12-18 17:55:56] [EMAIL PROTECTED]

Send me the generated Makefile to [EMAIL PROTECTED]


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

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/26655

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

Reply via email to