Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 8114 invoked by uid 6000); 19 Nov 1998 17:15:07 -0000 Received: (qmail 8033 invoked from network); 19 Nov 1998 17:14:24 -0000 Received: from slarti.muc.de (193.174.4.10) by taz.hyperreal.org with SMTP; 19 Nov 1998 17:14:24 -0000 Received: (qmail 8238 invoked by uid 66); 19 Nov 1998 17:05:33 -0000 Received: by en1.engelschall.com (Sendmail 8.9.1) for new-httpd@apache.org id SAA11356; Thu, 19 Nov 1998 18:08:04 +0100 (CET) Message-ID: <19981119180804.A11343@engelschall.com> Date: Thu, 19 Nov 1998 18:08:04 +0100 From: "Ralf S. Engelschall" To: new-httpd@apache.org Subject: Re: apxs problem Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i Organization: Engelschall, Germany. X-Web-Homepage: http://www.engelschall.com/ X-PGP-Public-Key: https://www.engelschall.com/ho/rse/pgprse.asc X-PGP-Fingerprint: 00 C9 21 8E D1 AB 70 37 DD 67 A2 3A 0A 6F 8D A5 Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org In article 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 ] [-D [=]] [-I ] >> [-L ] [-l ] [-Wc,] >> [-Wl,] >> ... >> >> Your mod_php3.c is the " .." 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