Re: Error getting PHP to compile with apxs with current CVS
| From: | Rasmus Lerdorf | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: Error getting PHP to compile with apxs with current CVS | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-2475@lists.php.net to get a copy of this message | ||
> usr/local/site/apache/sbin/apxs -c -o libphp3.so -Wl,-rpath,/usr/local/site/mysql/lib/mysql
> -L/usr/local/site/mysql/lib/mysql -lmysqlclient -L/usr/local/site/ldap/lib -lldap -llber
> mod_php3.c libmodphp3-so.a regex/libregex.a -lgdbm
> -Wl,-rpath,/usr/local/site/mysql/lib/mysql -L/usr/local/site/mysql/lib/mysql -lmysqlclient
> -L/usr/local/site/ldap/lib -lldap -llber -lexpat -lm -ldl -lcrypt -lnsl -lresolv
> apxs:Error: Unknown option: W
> Usage: apxs -g -n <modname>
> apxs -q <query> ...
> apxs -c [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>]
> [-L <libdir>] [-l <libname>] <files> ...
> apxs -i [-a] [-n <modname>] <dsofile> ...
> make: *** [libphp3.so] Error 1
The problem is actually that apxs does not accept the -Wl,-rpath link
flags. You can edit the PHP Makefile and remove that part of the
APXS_LDFLAGS line. I have brought this up with the Apache folks.
-Rasmus
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net