ID: 35468 Updated by: [EMAIL PROTECTED] Reported By: kenji dot funasaki at sun dot com -Status: Assigned +Status: Bogus Bug Type: PDO related Operating System: Solaris 10 3/05 x86 PHP Version: 5.1.1 Assigned To: wez New Comment:
Please do not submit the same bug more than once. An existing bug report already describes this very problem. Even if you feel that your issue is somewhat different, the resolution is likely to be the same. Thank you for your interest in PHP. Dupe of bug #35377 Previous Comments: ------------------------------------------------------------------------ [2005-11-29 13:52:11] [EMAIL PROTECTED] Interesting; it builds fine for me on opensolaris. ------------------------------------------------------------------------ [2005-11-29 10:00:58] [EMAIL PROTECTED] On Solaris8 fdatasync is in libposix4, btw. ------------------------------------------------------------------------ [2005-11-29 09:28:42] [EMAIL PROTECTED] Assigned to the maintainer of PDO. (I haven't got solaris) ------------------------------------------------------------------------ [2005-11-29 08:49:51] kenji dot funasaki at sun dot com 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 this bug report at http://bugs.php.net/?id=35468&edit=1