From:             nulleke at hotmail dot com
Operating system: Linux 2.4.22
PHP version:      4.3.4
PHP Bug Type:     Compile Failure
Bug description:  parse error before `free_func'

Description:
------------
When compiling php 4.3.4 Errors complaining about crypto.h

Openssl version 0.9.7b
GCC 2.95.3

Reproduce code:
---------------
./configure  --prefix=/usr --with-apxs=/usr/sbin/apxs --with-db4=shared
--with-config-file-path=/etc/httpd/conf --with-zlib --with-openssl=shared
--with-mcrypt=shared --with-gd=shared --with-jpeg-dir=/usr
--with-png-dir=/usr --with-xpm-dir=/usr/X11R6
--with-freetype-dir=/usr/local --with-ttf=/usr/local
--with-pgsql=shared,/usr --enable-trans-sid --without-mysql
--enable-gd-native-ttf --with-imap=shared --with-gettext=shared
--enable-xslt --with-dom=/opt/gnome --with-expat-dir=/usr/local
--with-xslt-sablot=/usr/local --with-pdflib=shared --with-mcal=shared,/usr
--with-tiff-dir=/usr --with-dom-xslt=/opt/gnome --with-curl=shared
--with-ming=shared --with-xml=shared --enable-exif --enable-wddx
--with-calendar=shared --with-imap-ssl=/usr

Expected result:
----------------
That the build will finish.

Actual result:
--------------
/bin/sh /home/src/php-4.3.4/libtool --silent --preserve-dup-deps
--mode=compile gcc  -Imain/ -I/home/src/php-4.3.4/main/ -DPHP_ATOM_INC
-I/home/src/php-4.3.4/include -I/home/src/php-4.3.4/main
-I/home/src/php-4.3.4 -I/home/src/php-4.3.4/Zend
-I/opt/gnome/include/libxml2 -I/opt/gnome/include -I/usr/X11R6/include
-I/usr/local/include -I/usr/local/include/freetype2 -I/usr/include/pgsql 
-I/home/src/php-4.3.4/TSRM  -g -O2  -prefer-pic -c
main/internal_functions.c -o main/internal_functions.lo
In file included from /usr/include/openssl/comp.h:5,
                 from /usr/include/openssl/ssl.h:171,
                 from main/php_network.h:78,
                 from /home/src/php-4.3.4/ext/standard/fsock.h:38,
                 from /home/src/php-4.3.4/ext/standard/php_standard.h:44,
                 from main/internal_functions.c:41:
/usr/include/openssl/crypto.h:358: parse error before `free_func'
/usr/include/openssl/crypto.h:358: parse error before `)'
/usr/include/openssl/crypto.h:363: parse error before `free_func'
/usr/include/openssl/crypto.h:363: parse error before `)'
In file included from /usr/include/openssl/rsa.h:62,
                 from /usr/include/openssl/evp.h:137,
                 from /usr/include/openssl/x509.h:67,
                 from /usr/include/openssl/ssl.h:177,
                 from main/php_network.h:78,
                 from /home/src/php-4.3.4/ext/standard/fsock.h:38,
                 from /home/src/php-4.3.4/ext/standard/php_standard.h:44,
                 from main/internal_functions.c:41:
/usr/include/openssl/asn1.h:802: parse error before `free_func'
/usr/include/openssl/asn1.h:802: `d2i_ASN1_SET' declared as function
returning a function
/usr/include/openssl/asn1.h:803: parse error before `int'
/usr/include/openssl/asn1.h:907: parse error before `free_func'
/usr/include/openssl/asn1.h:907: parse error before `)'
In file included from /usr/include/openssl/evp.h:148,
                 from /usr/include/openssl/x509.h:67,
                 from /usr/include/openssl/ssl.h:177,
                 from main/php_network.h:78,
                 from /home/src/php-4.3.4/ext/standard/fsock.h:38,
                 from /home/src/php-4.3.4/ext/standard/php_standard.h:44,
                 from main/internal_functions.c:41:
/usr/include/openssl/objects.h:990: parse error before `free_func'
/usr/include/openssl/objects.h:990: parse error before `)'
make: *** [main/internal_functions.lo] Error 1

-- 
Edit bug report at http://bugs.php.net/?id=26447&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26447&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26447&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26447&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26447&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26447&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=26447&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=26447&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26447&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26447&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26447&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26447&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26447&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26447&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26447&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26447&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26447&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26447&r=float

Reply via email to