Bug #51260 [NEW]: Compile PHP with compiled openssl - relocation R_X86_64_32
| From: | vejpuste at oikt dot czu dot cz | Date: | Wed, 10 Mar 2010 12:30:36 +0000 |
| Subject: | Bug #51260 [NEW]: Compile PHP with compiled openssl - relocation R_X86_64_32 | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-148470@lists.php.net to get a copy of this message | ||
From:
Operating system: CentOS release 5.4 x86_64
PHP version: 5.2.13
Package: Compile Failure
Bug Type: Bug
Bug description:Compile PHP with compiled openssl - relocation R_X86_64_32
Description:
------------
I have compiled openssl (./config -Bsymbolic)
PHP compiled --with-openssl=/usr/local/ssl
PHP 5.2.12 make OK
PHP 5.2.13 make :
... -o libphp5.la
/usr/bin/ld: /usr/local/ssl/lib64/libssl.a(s2_srvr.o): relocation
R_X86_64_32 against `a local symbol' can not be used when making a shared
object; recompile with -fPIC
/usr/local/ssl/lib64/libssl.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make: *** [libphp5.la] Error 1
I compare Makefile 5.2.12 and 5.2.13. Different is :
#5.2.13
EXTRA_LDFLAGS = -avoid-version -module -L/usr/local/ssl/lib64
-L/usr/lib/oracle/11.2/client64/lib -L/usr/local/lib64
#5.2.12
EXTRA_LDFLAGS = -avoid-version -module -L/usr/lib64
-Wl,-rpath,/usr/local/ssl/lib64 -L/usr/local/ssl/lib64 -Wl,-rpath,/usr/lib
/oracle/11.2/client64/lib -L/usr/lib/oracle/11.2/client64/lib
-Wl,-rpath,/usr/local/lib64 -L/usr/local/lib64 -L/usr/local/ssl/
lib64 -L/usr/lib/oracle/11.2/client64/lib -L/usr/local/lib64
I modify Makefile to EXTRA_LDFLAGS from 5.2.12 - make OK.
--
Edit bug report at http://bugs.php.net/bug.php?id=51260&edit=1
--
Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51260&r=trysnapshot52
Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51260&r=trysnapshot53
Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51260&r=trysnapshot60
Fixed in SVN: http://bugs.php.net/fix.php?id=51260&r=fixed
Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51260&r=needdocs
Fixed in release: http://bugs.php.net/fix.php?id=51260&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=51260&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=51260&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=51260&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=51260&r=support
Expected behavior: http://bugs.php.net/fix.php?id=51260&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=51260&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=51260&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=51260&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51260&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=51260&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=51260&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=51260&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=51260&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=51260&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=51260&r=mysqlcfg