Bug #64837 [Com]: Configure script fails during the check whether build with IMAP works

2013-05-23 Thread romain at quarkstudio dot fr
Edit report at https://bugs.php.net/bug.php?id=64837&edit=1

 ID: 64837
 Comment by: romain at quarkstudio dot fr
 Reported by:romain at quarkstudio dot fr
 Summary:Configure script fails during the check whether
 build with IMAP works
 Status: Open
 Type:   Bug
 Package:IMAP related
 Operating System:   Linux
 PHP Version:5.3.25
 Block user comment: N
 Private report: N

 New Comment:

Note that the error doesn't occur with php-5.4.15


Previous Comments:

[2013-05-14 17:00:59] romain at quarkstudio dot fr

Description:

When executing the configure script, I get a fatal error during the check 
whether 
build with IMAP works.

c-client : 2007f
openssl : 1.0.1e

Test script:
---
./configure --prefix=/usr --host=x86_64-pc-linux-gnu 
--build=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info 
--datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib 
--disable-dependency-tracking --disable-silent-rules --enable-fast-install 
--libdir=/usr/lib64 --libdir=/usr/share/php --localstatedir=/var 
--enable-bcmath --enable-calendar --enable-cli --enable-ctype --enable-dba 
--enable-flatfile --enable-hash --enable-inifile --enable-intl --enable-json 
--enable-magic-quotes --enable-mbstring --enable-mbregex 
--enable-mbregex-backtrack --enable-pcntl --enable-phar --enable-posix 
--enable-session --enable-shmop --enable-sockets --enable-sysvmsg 
--enable-sysvsem --enable-sysvshm --enable-tokenizer --enable-zend-multibyte 
--enable-zip --disable-embed --disable-embedded-mysqli --disable-safe-mode 
--with-bz2 --with-config-file-path=/etc/php 
--with-config-file-scan-dir=/etc/php --with-exec-dir=/usr/bin --with-gettext 
--with-gmp --with-iconv --with-icu-dir=/usr --with-layout=GNU --with-zlib 
--with-zlib-dir=/usr --without-adabas --without-aolserver 
--without-apache-hooks --without-apache-hooks-static --without-apxs 
--without-birdstep --without-caudium --without-cdb --without-continuity 
--without-custom-odbc --without-dbmaker --without-empress --without-empress-bcs 
--without-enchant --without-esoob --without-mhash --without-ibm-db2 
--without-interbase --without-iodbc --without-isapi --without-milter 
--without-mm --without-ndbm --without-nsapi --without-ODBCRouter --without-oci8 
--without-pdo-firebird --without-pdo-oci --without-phttpd --without-pi3web 
--without-qdbm --without-roxen --without-sapdb --without-snmp --without-solid 
--without-sybase-ct --without-thttpd --without-tux --without-webjames 
--disable-debug --enable-fpm --enable-ipv6 --enable-exif --enable-fileinfo 
--enable-filter --enable-ftp --enable-gd-native-ttf --enable-sqlite-utf8 
--enable-dom --enable-libxml --enable-simplexml --enable-soap --enable-wddx 
--enable-xml --enable-xmlreader --enable-xmlwriter --without-apxs2 --with-pear 
--with-curl --without-curlwrappers --without-db4 --with-gd=/usr 
--with-jpeg-dir=/usr --with-freetype-dir=/usr --with-png-dir=/usr 
--with-t1lib=/usr --with-xpm-dir=/usr --with-imap --without-gdbm 
--without-kerberos --without-ldap --without-ldap-sasl --without-libedit 
--with-mcrypt --without-mssql --without-mysql --without-mysql-sock 
--with-mysqli=mysqlnd --with-mysql-sock=/run/mysqld/mysqld.sock 
--with-pcre-dir=/usr --with-pcre-regex=/usr --with-pdo-mysql=mysqlnd 
--with-mysql-sock=/run/mysqld/mysqld.sock --without-pdo-dblib 
--without-pdo-odbc --with-pdo-pgsql=/usr --with-pdo-sqlite=/usr 
--with-sqlite3=/usr --with-pgsql=/usr --without-pspell --without-readline 
--without-recode --with-imap-ssl --with-openssl --without-tidy 
--without-unixODBC --without-xmlrpc --without-xsl


Expected result:

(Configure script successfully executed)

Actual result:
--
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for details.

The relevant part in the config.log : 

configure:51119: checking whether build with IMAP works
configure:51163: x86_64-pc-linux-gnu-gcc -o conftest -I/usr/include -
march=native -pipe -O2  -L/usr/lib  conftest.c -lc-client   -lcrypt -lpam -lgmp 
-lgd -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lcurl -lbz2 -lz -lsqlite3 -
lpcre -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -ldl -lcurl -lxml2 -lz -lm -ldl 1>&5
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld:
 
/usr/lib/libc-client.a(osdep.o): undefined reference to symbol 'SSL_state'
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld:
 
note: 'SSL_state' is defined in DSO /usr/lib64/libssl.so.1.0.0 so try adding it 
to the linker command line
/usr/lib64/libssl.so.1.0.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status







-- 
Edit thi

[PHP-BUG] Bug #64837 [NEW]: Configure script fails during the check whether build with IMAP works

2013-05-14 Thread romain at quarkstudio dot fr
From: romain at quarkstudio dot fr
Operating system: Linux 
PHP version:  5.3.25
Package:  IMAP related
Bug Type: Bug
Bug description:Configure script fails during the check whether build with IMAP 
works

Description:

When executing the configure script, I get a fatal error during the check
whether 
build with IMAP works.

c-client : 2007f
openssl : 1.0.1e

Test script:
---
./configure --prefix=/usr --host=x86_64-pc-linux-gnu
--build=x86_64-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --disable-dependency-tracking
--disable-silent-rules --enable-fast-install --libdir=/usr/lib64
--libdir=/usr/share/php --localstatedir=/var --enable-bcmath
--enable-calendar --enable-cli --enable-ctype --enable-dba
--enable-flatfile --enable-hash --enable-inifile --enable-intl
--enable-json --enable-magic-quotes --enable-mbstring --enable-mbregex
--enable-mbregex-backtrack --enable-pcntl --enable-phar --enable-posix
--enable-session --enable-shmop --enable-sockets --enable-sysvmsg
--enable-sysvsem --enable-sysvshm --enable-tokenizer
--enable-zend-multibyte --enable-zip --disable-embed
--disable-embedded-mysqli --disable-safe-mode --with-bz2
--with-config-file-path=/etc/php --with-config-file-scan-dir=/etc/php
--with-exec-dir=/usr/bin --with-gettext --with-gmp --with-iconv
--with-icu-dir=/usr --with-layout=GNU --with-zlib --with-zlib-dir=/usr
--without-adabas --without-aolserver --without-apache-hooks
--without-apache-hooks-static --without-apxs --without-birdstep
--without-caudium --without-cdb --without-continuity --without-custom-odbc
--without-dbmaker --without-empress --without-empress-bcs --without-enchant
--without-esoob --without-mhash --without-ibm-db2 --without-interbase
--without-iodbc --without-isapi --without-milter --without-mm
--without-ndbm --without-nsapi --without-ODBCRouter --without-oci8
--without-pdo-firebird --without-pdo-oci --without-phttpd --without-pi3web
--without-qdbm --without-roxen --without-sapdb --without-snmp
--without-solid --without-sybase-ct --without-thttpd --without-tux
--without-webjames --disable-debug --enable-fpm --enable-ipv6 --enable-exif
--enable-fileinfo --enable-filter --enable-ftp --enable-gd-native-ttf
--enable-sqlite-utf8 --enable-dom --enable-libxml --enable-simplexml
--enable-soap --enable-wddx --enable-xml --enable-xmlreader
--enable-xmlwriter --without-apxs2 --with-pear --with-curl
--without-curlwrappers --without-db4 --with-gd=/usr --with-jpeg-dir=/usr
--with-freetype-dir=/usr --with-png-dir=/usr --with-t1lib=/usr
--with-xpm-dir=/usr --with-imap --without-gdbm --without-kerberos
--without-ldap --without-ldap-sasl --without-libedit --with-mcrypt
--without-mssql --without-mysql --without-mysql-sock --with-mysqli=mysqlnd
--with-mysql-sock=/run/mysqld/mysqld.sock --with-pcre-dir=/usr
--with-pcre-regex=/usr --with-pdo-mysql=mysqlnd
--with-mysql-sock=/run/mysqld/mysqld.sock --without-pdo-dblib
--without-pdo-odbc --with-pdo-pgsql=/usr --with-pdo-sqlite=/usr
--with-sqlite3=/usr --with-pgsql=/usr --without-pspell --without-readline
--without-recode --with-imap-ssl --with-openssl --without-tidy
--without-unixODBC --without-xmlrpc --without-xsl


Expected result:

(Configure script successfully executed)

Actual result:
--
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for
details.

The relevant part in the config.log : 

configure:51119: checking whether build with IMAP works
configure:51163: x86_64-pc-linux-gnu-gcc -o conftest -I/usr/include -
march=native -pipe -O2  -L/usr/lib  conftest.c -lc-client   -lcrypt -lpam
-lgmp 
-lgd -lt1 -lfreetype -lX11 -lXpm -lpng -lz -ljpeg -lcurl -lbz2 -lz
-lsqlite3 -
lpcre -lrt -lm -ldl -lnsl  -lxml2 -lz -lm -ldl -lcurl -lxml2 -lz -lm -ldl
1>&5
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld:

/usr/lib/libc-client.a(osdep.o): undefined reference to symbol 'SSL_state'
/usr/lib64/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld:

note: 'SSL_state' is defined in DSO /usr/lib64/libssl.so.1.0.0 so try
adding it 
to the linker command line
/usr/lib64/libssl.so.1.0.0: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status


-- 
Edit bug report at https://bugs.php.net/bug.php?id=64837&edit=1
-- 
Try a snapshot (PHP 5.4):   
https://bugs.php.net/fix.php?id=64837&r=trysnapshot54
Try a snapshot (PHP 5.3):   
https://bugs.php.net/fix.php?id=64837&r=trysnapshot53
Try a snapshot (trunk): 
https://bugs.php.net/fix.php?id=64837&r=trysnapshottrunk
Fixed in SVN:   https://bugs.php.net/fix.php?id=64837&r=fixed
Fixed in release:   https://bugs.php.net/fix.php?id=64837&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=64837&r=needtrace
Need Reproduce Script: