Re: [PHP-DEV] php/embed and php-config

2002-10-19 Thread Sascha Schumann
Seems like php-config misses something.. :)
php4/pear/scripts/php-config.in should propably be using
PHP_LIBS and PHP_LDFLAGS. Now it uses EXTRA_LIBS only..
And for some reason PHP_LIBS is empty.

Sounds like a pure synchronization issue to me.

- Sascha


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP-DEV] php/embed and php-config

2002-10-18 Thread Wez Furlong
I've been playing with php/embed and stumbled on a slight problem with php-config - it 
doesn't include the paths for the libs:

% php-config --libs
-lrecode -lexpat -lsnmp -lpanel -lncurses -lmysqlclient -lming -lm
-lintl -lgd -lfreetype -lpng -lz -ljpeg -lexslt -lxsltbreakpoint
-lxml2 -lxslt -lz -lgdbm -lcurl -lbz2 -lz -lcrypt -lssl -lcrypto
-lresolv -lm -ldl -lnsl -lcrypt -lcurl -lssl -lcrypto -ldl -lz
-lxml2 -lz -lm

When I try and link I get:
/usr/i486-suse-linux/bin/ld: cannot find -lmysqlclient

% locate mysqlclient
/usr/lib/mysql/libmysqlclient.a
/usr/lib/mysql/libmysqlclient.la
/usr/lib/mysql/libmysqlclient.so
/usr/lib/mysql/libmysqlclient.so.10
/usr/lib/mysql/libmysqlclient.so.10.0.0
/usr/lib/mysql/libmysqlclient.so.6
/usr/lib/mysql/libmysqlclient.so.6.0.0


so php-config should convey this information somehow :/
Any volunteers?

--Wez.
(I'm going to hack my ld.so.conf now).

-- 
Wez Furlong
The Brain Room Ltd.


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] php/embed and php-config

2002-10-18 Thread Jani Taskinen

On Fri, 18 Oct 2002, Wez Furlong wrote:

I've been playing with php/embed and stumbled on a slight problem with
php-config - it doesn't include the paths for the libs:

% php-config --libs
-lrecode -lexpat -lsnmp -lpanel -lncurses -lmysqlclient -lming -lm
-lintl -lgd -lfreetype -lpng -lz -ljpeg -lexslt -lxsltbreakpoint
-lxml2 -lxslt -lz -lgdbm -lcurl -lbz2 -lz -lcrypt -lssl -lcrypto
-lresolv -lm -ldl -lnsl -lcrypt -lcurl -lssl -lcrypto -ldl -lz
-lxml2 -lz -lm

   Seems like php-config misses something.. :) 
   php4/pear/scripts/php-config.in should propably be using
   PHP_LIBS and PHP_LDFLAGS. Now it uses EXTRA_LIBS only..
   And for some reason PHP_LIBS is empty.
   
   Sascha, can you enlighten us? :)
   
   --Jani


-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP-DEV] php/embed and php-config

2002-10-18 Thread Wez Furlong
OK, so /usr/lib/mysql was already in ld.so.conf.
The only way I got this to build was:
LD_LIBRARY_PATH=/usr/lib/mysql make

wtf is going wrong here?
Could it be a libtool problem?

--Wez.

On 18/10/02, Wez Furlong [EMAIL PROTECTED] wrote:
 When I try and link I get:
 /usr/i486-suse-linux/bin/ld: cannot find -lmysqlclient
 
 % locate mysqlclient
 /usr/lib/mysql/libmysqlclient.a
 /usr/lib/mysql/libmysqlclient.la
 /usr/lib/mysql/libmysqlclient.so
 /usr/lib/mysql/libmysqlclient.so.10
 /usr/lib/mysql/libmysqlclient.so.10.0.0
 /usr/lib/mysql/libmysqlclient.so.6
 /usr/lib/mysql/libmysqlclient.so.6.0.0

 (I'm going to hack my ld.so.conf now).




-- 
PHP Development Mailing List http://www.php.net/
To unsubscribe, visit: http://www.php.net/unsub.php