php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17206 fails to build with --enable-dio
Submitted: 2002-05-14 08:12 UTC Modified: 2002-05-15 14:05 UTC
From: cyic@php.net Assigned:
Status: Closed Package: Compile Failure
PHP Version: 4.2.1 OS: FreeBSD 4.4-STABLE
Private report: No CVE-ID: None
 [2002-05-14 08:12 UTC] cyic@php.net
roman@roman install/php/php-4.2.1 > cat config.nice                       126:1 #! /bin/sh                                                                      #                                                                               # Created by configure

'./configure' \
'--enable-cli' \
'--without-mysql' \
'--disable-session' \
'--with-zlib' \
'--with-bz2' \
'--enable-dio' \
'--with-iconv' \
'--with-ncurses' \
'--with-readline' \
'--disable-session' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--disable-xml' \
"$@"

Making all in dio
gcc -I. -I/home/roman/install/php/php-4.2.1/ext/dio -I/home/roman/install/php/php-4.2.1/main -I/home/roman/install/php/php-4.2.1 -I/home/roman/install/php/php-4.2.1/Zend -I/usr/local/include  -I/home/roman/install/php/php-4.2.1/TSRM -g -O2  -c dio.c && touch dio.lo
dio.c: In function `zm_startup_dio':
dio.c:90: `O_SYNC' undeclared (first use in this function)
dio.c:90: (Each undeclared identifier is reported only once
dio.c:90: for each function it appears in.)
*** Error code 1

Stop in /home/roman/install/php/php-4.2.1/ext/dio.
*** Error code 1

Stop in /home/roman/install/php/php-4.2.1/ext/dio.
*** Error code 1

Stop in /home/roman/install/php/php-4.2.1/ext.
*** Error code 1

Stop in /home/roman/install/php/php-4.2.1.


Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-15 14:05 UTC] sterling@php.net
This bug has been fixed in CVS. You can grab a snapshot of the
CVS version at http://snaps.php.net/. In case this was a documentation 
problem, the fix will show up soon at http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites.
Thank you for the report, and for helping us make PHP better.


 [2002-09-19 20:25 UTC] hz11 at nyu dot edu
Although this was reportedly fixed in the CVS, a compile of 4.2.3 on FreeBSD 4.6.2 still gives the same problem AFAIK.  Details follow:

#! /bin/sh
#
# Created by configure

'./configure' \
'--prefix=/usr/local/psh' \
'--enable-cli' \
'--enable-dio' \
'--without-pear' \
'--with-openssl=/usr/local/ssl' \
'--with-zlib' \
'--with-bcmath' \
'--with-bz2' \
'--enable-ftp' \
'--with-readline' \
'--with-mysql=/usr/local/mysql' \
'--with-ncurses' \
'--enable-pcntl' \
'--enable-shmop' \
'--enable-sockets' \
'--enable-sysvsem' \
'--enable-sysvshm' \
'--with-expat-dir=/usr/local' \
'--enable-inline-optimization' \
"$@"

Making all in dio
gcc -I. -I/root/INSTALLED/php-4.2.3/ext/dio
-I/root/INSTALLED/php-4.2.3/main -I/root/INSTALLED/php-4.2.3
-I/root/INSTALLED/php-4.2.3/Zend -I/usr/local/ssl/include
-I/usr/local/mysql/include/mysql -I/usr/local/include
-I/root/INSTALLED/php-4.2.3/TSRM -g -O2  -c dio.c && touch dio.lo
dio.c: In function `zm_startup_dio':
dio.c:90: `O_SYNC' undeclared (first use in this function)
dio.c:90: (Each undeclared identifier is reported only once
dio.c:90: for each function it appears in.)
*** Error code 1

Stop in /root/INSTALLED/php-4.2.3/ext/dio.
*** Error code 1

Stop in /root/INSTALLED/php-4.2.3/ext/dio.
*** Error code 1

Stop in /root/INSTALLED/php-4.2.3/ext.
*** Error code 1


Hans
 [2002-09-19 20:35 UTC] alan at akbkhome dot com
have a look at the cvs version - there is an #ifdef  #endif around the O_SYNC
 - just add that in, and it should work ok.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Sep 10 06:01:28 2024 UTC