#35468 [NEW]: PHP install failed because make command can't compile fdatasync library

From: Date: Tue, 29 Nov 2005 07:49:54 +0000
Subject: #35468 [NEW]: PHP install failed because make command can't compile fdatasync library
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-89352@lists.php.net to get a copy of this message
From: kenji dot funasaki at sun dot com Operating system: Solaris 10 3/05 x86 PHP version: 5.1.1 PHP Bug Type: Compile Failure Bug description: PHP install failed because make command can't compile fdatasync library Description: ------------ I installed Solaris 10 3/05 x86, and use Apache 2.0, MySQL, libxml2-2.26.22. After these, I tried to install PHP-5.1.1. However, I can't install PHP-5.1.1. # gunzip /usr/local/php/php-5.1.1.tar.gz # tar xvf /usr/local/php/php-5.1.1.tar # cd php-5.1.1 # which make /usr/ccs/bin/make # ./configure --with-mysql=/usr/sfw --with-apxs2=/usr/apache2/bin/apxs --prefix=/usr/local/php/php-5.1.1 --with-libxml-dir=/usr/local/lib/libxml2-2.6.22 --enable-so # make Undefined first referenced symbol in file fdatasync ext/pdo_sqlite/sqlite/src/.libs/os_unix.o (symbol belongs to implicit dependency /usr/lib/librt.so.1) ld: fatal: Symbol referencing errors. No output written to sapi/cli/php collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `sapi/cli/php' make command failed. I watched man of fdatasync, it is necessary to add "-lrt" CC option. So I add the option to Makefile, after that Build Complete. Reproduce code: --------------- I watched man of fdatasync, it is necessary to add "-lrt" CC option. So I add the option to Makefile, after that Build Complete. In Makefile, CC = gcc -> CC = gcc -lrt Actual result: -------------- make command and make install command are completed. -- Edit bug report at http://bugs.php.net/?id=35468&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=35468&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=35468&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=35468&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=35468&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=35468&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=35468&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=35468&r=needscript Try newer version: http://bugs.php.net/fix.php?id=35468&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=35468&r=support Expected behavior: http://bugs.php.net/fix.php?id=35468&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=35468&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=35468&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=35468&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=35468&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=35468&r=dst IIS Stability: http://bugs.php.net/fix.php?id=35468&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=35468&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=35468&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=35468&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=35468&r=mysqlcfg

« previous php.bugs (#89352) next »