php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #57546 Compile fails - Mac OS X
Submitted: 2007-02-24 23:33 UTC Modified: 2007-02-25 06:40 UTC
From: alain dot russell at blackpepper dot co dot nz Assigned:
Status: Closed Package: APC (PECL)
PHP Version: 5.2.1 OS: Mac OS X 10.3.9
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: alain dot russell at blackpepper dot co dot nz
New email:
PHP Version: OS:

 

 [2007-02-24 23:33 UTC] alain dot russell at blackpepper dot co dot nz
Description:
------------
Compile fails.

pingu:~/Desktop/APC-3.0.13 admin$ /usr/local/php5/bin/phpize
Configuring for:
PHP Api Version:         20041225
Zend Module Api No:      20060613
Zend Extension Api No:   220060519

pingu:~/Desktop/APC-3.0.13 admin$ ./configure --enable-apc-
mmap --with-apxs=/usr/local/apache2/bin/apxs --with-php-
config=/usr/local/php5/bin/php-config
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/
bin/sed
expr: syntax error
./configure: line 1574: test: =: unary operator expected
expr: syntax error
./configure: line 1580: test: =: unary operator expected
expr: syntax error
./configure: line 1587: test: =: unary operator expected
expr: syntax error
./configure: line 1580: test: =: unary operator expected
expr: syntax error
./configure: line 1587: test: =: unary operator expected
expr: syntax error
./configure: line 1580: test: =: unary operator expected
expr: syntax error
./configure: line 1587: test: =: unary operator expected
checking for gcc... gcc
checking for C compiler default output... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables... 
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking whether gcc and cc understand -c and -o together... 
yes
checking if compiler supports -R... no
checking if compiler supports -Wl,-rpath,... no
checking build system type... powerpc-apple-darwin7.9.0
checking host system type... powerpc-apple-darwin7.9.0
checking target system type... powerpc-apple-darwin7.9.0
checking for PHP prefix... /usr/local/php5
checking for PHP includes... -I/usr/local/php5/include/php -
I/usr/local/php5/include/php/main -I/usr/local/php5/include/
php/TSRM -I/usr/local/php5/include/php/Zend -I/usr/local/
php5/include/php/ext -I/usr/local/php5/include/php/ext/date/
lib
checking for PHP extension directory... /usr/local/php5/lib/
php/extensions/no-debug-non-zts-20060613
checking for PHP installed headers prefix... /usr/local/
php5/include/php
checking for re2c... no
configure: WARNING: You will need re2c 0.9.11 or later if 
you want to regenerate PHP parsers.
checking for gawk... gawk
checking whether apc needs to get compiler flags from 
apxs... yes
checking whether to enable APC support... yes, shared
checking Checking whether we should use mmap... yes
checking Checking whether we should use semaphore locking 
instead of fcntl... no
checking Checking whether we should use futex locking... no
checking Checking whether we should use pthread mutex 
locking... no
checking Checking whether we should use spin locks... no
checking for union semun... yes
checking for shm_open in -lrt... no
checking for ld used by gcc... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking for /usr/bin/ld option to reload object files... -r
checking for BSD-compatible nm... /usr/bin/nm -p
checking whether ln -s works... yes
checking how to recognise dependent libraries... pass_all
checking dlfcn.h usability... yes
checking dlfcn.h presence... no
configure: WARNING: dlfcn.h: accepted by the compiler, 
rejected by the preprocessor!
configure: WARNING: dlfcn.h: proceeding with the 
preprocessor's result
configure: WARNING:     ## 
------------------------------------ ##
configure: WARNING:     ## Report this to bug-
autoconf@gnu.org. ##
configure: WARNING:     ## 
-----------------------
------------- ##
checking for dlfcn.h... no
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking how to run the C++ preprocessor... g++ -E
checking the maximum length of command line arguments... 
196608
checking command to parse /usr/bin/nm -p output from gcc 
object... ok
checking for objdir... .libs
checking for ar... ar
checking for ranlib... ranlib
checking for strip... strip
checking if gcc static flag  works... yes
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fno-common
checking if gcc PIC flag -fno-common works... yes
checking if gcc supports -c -o file.o... yes
checking whether the gcc linker (/usr/bin/ld) supports 
shared libraries... yes
checking dynamic linker characteristics... darwin7.9.0 dyld
checking how to hardcode library paths into programs... 
immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no

creating libtool
appending configuration tag "CXX" to libtool
checking for ld used by g++... /usr/bin/ld
checking if the linker (/usr/bin/ld) is GNU ld... no
checking whether the g++ linker (/usr/bin/ld) supports 
shared libraries... yes
checking for g++ option to produce PIC... -fno-common
checking if g++ PIC flag -fno-common works... yes
checking if g++ supports -c -o file.o... yes
checking whether the g++ linker (/usr/bin/ld) supports 
shared libraries... yes
checking dynamic linker characteristics... darwin7.9.0 dyld
checking how to hardcode library paths into programs... 
immediate
checking whether stripping libraries is possible... yes
configure: creating ./config.status
config.status: creating config.h

Expected result:
----------------
No error

Actual result:
--------------
In file included from /usr/include/sys/select.h:71,
                 from /Users/admin/Desktop/APC-3.0.13/
pgsql_s_lock.c:46:
/usr/include/sys/event.h:66: error: parse error before 
"uintptr_t"
/usr/include/sys/event.h:68: error: parse error before "flags"
/usr/include/sys/event.h:69: error: parse error before 
"fflags"
/usr/include/sys/event.h:70: error: parse error before "data"
/usr/include/sys/event.h:72: error: parse error before '}' 
token
In file included from /Users/admin/Desktop/APC-3.0.13/
pgsql_s_lock.c:46:
/usr/include/sys/select.h:88: error: parse error before 
"u_int"
make: *** [pgsql_s_lock.lo] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2007-02-25 00:36 UTC] shire@php.net
Can you please try the latest CVS version and let us know if you have a succesful compilation?
 [2007-02-25 02:53 UTC] alain dot russell at blackpepper dot co dot nz
Thanks, CVS compiles ok.
 [2007-02-25 03:29 UTC] rasmus@php.net
Fixed in CVS
 [2007-02-25 05:15 UTC] alain dot russell at blackpepper dot co dot nz
would CVS be ok to run in a production environment? Are there many changes since last stable release ?
 [2007-02-25 06:40 UTC] rasmus@php.net
At this point this is the only change.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 15 16:01:30 2024 UTC