You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apache-bugdb@apache.org by Anthony Howe <ac...@snert.com> on 1999/09/28 14:20:21 UTC
general/5072: gcc: unrecognized option `-rpath'
>Number: 5072
>Category: general
>Synopsis: gcc: unrecognized option `-rpath'
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: apache
>State: open
>Class: sw-bug
>Submitter-Id: apache
>Arrival-Date: Tue Sep 28 05:30:01 PDT 1999
>Last-Modified:
>Originator: achowe@snert.com
>Organization:
apache
>Release: 1.3.9
>Environment:
Redhat 5.2, kernel 2.0.35
gcc version 2.7.2.3
PostgreSQL 6.5.2
PHP 3.0.12
>Description:
When compiling Apache 1.3.9, I get
gcc: unrecognized option `-rpath'
when compiling any of the modules (standard, proxy, php3). It appears that the
LDFLAGS_SHLIB macro incorrectly specifies : -rpath /usr/local/pgsql/lib
Removing this the macro in each makefile appears to solve the problem.
Here is my Apache config :
./configure \
--sysconfdir=/usr/local/apache/conf \
--datadir=/usr/local/apache \
--sbindir=/usr/local/apache/sbin \
--localstatedir=/var \
--logfiledir=/var/log/httpd \
--activate-module=src/modules/php3/libphp3.a --enable-shared=php3 \
--enable-module=proxy \
--enable-module=rewrite \
--enable-module=status \
--enable-module=info \
--enable-shared=max \
$1
Heres my PHP config :
./configure \
--with-shared-apache=../apache_1.3.9 \
--with-pgsql=/usr/local/pgsql \
--with-gdbm \
--with-ndbm \
--with-zlib=/usr/local \
--enable-debug=no \
--enable-track-vars=yes \
--enable-bcmath=yes
My PostgreSQL config is :
./configure --without-CXX
>How-To-Repeat:
Build PHP with PostgreSQL and then Apache.
>Fix:
A quick workaround is to modify the Makefiles in question by hand :
Change :
LDFLAGS_SHLIB= -rpath /usr/local/pgsql/lib -shared
to :
LDFLAGS_SHLIB= -shared
Then recompile. However, this eventually has to be fixed in the
configure script.
>Audit-Trail:
>Unformatted:
[In order for any reply to be added to the PR database, you need]
[to include <ap...@Apache.Org> in the Cc line and make sure the]
[subject line starts with the report component and number, with ]
[or without any 'Re:' prefixes (such as "general/1098:" or ]
["Re: general/1098:"). If the subject doesn't match this ]
[pattern, your message will be misfiled and ignored. The ]
["apbugs" address is not added to the Cc line of messages from ]
[the database automatically because of the potential for mail ]
[loops. If you do not include this Cc, your reply may be ig- ]
[nored unless you are responding to an explicit request from a ]
[developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]