httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ralf S. Engelschall" <...@engelschall.com>
Subject Re: apxs problem
Date Thu, 19 Nov 1998 17:08:04 GMT

In article <Pine.WNT.4.05.9811191145030.-373565@helium.jetpen.com> you wrote:
>> 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>]
>>      [-Wl,<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.

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

> gcc -DLINUX=2 -DUSE_HSREGEX -fpic -DSHARED_MODULE
> -I/usr/local/apache/include  -c mod_php3.c
> ld -Bshareable -o libphp3.so mod_php3.o libmodphp3-so.a
> -rpath,/usr/local/lib/mysql -L/usr/local/lib/mysql -L/usr/local/ldap/lib
> -lmysqlclient -lldap -llber -lgdbm -lttf -lgd -lm -ldl -lcrypt -lnsl
> -lresolv 
>
> That should have been -rpath not -path
> ld: unrecognized option `-path,/usr/local/lib/mysql'
> apxs:Break: Command failed with rc=65536

You present really interesting things, Rasmus.  Look above in the generated ld
line. There _IS_ -rpath,xxx. I don't know why your linker hates it. But apxs
does it correct, as I see it.
                                       Ralf S. Engelschall
                                       rse@engelschall.com
                                       www.engelschall.com

Mime
View raw message