php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #59254 Build fails on OS/X
Submitted: 2010-06-06 16:01 UTC Modified: 2010-06-10 09:20 UTC
From: evert at rooftopsolutions dot nl Assigned:
Status: No Feedback Package: oauth (PECL)
PHP Version: 5.3.1 OS: OS/X 10.6
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: evert at rooftopsolutions dot nl
New email:
PHP Version: OS:

 

 [2010-06-06 16:01 UTC] evert at rooftopsolutions dot nl
Description:
------------
Build fails on OS/X.

This is with a stock PHP installation (5.3.1) and gcc-4.2.1



Reproduce code:
---------------
pecl download OAuth
tar xfvz OAuth-1.0.0.tgz
cd OAuth-1.0.0
phpize
./configure
make


Expected result:
----------------
A compiled OAuth extension

Actual result:
--------------
$ make 
/bin/sh /Users/evert2/code/sabredav/main/pecl/oauth-1.0.0/libtool --mode=compile cc  -I. -I/Users/evert2/code/sabredav/main/pecl/oauth-1.0.0 -DPHP_ATOM_INC -I/Users/evert2/code/sabredav/main/pecl/oauth-1.0.0/include -I/Users/evert2/code/sabredav/main/pecl/oauth-1.0.0/main -I/Users/evert2/code/sabredav/main/pecl/oauth-1.0.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib  -DHAVE_CONFIG_H  -g -O2 -Wall -g   -c /Users/evert2/code/sabredav/main/pecl/oauth-1.0.0/oauth.c -o oauth.lo 
mkdir .libs
 cc -I. -I/Users/evert2/code/sabredav/main/pecl/oauth-1.0.0 -DPHP_ATOM_INC -I/Users/evert2/code/sabredav/main/pecl/oauth-1.0.0/include -I/Users/evert2/code/sabredav/main/pecl/oauth-1.0.0/main -I/Users/evert2/code/sabredav/main/pecl/oauth-1.0.0 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -Wall -g -c /Users/evert2/code/sabredav/main/pecl/oauth-1.0.0/oauth.c  -fno-common -DPIC -o .libs/oauth.o
In file included from /Users/evert2/code/sabredav/main/pecl/oauth-1.0.0/php_oauth.h:47,
                 from /Users/evert2/code/sabredav/main/pecl/oauth-1.0.0/oauth.c:14:
/usr/include/php/ext/pcre/php_pcre.h:29:18: error: pcre.h: No such file or directory
In file included from /Users/evert2/code/sabredav/main/pecl/oauth-1.0.0/php_oauth.h:47,
                 from /Users/evert2/code/sabredav/main/pecl/oauth-1.0.0/oauth.c:14:
/usr/include/php/ext/pcre/php_pcre.h:37: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token
/usr/include/php/ext/pcre/php_pcre.h:38: error: expected ?=?, ?,?, ?;?, ?asm? or ?__attribute__? before ?*? token
/usr/include/php/ext/pcre/php_pcre.h:44: error: expected specifier-qualifier-list before ?pcre?
make: *** [oauth.lo] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-06-07 06:15 UTC] datibbaw@php.net
Quite amazing that you managed to have pcre disabled. What's the ./configure command for your PHP?
 [2010-06-07 06:41 UTC] evert at rooftopsolutions dot nl
pcre is not disabled actually.

This is the configure command:

(I must note again that this is a stock OS/X php version, as shipped by apple). 

OAuth-0.9.9 did compile successfully.

Configure Command =>  '/var/tmp/apache_mod_php/apache_mod_php-53.1.1~6/php/configure'  '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--disable-dependency-tracking' '--sysconfdir=/private/etc' '--with-apxs2=/usr/sbin/apxs' '--enable-cli' '--with-config-file-path=/etc' '--with-libxml-dir=/usr' '--with-openssl=/usr' '--with-kerberos=/usr' '--with-zlib=/usr' '--enable-bcmath' '--with-bz2=/usr' '--enable-calendar' '--with-curl=/usr' '--enable-exif' '--enable-ftp' '--with-gd' '--with-jpeg-dir=/BinaryCache/apache_mod_php/apache_mod_php-53.1.1~6/Root/usr/local' '--with-png-dir=/BinaryCache/apache_mod_php/apache_mod_php-53.1.1~6/Root/usr/local' '--enable-gd-native-ttf' '--with-ldap=/usr' '--with-ldap-sasl=/usr' '--enable-mbstring' '--enable-mbregex' '--with-mysql=mysqlnd' '--with-mysqli=mysqlnd' '--with-pdo-mysql=mysqlnd' '--with-mysql-sock=/var/mysql/mysql.sock' '--with-iodbc=/usr' '--enable-shmop' '--with-snmp=/usr' '--enable-soap' '--enable-sockets' '--enable-sysvmsg' '--enable-sysvsem' '--enable-sysvshm' '--with-xmlrpc' '--with-iconv-dir=/usr' '--with-xsl=/usr' '--enable-zend-multibyte' '--enable-zip' '--with-pcre-regex=/usr'
 [2010-06-07 11:39 UTC] datibbaw@php.net
Seems like Apple did some cheeky things with your php configuration ;-)

Check this article on how to fix it:
http://discussions.apple.com/thread.jspa?threadID=2174107&tstart=52
 [2010-06-10 09:20 UTC] datibbaw@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.

Feel free to reopen if the suggested link didn't make it work.
 
PHP Copyright © 2001-2020 The PHP Group
All rights reserved.
Last updated: Sun Mar 29 22:01:26 2020 UTC