#35468 [Asn]: PHP install failed because make command can't compile fdatasync library
| From: | tony2001@php.net | Date: | Tue, 29 Nov 2005 09:01:00 +0000 |
| Subject: | #35468 [Asn]: PHP install failed because make command can't compile fdatasync library | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-89363@lists.php.net to get a copy of this message | ||
ID: 35468
Updated by: tony2001@php.net
Reported By: kenji dot funasaki at sun dot com
Status: Assigned
Bug Type: PDO related
Operating System: Solaris 10 3/05 x86
PHP Version: 5.1.1
Assigned To: wez
New Comment:
On Solaris8 fdatasync is in libposix4, btw.
Previous Comments:
------------------------------------------------------------------------
[2005-11-29 09:28:42] sniper@php.net
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