Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 Nov 2009 12:13:39 +0100
From:      Thomas Vogt <freebsdlists@bsdunix.ch>
To:        freebsd-questions@freebsd.org
Subject:   Problem compiling php5 fro ports
Message-ID:  <06CA3C3C-636B-4DC7-9B99-751B610B6263@bsdunix.ch>

next in thread | raw e-mail | index | archive | help
Hello

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 =
error.

Example: php5-mcrypt

In file included from =
/usr/local/include/php/main/../main/php_config.h:2827,
                 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,
                 from =
/usr/ports/security/php5-mcrypt/work/php-5.2.11/ext/mcrypt/mcrypt.c:25:
/usr/local/include/php/ext/php_config.h:1: error: expected '=3D', ',', =
';', 'asm' or '__attribute__' before 'file'
In file included from =
/usr/local/include/php/main/../main/php_config.h:2827,
                 from /usr/local/include/php/TSRM/tsrm_config.h:1,
                 from /usr/local/include/php/Zend/../TSRM/TSRM.h:20,
                 from /usr/local/include/php/Zend/zend_alloc.h:27,
                 from /usr/local/include/php/Zend/zend.h:242,
                 from /usr/local/include/php/main/php.h:34,
                 from =
/usr/ports/security/php5-mcrypt/work/php-5.2.11/ext/mcrypt/mcrypt.c:25:
/usr/local/include/php/ext/php_config.h:1: error: expected '=3D', ',', =
';', 'asm' or '__attribute__' before 'file'
In file included from /usr/local/include/php/main/php_config.h:2827,
                 from /usr/local/include/php/main/php_syslog.h:27,
                 from /usr/local/include/php/Zend/zend.h:689,
                 from /usr/local/include/php/main/php.h:34,
                 from =
/usr/ports/security/php5-mcrypt/work/php-5.2.11/ext/mcrypt/mcrypt.c:25:
/usr/local/include/php/ext/php_config.h:1: error: expected '=3D', ',', =
';', 'asm' or '__attribute__' before 'file'
In file included from /usr/local/include/php/main/php_config.h:2827,
                 from /usr/local/include/php/main/php_compat.h:27,
                 from /usr/local/include/php/main/php.h:36,
                 from =
/usr/ports/security/php5-mcrypt/work/php-5.2.11/ext/mcrypt/mcrypt.c:25:
/usr/local/include/php/ext/php_config.h:1: error: expected '=3D', ',', =
';', 'asm' or '__attribute__' before 'file'
In file included from /usr/local/include/php/Zend/zend_modules.h:26,
                 from /usr/local/include/php/Zend/zend_API.h:26,
                 from /usr/local/include/php/main/php.h:38,


Another example:

=3D=3D=3D>  Building for pecl-pdflib-2.1.6_1
/bin/sh /usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/libtool =
--mode=3Dcompile cc  -I. =
-I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6 -DPHP_ATOM_INC =
-I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/include =
-I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/main =
-I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6 =
-I/usr/local/include/php -I/usr/local/include/php/main =
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend =
-I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib =
-I/usr/local/include  -DHAVE_CONFIG_H  -O2 -fno-strict-aliasing -pipe   =
-c /usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c -o pdf.lo
mkdir .libs
 cc -I. -I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6 -DPHP_ATOM_INC =
-I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/include =
-I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/main =
-I/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6 =
-I/usr/local/include/php -I/usr/local/include/php/main =
-I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend =
-I/usr/local/include/php/ext -I/usr/local/include/php/ext/date/lib =
-I/usr/local/include -DHAVE_CONFIG_H -O2 -fno-strict-aliasing -pipe -c =
/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c  -fPIC -DPIC -o =
.libs/pdf.o
In file included from =
/usr/local/include/php/main/../main/php_config.h:2827,
                 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,
                 from =
/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/ext/php_config.h:1: error: expected '=3D', ',', =
';', 'asm' or '__attribute__' before 'file'
In file included from =
/usr/local/include/php/main/../main/php_config.h:2827,
                 from /usr/local/include/php/TSRM/tsrm_config.h:1,
                 from /usr/local/include/php/Zend/../TSRM/TSRM.h:20,
                 from /usr/local/include/php/Zend/zend_alloc.h:27,
                 from /usr/local/include/php/Zend/zend.h:242,
                 from /usr/local/include/php/main/php.h:34,
                 from =
/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/ext/php_config.h:1: error: expected '=3D', ',', =
';', 'asm' or '__attribute__' before 'file'
In file included from /usr/local/include/php/main/php_config.h:2827,
                 from /usr/local/include/php/main/php_syslog.h:27,
                 from /usr/local/include/php/Zend/zend.h:689,
                 from /usr/local/include/php/main/php.h:34,
                 from =
/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/ext/php_config.h:1: error: expected '=3D', ',', =
';', 'asm' or '__attribute__' before 'file'
In file included from /usr/local/include/php/main/php_config.h:2827,
                 from /usr/local/include/php/main/php_compat.h:27,
                 from /usr/local/include/php/main/php.h:36,
                 from =
/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/ext/php_config.h:1: error: expected '=3D', ',', =
';', 'asm' or '__attribute__' before 'file'
In file included from /usr/local/include/php/Zend/zend_modules.h:26,
                 from /usr/local/include/php/Zend/zend_API.h:26,
                 from /usr/local/include/php/main/php.h:38,
                 from =
/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/Zend/zend_compile.h:62: error: expected =
specifier-qualifier-list before 'zend_op_array'
/usr/local/include/php/Zend/zend_compile.h:267: error: expected =
specifier-qualifier-list before 'zend_op_array'
/usr/local/include/php/Zend/zend_compile.h:298: error: expected =
specifier-qualifier-list before 'zend_op_array'
In file included from /usr/local/include/php/Zend/zend_compile.h:319,
                 from /usr/local/include/php/Zend/zend_modules.h:26,
                 from /usr/local/include/php/Zend/zend_API.h:26,
                 from /usr/local/include/php/main/php.h:38,
                 from =
/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/Zend/zend_globals.h:91: error: expected =
specifier-qualifier-list before 'zend_op_array'
/usr/local/include/php/Zend/zend_globals.h:183: error: expected =
specifier-qualifier-list before 'zend_op_array'
In file included from /usr/local/include/php/Zend/zend_modules.h:26,
                 from /usr/local/include/php/Zend/zend_API.h:26,
                 from /usr/local/include/php/main/php.h:38,
                 from =
/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/Zend/zend_compile.h:327: error: expected '=3D', =
',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/include/php/Zend/zend_compile.h:328: error: expected '=3D', =
',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/include/php/Zend/zend_compile.h:340: error: expected ')' =
before '*' token
/usr/local/include/php/Zend/zend_compile.h:513: error: expected '=3D', =
',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/include/php/Zend/zend_compile.h:514: error: expected '=3D', =
',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/include/php/Zend/zend_compile.h:515: error: expected '=3D', =
',', ';', 'asm' or '__attribute__' before '*' token
/usr/local/include/php/Zend/zend_compile.h:518: error: expected ')' =
before '*' token
/usr/local/include/php/Zend/zend_compile.h:519: error: expected ')' =
before '*' token
/usr/local/include/php/Zend/zend_compile.h:537: error: expected ')' =
before '*' token
/usr/local/include/php/Zend/zend_compile.h:539: error: expected ')' =
before '*' token
/usr/local/include/php/Zend/zend_compile.h:541: error: expected ')' =
before '*' token
/usr/local/include/php/Zend/zend_compile.h:542: error: expected ')' =
before '*' token
/usr/local/include/php/Zend/zend_compile.h:543: error: expected ')' =
before '*' token
In file included from /usr/local/include/php/Zend/zend_API.h:30,
                 from /usr/local/include/php/main/php.h:38,
                 from =
/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/Zend/zend_execute.h:55: error: expected ')' =
before '*' token
/usr/local/include/php/Zend/zend_execute.h:61: error: expected ')' =
before '*' token
/usr/local/include/php/Zend/zend_execute.h: In function =
'i_zend_is_true':
/usr/local/include/php/Zend/zend_execute.h:126: error: =
'zend_executor_globals' has no member named 'ze1_compatibility_mode'
/usr/local/include/php/Zend/zend_execute.h: In function =
'zend_ptr_stack_clear_multiple':
/usr/local/include/php/Zend/zend_execute.h:148: error: =
'zend_executor_globals' has no member named 'argument_stack'
/usr/local/include/php/Zend/zend_execute.h:151: error: =
'zend_executor_globals' has no member named 'argument_stack'
/usr/local/include/php/Zend/zend_execute.h:157: error: =
'zend_executor_globals' has no member named 'argument_stack'
/usr/local/include/php/Zend/zend_execute.h: In function =
'zend_ptr_stack_get_arg':
/usr/local/include/php/Zend/zend_execute.h:162: error: =
'zend_executor_globals' has no member named 'argument_stack'
In file included from =
/usr/local/include/php/main/../main/php_config.h:2827,
                 from /usr/local/include/php/TSRM/tsrm_config.h:1,
                 from =
/usr/local/include/php/TSRM/tsrm_config_common.h:13,
                 from /usr/local/include/php/TSRM/tsrm_virtual_cwd.h:26,
                 from /usr/local/include/php/main/php.h:412,
                 from =
/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/ext/php_config.h: At top level:
/usr/local/include/php/ext/php_config.h:1: error: expected '=3D', ',', =
';', 'asm' or '__attribute__' before 'file'
In file included from /usr/local/include/php/main/php.h:412,
                 from =
/usr/ports/print/pecl-pdflib/work/pdflib-2.1.6/pdf.c:84:
/usr/local/include/php/TSRM/tsrm_virtual_cwd.h:198: warning: 'struct =
utimbuf' declared inside parameter list
*** Error code 1



I installed php5 extension via package and it works but it's not good if =
I can't compile it by myself.

The System was upgraded from 6.4 to 7.2 with freebsd-update, libtool =
upgrade was done as descriped in UPDATING. PHP4 was installed bevor I =
tried to upgrade to php5. I removed all php4 packages, updated to the =
latest portstree and tried to build php5-extension. No luck.

Information:
FreeBSD hostname 7.2-RELEASE-p4 FreeBSD 7.2-RELEASE-p4 #0: Fri Oct  2 =
12:21:39 UTC 2009     =
root@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

Installed Ports/packages
amanda-client-2.6.1p1,1
amanda-server-2.6.1p1,1
apache-2.2.13
aspell-0.60.6_2
autoconf-2.62
autoconf-wrapper-20071109
automake-1.10.1
automake-wrapper-20071109
bigreqsproto-1.0.2
ca_root_nss-3.11.9_2
cclient-2007e,1
cracklib-2.7_2
cups-client-1.3.10_4
cups-image-1.3.10_4
curl-7.19.7
db41-4.1.25_4
docbook-1.4
docbook-4.1_3
docbook-4.2
docbook-4.3
docbook-4.4_2
docbook-4.5_2
docbook-5.0_1
docbook-sk-4.1.2_4
docbook-xml-4.2_1
docbook-xml-4.3
docbook-xml-4.4_1
docbook-xml-4.5
docbook-xsl-1.75.2
expat-2.0.1
fontconfig-2.6.0,1
freetype2-2.3.9_1
gamin-0.1.10_3
gd-2.0.35_2,1
gettext-0.17_1
ghostscript8-nox11-8.64_7
gio-fam-backend-2.20.5
glib-2.20.5
gmake-3.81_3
gnutls-2.8.3
gsfonts-8.11_5
gtar-1.22_1
help2man-1.36.4_3
inputproto-1.5.0
iso8879-1986_2
jasper-1.900.1_8
jbigkit-1.6
joe-3.7,1
jpeg-7
kbproto-1.0.3
lcms-1.18a_1,1
libICE-1.0.4_1,1
libSM-1.1.0_1,1
libX11-1.2.1_1,1
libXau-1.0.4
libXaw-1.0.5_1,1
libXdmcp-1.0.2_1
libXext-1.0.5,1
libXmu-1.0.4,1
libXp-1.0.0,1
libXpm-3.5.7
libXt-1.0.5_1
libcheck-0.9.8
libfpx-1.2.0.12_1
libgcrypt-1.4.4
libgpg-error-1.7
libiconv-1.13.1
liblqr-1-0.4.1
libltdl-2.2.6a_1
libmcal-0.7_2
libmcrypt-2.5.8
libmonetra-7.0.4
libpthread-stubs-0.3
libtool-2.2.6a_1
libxcb-1.4
libxml2-2.7.6
libxslt-1.1.26
lzo2-2.03_2
lzop-1.02.r1
m4-1.4.13,1
mhash-0.9.9.9
mnogosearch31-3.1.21
mysql-client-5.0.87
mysql-scripts-5.0.87
mysql-server-5.0.87
p5-DBD-mysql50-4.012
p5-DBI-1.60.9
p5-Storable-2.21
p5-gettext-1.05_2
pcre-8.00
pdflib-7.0.4
pear-1.9.0
pear-MDB2-2.5.0.b2
pear-MDB2_Driver_mysql-1.5.0.b2
pear-MDB2_Driver_mysqli-1.5.0.b2
pecl-fileinfo-1.0.4
pecl-pdflib-2.1.6_1
perl-5.8.9_3
php5-5.2.11_1
php5-bcmath-5.2.11_1
php5-bz2-5.2.11_1
php5-ctype-5.2.11_1
php5-curl-5.2.11_1
php5-dom-5.2.11_1
php5-extensions-1.3
php5-filter-5.2.11_1
php5-gd-5.2.11_2
php5-gettext-5.2.11_1
php5-hash-5.2.11_1
php5-iconv-5.2.11_1
php5-json-5.2.11_1
php5-mbstring-5.2.11_1
php5-mcrypt-5.2.11_1
php5-mhash-5.2.11_1
php5-mysql-5.2.11_1
php5-mysqli-5.2.11_1
php5-openssl-5.2.11_1
php5-pcre-5.2.11_1
php5-pdo-5.2.11_1
php5-pdo_sqlite-5.2.11_1
php5-posix-5.2.11_1
php5-session-5.2.11_1
php5-simplexml-5.2.11_1
php5-sockets-5.2.11_1
php5-spl-5.2.11_1
php5-sqlite-5.2.11_1
php5-sysvmsg-5.2.11_1
php5-sysvshm-5.2.11_1
php5-tokenizer-5.2.11_1
php5-xml-5.2.11_1
php5-xmlreader-5.2.11_1
php5-xmlwriter-5.2.11_1
php5-xsl-5.2.11_1
php5-zip-5.2.11_1
php5-zlib-5.2.11_1
phpMyAdmin-3.2.3
pkg-config-0.23_1
png-1.2.40
portaudit-0.5.14
portupgrade-2.4.6_3,2
printproto-1.0.4
python26-2.6.2_3
ruby+nopthreads-1.8.7.160_5,1
ruby18-bdb-0.6.5_1
screen-4.0.3_6
t1lib-5.1.2_1,1
tiff-3.9.2
tw_cli-9.5.2
unixODBC-2.2.14_1
unzip-6.0
webalizer-2.21.2_1
xcb-proto-1.5
xcmiscproto-1.1.2
xextproto-7.0.5
xf86bigfontproto-1.1.2
xmlcatmgr-2.2
xmlcharent-0.3_2
xorg-macros-1.2.1
xproto-7.0.15
xtrans-1.2.3
xz-4.999.9_1
zip-3.0

Regards,
Thomas

Tom







Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?06CA3C3C-636B-4DC7-9B99-751B610B6263>