php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58456 build error
Submitted: 2008-12-12 05:54 UTC Modified: 2009-04-05 23:28 UTC
From: ok dot pecl-php-net dot 12 dot zero at spamgourmet dot com Assigned:
Status: No Feedback Package: APC (PECL)
PHP Version: 5.2.5 OS: Mac OS X 10.5.5
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
33 - 20 = ?
Subscribe to this entry?

 
 [2008-12-12 05:54 UTC] ok dot pecl-php-net dot 12 dot zero at spamgourmet dot com
Description:
------------
see below

Actual result:
--------------
running: make
/bin/sh /private/var/tmp/pear-build-root/APC-3.1.1/libtool --mode=compile gcc  -I. -I/private/tmp/pear/temp/APC -DPHP_ATOM_INC -I/private/var/tmp/pear-build-root/APC-3.1.1/include -I/private/var/tmp/pear-build-root/APC-3.1.1/main -I/private/tmp/pear/temp/APC -I/sw/include/php5 -I/sw/include/php5/main -I/sw/include/php5/TSRM -I/sw/include/php5/Zend -I/sw/include/php5/ext -I/sw/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/APC/apc.c -o apc.lo
mkdir .libs
 gcc -I. -I/private/tmp/pear/temp/APC -DPHP_ATOM_INC -I/private/var/tmp/pear-build-root/APC-3.1.1/include -I/private/var/tmp/pear-build-root/APC-3.1.1/main -I/private/tmp/pear/temp/APC -I/sw/include/php5 -I/sw/include/php5/main -I/sw/include/php5/TSRM -I/sw/include/php5/Zend -I/sw/include/php5/ext -I/sw/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/APC/apc.c  -fno-common -DPIC -o .libs/apc.o
In file included from /private/tmp/pear/temp/APC/apc.c:38:
/sw/include/php5/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
In file included from /private/tmp/pear/temp/APC/apc.c:38:
/sw/include/php5/ext/pcre/php_pcre.h:45: error: syntax error before '*' token
/sw/include/php5/ext/pcre/php_pcre.h:45: error: syntax error before 'pcre_extra'
/sw/include/php5/ext/pcre/php_pcre.h:45: warning: data definition has no type or storage class
/sw/include/php5/ext/pcre/php_pcre.h:46: error: syntax error before '*' token
/sw/include/php5/ext/pcre/php_pcre.h:46: error: syntax error before 'pcre_extra'
/sw/include/php5/ext/pcre/php_pcre.h:46: warning: data definition has no type or storage class
/sw/include/php5/ext/pcre/php_pcre.h:52: error: syntax error before 'pcre'
/sw/include/php5/ext/pcre/php_pcre.h:52: warning: no semicolon at end of struct or union
/sw/include/php5/ext/pcre/php_pcre.h:53: warning: data definition has no type or storage class
/sw/include/php5/ext/pcre/php_pcre.h:61: error: syntax error before '}' token
/sw/include/php5/ext/pcre/php_pcre.h:61: warning: data definition has no type or storage class
/sw/include/php5/ext/pcre/php_pcre.h:63: error: syntax error before '*' token
/sw/include/php5/ext/pcre/php_pcre.h:63: warning: data definition has no type or storage class
/sw/include/php5/ext/pcre/php_pcre.h:65: error: syntax error before '*' token
/sw/include/php5/ext/pcre/php_pcre.h:68: error: syntax error before '*' token
/sw/include/php5/ext/pcre/php_pcre.h:71: error: syntax error before '*' token
/sw/include/php5/ext/pcre/php_pcre.h:74: error: syntax error before '*' token
/private/tmp/pear/temp/APC/apc.c:362: error: syntax error before 'pcre'
/private/tmp/pear/temp/APC/apc.c:362: warning: no semicolon at end of struct or union
/private/tmp/pear/temp/APC/apc.c:363: warning: data definition has no type or storage class
/private/tmp/pear/temp/APC/apc.c:364: error: syntax error before '}' token
/private/tmp/pear/temp/APC/apc.c:364: warning: data definition has no type or storage class
/private/tmp/pear/temp/APC/apc.c: In function 'apc_regex_compile_array':
/private/tmp/pear/temp/APC/apc.c:389: error: 'regs' undeclared (first use in this function)
/private/tmp/pear/temp/APC/apc.c:389: error: (Each undeclared identifier is reported only once
/private/tmp/pear/temp/APC/apc.c:389: error: for each function it appears in.)
/private/tmp/pear/temp/APC/apc.c:398: error: syntax error before ')' token
/private/tmp/pear/temp/APC/apc.c: In function 'apc_regex_destroy_array':
/private/tmp/pear/temp/APC/apc.c:431: error: 'regs' undeclared (first use in this function)
/private/tmp/pear/temp/APC/apc.c:431: error: syntax error before ')' token
/private/tmp/pear/temp/APC/apc.c: In function 'apc_regex_match_array':
/private/tmp/pear/temp/APC/apc.c:445: error: 'regs' undeclared (first use in this function)
/private/tmp/pear/temp/APC/apc.c:450: error: syntax error before ')' token
make: *** [apc.lo] Error 1
ERROR: `make' failed

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2008-12-12 11:56 UTC] philip at roshambo dot org
Please try APC-3.1.2
 [2008-12-12 14:41 UTC] ok dot pecl-php-net dot 12 dot zero at spamgourmet dot com
Starting to download APC-3.1.2.tgz (123,459 bytes)
.........................done: 123,459 bytes
45 source files, building

[snip]

configure: WARNING: unrecognized options: --enable-spinlocks
running: make
/bin/sh /private/var/tmp/pear-build-root/APC-3.1.2/libtool --mode=compile gcc  -I. -I/private/tmp/pear/temp/APC -DPHP_ATOM_INC -I/private/var/tmp/pear-build-root/APC-3.1.2/include -I/private/var/tmp/pear-build-root/APC-3.1.2/main -I/private/tmp/pear/temp/APC -I/sw/include/php5 -I/sw/include/php5/main -I/sw/include/php5/TSRM -I/sw/include/php5/Zend -I/sw/include/php5/ext -I/sw/include/php5/ext/date/lib  -DHAVE_CONFIG_H  -g -O2   -c /private/tmp/pear/temp/APC/apc.c -o apc.lo
mkdir .libs
 gcc -I. -I/private/tmp/pear/temp/APC -DPHP_ATOM_INC -I/private/var/tmp/pear-build-root/APC-3.1.2/include -I/private/var/tmp/pear-build-root/APC-3.1.2/main -I/private/tmp/pear/temp/APC -I/sw/include/php5 -I/sw/include/php5/main -I/sw/include/php5/TSRM -I/sw/include/php5/Zend -I/sw/include/php5/ext -I/sw/include/php5/ext/date/lib -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/APC/apc.c  -fno-common -DPIC -o .libs/apc.o
In file included from /private/tmp/pear/temp/APC/apc.c:38:
/sw/include/php5/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
In file included from /private/tmp/pear/temp/APC/apc.c:38:
/sw/include/php5/ext/pcre/php_pcre.h:45: error: syntax error before '*' token
/sw/include/php5/ext/pcre/php_pcre.h:45: error: syntax error before 'pcre_extra'
/sw/include/php5/ext/pcre/php_pcre.h:45: warning: data definition has no type or storage class
/sw/include/php5/ext/pcre/php_pcre.h:46: error: syntax error before '*' token
/sw/include/php5/ext/pcre/php_pcre.h:46: error: syntax error before 'pcre_extra'
/sw/include/php5/ext/pcre/php_pcre.h:46: warning: data definition has no type or storage class
/sw/include/php5/ext/pcre/php_pcre.h:52: error: syntax error before 'pcre'
/sw/include/php5/ext/pcre/php_pcre.h:52: warning: no semicolon at end of struct or union
/sw/include/php5/ext/pcre/php_pcre.h:53: warning: data definition has no type or storage class
/sw/include/php5/ext/pcre/php_pcre.h:61: error: syntax error before '}' token
/sw/include/php5/ext/pcre/php_pcre.h:61: warning: data definition has no type or storage class
/sw/include/php5/ext/pcre/php_pcre.h:63: error: syntax error before '*' token
/sw/include/php5/ext/pcre/php_pcre.h:63: warning: data definition has no type or storage class
/sw/include/php5/ext/pcre/php_pcre.h:65: error: syntax error before '*' token
/sw/include/php5/ext/pcre/php_pcre.h:68: error: syntax error before '*' token
/sw/include/php5/ext/pcre/php_pcre.h:71: error: syntax error before '*' token
/sw/include/php5/ext/pcre/php_pcre.h:74: error: syntax error before '*' token
/private/tmp/pear/temp/APC/apc.c:362: error: syntax error before 'pcre'
/private/tmp/pear/temp/APC/apc.c:362: warning: no semicolon at end of struct or union
/private/tmp/pear/temp/APC/apc.c:363: warning: data definition has no type or storage class
/private/tmp/pear/temp/APC/apc.c:364: error: syntax error before '}' token
/private/tmp/pear/temp/APC/apc.c:364: warning: data definition has no type or storage class
/private/tmp/pear/temp/APC/apc.c: In function 'apc_regex_compile_array':
/private/tmp/pear/temp/APC/apc.c:389: error: 'regs' undeclared (first use in this function)
/private/tmp/pear/temp/APC/apc.c:389: error: (Each undeclared identifier is reported only once
/private/tmp/pear/temp/APC/apc.c:389: error: for each function it appears in.)
/private/tmp/pear/temp/APC/apc.c:398: error: syntax error before ')' token
/private/tmp/pear/temp/APC/apc.c: In function 'apc_regex_destroy_array':
/private/tmp/pear/temp/APC/apc.c:431: error: 'regs' undeclared (first use in this function)
/private/tmp/pear/temp/APC/apc.c:431: error: syntax error before ')' token
/private/tmp/pear/temp/APC/apc.c: In function 'apc_regex_match_array':
/private/tmp/pear/temp/APC/apc.c:445: error: 'regs' undeclared (first use in this function)
/private/tmp/pear/temp/APC/apc.c:450: error: syntax error before ')' token
make: *** [apc.lo] Error 1
ERROR: `make' failed
 [2008-12-12 15:49 UTC] shire@php.net
The spinlocks warning is now fixed in CVS.

Do you have /opt/local/include/pcre.h?  Are you specifying any pcre options in your build of PHP (or is this the default PHP build that comes with OS X?)
 [2008-12-16 06:52 UTC] ok dot pecl-php-net dot 12 dot zero at spamgourmet dot com
> Do you have /opt/local/include/pcre.h?

I'm on Fink <http://finkproject.org/>, my PHP is built from this info-File: http://fink.cvs.sourceforge.net/viewvc/fink/dists/10.4/unstable/main/finkinfo/languages/php5.info?view=markup

(The only change I did by myself is adding --with-apxs2 for CLI, as per default apache2handler is built with ZTS and CLI is built without.)

There is an /opt/local/include/pcre.h on my system, but as Fink should be more or less self-contained (prefix /sw) I guess it should rather use the also availeable /sw/include/pcre.h?
 [2009-03-02 02:40 UTC] shire@php.net
You're sure you are building aganist php-5.2.5?  This builds against my system.  If you add: 

-I/opt/local/include

to the INCLUDES line in the apc Makefile should allow this to compile correctly. Can you verify your php version and let us know if the above change works?
 [2009-04-05 23:28 UTC] shire@php.net
No feedback was provided. The bug is being suspended because
we assume that you are no longer experiencing the problem.
If this is not the case and you are able to provide the
information that was requested earlier, please do so and
change the status of the bug back to "Open". Thank you.


 [2009-05-17 21:35 UTC] rquigley at gmail dot com
I can confirm that Shire's solution of adding -
I/opt/local/include works. Macports experiences the same issue 
because it doesn't use PHP's builtin PCRE. Adding the external 
libs folder fixes the issue.
 [2010-03-15 02:30 UTC] ak at remadmin dot com
Installing pcre-devel helped me
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 15:01:30 2024 UTC