Problem compiling php5 fro ports
freebsdlists at bsdunix.ch
Fri Nov 20 12:25:34 UTC 2009
Am 20.11.2009 um 13:07 schrieb Mel Flynn:
> On Fri, 20 Nov 2009 12:13:39 +0100, Thomas Vogt <freebsdlists at bsdunix.ch>
>> Maybe someone can help me. I try to compile several php5 extensions from
>> the ports. php5 compiles fine but every extension fails with the same
>> Example: php5-mcrypt
>> In file included from
>> from /usr/local/include/php/Zend/zend_config.h:1,
>> from /usr/local/include/php/Zend/zend.h:53,
>> from /usr/local/include/php/main/php.h:34,
>> /usr/local/include/php/ext/php_config.h:1: error: expected '=', ',', ';',
>> 'asm' or '__attribute__' before 'file'
> There shouldn't be anything declared there. What is line 1 of that file?
I didn't see it the first time. There was a comment on line 1. Maybe from the last freebsd-update procedure.
Binary file /usr/local/include/php/ext/php_config.h.orig matches
I removed it and now it works.
More information about the freebsd-questions