httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <>
Subject Re: apxs problem
Date Thu, 19 Nov 1998 16:31:15 GMT

In article <> you wrote:
>> Ok, I've tried to add this functionality to
>> The patch is appended. Please try it out and give me your opinion.

> I applied your patch.  Slight problem:

> /usr/local/apache/sbin/apxs -c -o
> -Wl,-rpath,/usr/local/lib/mysql -L/usr/local/lib/mysql -lmysqlclient
> -L/usr/local/ldap/lib -lldap -llber mod_php3.c libmodphp3-so.a
> regex/libregex.a -lgdbm -Wl,-rpath,/usr/local/lib/mysql
> -L/usr/local/lib/mysql -lmysqlclient -L/usr/local/ldap/lib -lldap
> -llber -lttf -lgd -lm -ldl -lcrypt -lnsl  -lresolv

> -I/usr/local/apache/include  -c mod_php3.c

> ld -Bshareable -o mod_php3.o libmodphp3-so.a regex/libregex.a
> -lgdbm -Wl,-rpath,/usr/local/lib/mysql -L/usr/local/lib/mysql
> -lmysqlclient -L/usr/local/ldap/lib -lldap -llber -lttf -lgd -lm -ldl
> -lcrypt -lnsl -lresolv -rpath,/usr/local/lib/mysql -L/usr/local/lib/mysql
> -L/usr/local/ldap/lib -lmysqlclient -lldap -llber 

> ld: unrecognized option `-Wl,-rpath,/usr/local/lib/mysql'
> apxs:Break: Command failed with rc=65536
> make: *** [] Error 1

> The "-Wl,-rpath," is not being turned into the "-rpath" option that ld
> needs.

Because you call apxs incorrectly, I think. Your mod_php3.c (the file apxs
should work on) is in the middle of your argument line. apxs only processes
options which occur before the first non-option argument (c compilers option
parsing is here non-standard, all other tools do it the way apxs does it)
As apxs says, the syntax is:

apxs -c [-o <dsofile>] [-D <name>[=<value>]] [-I <incdir>]
     [-L <libdir>] [-l <libname>] [-Wc,<flags>]
     <files> ...

Your mod_php3.c is the "<files> .." argument. OTOH your options at the end are
redundant, Rasmus. They already occur in front of mod_php3.c. So please
correct the apxs-call. Then it should work as expected.

                                       Ralf S. Engelschall

View raw message