php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #3734 configure thinks -rpath is a legal option for gcc
Submitted: 2000-03-05 13:03 UTC Modified: 2000-04-01 23:44 UTC
From: bigmike at fool dot com Assigned:
Status: Closed Package: Installation problem
PHP Version: 3.0.15 OS: Redhat 6.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: bigmike at fool dot com
New email:
PHP Version: OS:

 

 [2000-03-05 13:03 UTC] bigmike at fool dot com
gcc version egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)

added "exit" to configure script on line 1494. Output stopped with...
checking if compiler supports -Wl,-rpath,... yes

line 1472 of the script is
if { (eval echo configure:1473: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then

I don't understand what's going on with that, but I think we're getting the wrong answer here.

I tried...

$gcc -rpath /usr/lib hello.c 
gcc: unrecognized option `-rpath'
/usr/lib: file not recognized: Is a directory

This problem manifested itself when I tried to configure --with-pgsql. I got the 'unrecognized option' error on the very last line of compilation. 

gcc -shared -o libphp3.so ./mod_php3.o libmodphp3-so.a -L/usr/local/lib -lgd -L/usr/local/pgsql/lib -lpq -lexpat -L/usr/local/easysoft/oob/client/lib -lesoobclient -lgdbm pcrelib/libpcre.a -lpam -lm -ldl -lcrypt -lresolv -Lpcrelib -lpcre -rpath /usr/local/pgsql/lib
gcc: unrecognized option `-rpath'
/usr/local/pgsql/lib: file not recognized: Is a directory
collect2: ld returned 1 exit status
apxs:Break: Command failed with rc=65536
make: *** [libphp3.so] Error 1

By replacing the "-rpath "/usr/local/pgsql/lib with -L/usr/local/pgsql/lib successful compilation occured.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-01 23:44 UTC] sas at cvs dot php dot net
Looks like you need to upgrade Apache.

Note that we do not check for -rpath, but for -Wl,-rpath. Refer to the gcc documentation on what -Wl means.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Fri Jul 04 11:01:37 2025 UTC