#23758 [NEW]: Must link -lgcc_s rather than -lgcc

From: Date: Thu, 22 May 2003 17:04:55 +0000
Subject: #23758 [NEW]: Must link -lgcc_s rather than -lgcc
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-40201@lists.php.net to get a copy of this message
From: pbriggs at clinitech dot net Operating system: HPUX 11.00 PHP version: 4.3.2RC4 PHP Bug Type: Compile Failure Bug description: Must link -lgcc_s rather than -lgcc PHP-4.3.2RC4 on HP-UX 11.00 ./configure --prefix=/opt/php --with apxs2=/opt/apache/bin/apxs --with-mysql=/opt/mysql4 -enable libgcc --enable-sockets In order to avoid "unresolved symbol: __umoddi3" error when attempting to start Apache 2 with PHP as a module, I must use the configure option --enable-libgcc. Because -lgcc is not a shared library, PHP does not compile a shared object that Apache can use as a module. A static libphp4.a object is created in .libs directory. What I have done is rerun the linker step manually by copying and pasting the long linker command on my telnet terminal. I then substitute -lgcc with -lgcc_s and that make libtool happy which then creates the correct shared object libphp4.sl in .libs which Apache can then load as a module. -- Edit bug report at http://bugs.php.net/?id=23758&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=23758&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=23758&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=23758&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=23758&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=23758&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=23758&r=support Expected behavior: http://bugs.php.net/fix.php?id=23758&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=23758&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=23758&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=23758&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=23758&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=23758&r=dst IIS Stability: http://bugs.php.net/fix.php?id=23758&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=23758&r=gnused

« previous php.bugs (#40201) next »