ID: 10539
Updated by: sniper
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Feedback
Bug Type: Compile Failure
Operating system: 
PHP Version: 4.0 Latest CVS (28/04/2001)
Assigned To: 
Comments:

Could you please try the PHP 4.0.6RC1:

http://www.php.net/~andi/php-4.0.6RC1.tar.gz


--Jani


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

[2001-05-04 22:11:25] [EMAIL PROTECTED]
Still fails, but error in config.log is quite puzzling. yp would suggest an 
NIS-related problem, but we don't use it ...

[snip]
configure:4786: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS  conftest.c 
-lsocket  1>&5
Undefined                       first referenced
 symbol                             in file
yp_get_default_domain               /var/tmp/ccpTQEla.o  (symbol belongs to implicit 
dependen
cy /usr/lib/libnsl.so.1)
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status
configure: failed program was:
#line 4763 "configure"
[snip]

Doesn't look relevant this time, but here's the output of 
/usr/local/mysql-3.23.37/bin/mysql_config --libs:      
/usr/local/mysql-3.23.37/bin/mysql_config: !: not found
 -L'/usr/local/mysql-3.23.37/lib/mysql' -lmysqlclient -lz -lcrypt -lgen -lsocket -lnsl 
-lm 

thanks again. -d

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

[2001-05-01 20:23:55] [EMAIL PROTECTED]
Should be fixed in CVS now.
If not, reopen with the output of this command:

/usr/local/mysql-3.23.37/bin/mysql_config --libs

--Jani


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

[2001-04-30 18:21:23] [EMAIL PROTECTED]
Thanks for your response. Info you requested is below.  I'm afraid I don't know what 
to look for in this case, so let me know if you need anything else. -d

Output of 'ldd /usr/local/mysql-3.23.37/lib/mysql/libmysqlclient.so':

        libcrypt_i.so.1 =>       /usr/lib/libcrypt_i.so.1
        libgen.so.1 =>   /usr/lib/libgen.so.1
        libsocket.so.1 =>        /usr/lib/libsocket.so.1
        libnsl.so.1 =>   /usr/lib/libnsl.so.1
        libm.so.1 =>     /usr/lib/libm.so.1
        libc.so.1 =>     /usr/lib/libc.so.1
        libdl.so.1 =>    /usr/lib/libdl.so.1
        libmp.so.2 =>    /usr/lib/libmp.so.2
        /usr/platform/SUNW,Ultra-60/lib/libc_psr.so.1

I verified that all these libraries are present.

config.log info:

Run 1:
 ./configure --with-mysql=/usr/local/mysql-3.23.37 --with -apache=../apache_1.3.
19 --enable-track-vars --with-imap=../imap-2001.BETA.SNAP-0104241750 --enable-sy
svsem --enable-sysvshm

Prodiced this in config.log 
configure:49857: checking whether to include zlib support
No other messages related to zlib.

Run 2:
 ./configure --with-mysql=/usr/local/mysql-3.23.37 --with -apache=../apache_1.3.
19 --enable-track-vars --with-imap=../imap-2001.BETA.SNAP-0104241750 --enable-sy
svsem --enable-sysvshm --with-zlib=/usr/local/zlib-1.1.3

aborts with:
configure: error: Zlib module requires zlib >= 1.0.9.

and this in config.log:

configure:49857: checking whether to include zlib support
configure:50058: checking for gzgets in -lz
configure:50077: gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS -DSUPPORT_UT
F8 -DXML_BYTE_ORDER=21 -L/usr/local/zlib-1.1.3/lib  -R/usr/ucblib -L/usr/ucblib 
-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -L/usr/local/lib/gcc-lib/sp
arc-sun-solaris2.8/2.95.2 -R/usr/local/src/www/imap-2001.BETA.SNAP-0104241750/c-
client -L/usr/local/src/www/imap-2001.BETA.SNAP-0104241750/c-client -R/usr/local
/mysql-3.23.37/lib/mysql -L/usr/local/mysql-3.23.37/lib/mysql conftest.c -lz  -l
mysqlclient -lcrypt -lresolv -lresolv -lm -ldl -lnsl -lsocket  -lsocket -lgcc 1>
&5
Undefined                       first referenced
 symbol                             in file
 uncompress                          /usr/local/mysql-3.23.37/lib/mysql/libmysql
c
 lient.so
 compress                            /usr/local/mysql-3.23.37/lib/mysql/libmysql
c
 lient.so
 ld: fatal: Symbol referencing errors. No output written to conftest
 collect2: ld returned 1 exit status
 configure: failed program was:
 #line 50066 "configure"

Tried editing configure, change line # 14725 to:
 14725  LIBS="$LIBS -lz"
Get same result as Run #2 above.



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

[2001-04-29 22:23:04] [EMAIL PROTECTED]
What does 
'ldd /usr/local/mysql-3.23.37/lib/mysql/libmysqlclient.so'
output?

What is in config.log about zlib??

--Jani


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

[2001-04-28 13:33:01] [EMAIL PROTECTED]
Solaris 8 / gcc.  Unresolved symbol errors during php
configure.  I have seen lots of information about this,
but none of the fixes I've encountered have worked.  I have:

- tried adding -lz to LTLIBRARY_LDFLAGS in Makefile
- tried adding --with-zlib-dir=/usr/local/zlib-1.1.3
- tried adding --with-zlib, or --with-zlib=/usr/local/zlib-1.1.3
- changed LIBS="-$LIBS -lz" in configure
- tried installing zlib to system location (--prefix=/usr)
- obtained latest CVS tree and built, with same results.

Output of debug.log follows.  Thank you -David

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

CONFIGURE:   './configure' '--with-mysql=/usr/local/mysql-3.23.37' 
'--with-apache=../apache_1.3.19' '--enable-tr
ack-vars' '--with-imap=../imap-2001.BETA.SNAP-0104241750' '--enable-sysvsem' 
'--enable-sysvshm' '--with-config-f
ile-path=/etc/apache' '--with-zlib'
CC:         gcc
CFLAGS:     -g -O2
CPPFLAGS:    -D_POSIX_PTHREAD_SEMANTICS
CXX:        
CXXFLAGS:   
INCLUDES:    -I/usr/local/src/www/apache_1.3.19/src/include 
-I/usr/local/src/www/apache_1.3.19/src/os/unix  -I$(
top_builddir)/Zend -I/usr/local/src/www/imap-2001.BETA.SNAP-0104241750/c-client 
-I/usr/local/mysql-3.23.37/inclu
de/mysql
LDFLAGS:     -R/usr/ucblib -L/usr/ucblib 
-R/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 -L/usr/local/lib/g
cc-lib/sparc-sun-solaris2.8/2.95.2 
-R/usr/local/src/www/imap-2001.BETA.SNAP-0104241750/c-client -L/usr/local/src
/www/imap-2001.BETA.SNAP-0104241750/c-client -R/usr/local/mysql-3.23.37/lib/mysql 
-L/usr/local/mysql-3.23.37/lib
/mysql
LIBS:       -lmysqlclient -lresolv -lresolv -lm -ldl -lcrypt -lnsl -lsocket  -lsocket 
-lgcc
DLIBS:      -lc-client 
SAPI:       apache
PHP_RPATHS:  /usr/ucblib /usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 
/usr/local/src/www/imap-2001.BETA.SN
AP-0104241750/c-client /usr/local/mysql-3.23.37/lib/mysql
uname -a:   SunOS monarch.prairienet.org 5.8 Generic_108528-03 sun4u sparc 
SUNW,Ultra-60

gcc -o conftest -g -O2  -D_POSIX_PTHREAD_SEMANTICS  -R/usr/ucblib -L/usr/ucblib 
-R/usr/local/lib/gcc-lib/sparc-s
un-solaris2.8/2.95.2 -L/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2 
-R/usr/local/src/www/imap-2001.BETA.SN
AP-0104241750/c-client -L/usr/local/src/www/imap-2001.BETA.SNAP-0104241750/c-client 
-R/usr/local/mysql-3.23.37/l
ib/mysql -L/usr/local/mysql-3.23.37/lib/mysql conftest.c -lmysqlclient -lresolv 
-lresolv -lm -ldl -lcrypt -lnsl 
-lsocket  -lsocket -lgcc 1>&5
Undefined                       first referenced
 symbol                             in file
uncompress                          
/usr/local/mysql-3.23.37/lib/mysql/libmysqlclient.so
compress                            
/usr/local/mysql-3.23.37/lib/mysql/libmysqlclient.so
ld: fatal: Symbol referencing errors. No output written to conftest
collect2: ld returned 1 exit status

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

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=10539&edit=2


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to