From:             [EMAIL PROTECTED]
Operating system: Gentoo Linux  x86_64 (Opteron)
PHP version:      5.0.0
PHP Bug Type:     Compile Failure
Bug description:  IMAP support breaks .so

Description:
------------
Hello,

I know that this has been an issue some times bevore and I really looked
into each and every bugreport which mentions it.
I am not able to compile php-5.0.0 with imap support on my Gentoo boxes.

If I don't add imap support it works without problems.

It doesn't make a difference if I add ssl support or not.

So if you know emerge:

USE='ssl' emerge c-client
/usr/portage/dev-php/mod_php/mod_php-5.0.0.ebuild

USE='-ssl' emerge c-client
/usr/portage/dev-php/mod_php/mod_php-5.0.0.ebuild

Both fail.

I even tried different versions of libtool.

Maybe someone can help me out.

Thank you.


-- 
Daniel Khan


Reproduce code:
---------------
./configure  --prefix=/usr --host=x86_64-pc-linux-gnu
--mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share
--sysconfdir=/etc --localstatedir=/var/lib --with-apxs2=/usr/sbin/apxs2
--with-config-file-path=/etc/php/apache2-php5 --without-pear
--disable-bcmath --with-bz2 --disable-calendar --without-cpdflib
--disable-ctype --with-curl --without-curlwrappers --disable-dbase
--disable-dio --enable-exif --without-fam --without-fbsql --without-fdftk
--disable-filepro --enable-ftp --with-gettext --without-gmp
--without-hwapi --without-iconv --without-informix --without-ingres
--without-interbase --enable-mbstring --with-mcrypt --without-mcve
--disable-memory-limit --without-mhash --without-mime-magic --with-ming
--without-mnogosearch --without-msql --without-mssql --with-ncurses
--without-oci8 --without-oracle --with-openssl --without-ovrimos
--enable-pcntl --without-pfpro --without-pgsql --with-pspell
--without-recode --disable-shmop --without-snmp --enable-soap
--enable-sockets --disable-spl --without-sybase --without-sybase-ct
--enable-sysvmsg --enable-sysvsem --enable-sysvshm --with-tidy
--enable-wddx --with-xsl --without-xmlrpc --disable-yp --with-zlib
--without-cdb --with-db4 --without-dbm --without-flatfile --with-gdbm
--without-inifile --without-qdbm --enable-dbx --with-freetype-dir
--with-t1lib --enable-gd-jis-conf --enable-gd-native-ttf
--with-jpeg-dir=/usr --with-png-dir=/usr --with-tiff-dir=/usr
--without-xpm-dir --with-gd --with-imap --with-imap-ssl --with-ldap
--with-ldap-sasl --with-unixODBC --without-adabas --without-birdstep
--without-dbmaker --without-empress --without-esoob --with-ibm-db2
--without-iodbc --without-sapdb --without-solid --with-mysql --without-mm
--without-msession --enable-sqlite-utf8 --enable-dba --with-readline
--without-libedit


Expected result:
----------------
A libphp5.so.

Actual result:
--------------
*** Warning: linker path does not have real file for library -lc-client.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libc-client and none of the candidates passed a file format test
*** using a file magic. Last file checked: /usr/lib/c-client.a
/usr/lib/libc-client.a(osdep.o)(.text+0x8b69): In function
`ssl_onceonlyinit':
: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../../x86_64-pc-linux-gnu/bin/ld:
warning: libstdc++.so.5, needed by /home/db2inst1/sqllib/lib/libdb2.so, may
conflict with libstdc++.so.6

*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module libphp5.  Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.

Build complete.
(It is safe to ignore warnings about tempnam and tmpnam).


>>> Install mod_php-5.0.0 into /var/tmp/portage/mod_php-5.0.0/image/
category dev-php
Installing PHP SAPI module:       apache2handler
/usr/lib/apache2/build/instdso.sh
SH_LIBTOOL='/usr/lib/apache2/build/libtool' libphp5.la
/var/tmp/portage/mod_php-5.0.0/image//usr/lib/apache2/modules
/usr/lib/apache2/build/libtool --mode=install cp libphp5.la
/var/tmp/portage/mod_php-5.0.0/image//usr/lib/apache2/modules/
cp .libs/libphp5.lai
/var/tmp/portage/mod_php-5.0.0/image//usr/lib/apache2/modules/libphp5.la
cp .libs/libphp5.a
/var/tmp/portage/mod_php-5.0.0/image//usr/lib/apache2/modules/libphp5.a
ranlib
/var/tmp/portage/mod_php-5.0.0/image//usr/lib/apache2/modules/libphp5.a
chmod 644
/var/tmp/portage/mod_php-5.0.0/image//usr/lib/apache2/modules/libphp5.a
libtool: install: warning: remember to run `libtool --finish
/var/tmp/portage/mod_php-5.0.0/work/php-5.0.0/libs'
Warning!  dlname not found in
/var/tmp/portage/mod_php-5.0.0/image//usr/lib/apache2/modules/libphp5.la.
Assuming installing a .so rather than a libtool archive.
chmod 755
/var/tmp/portage/mod_php-5.0.0/image//usr/lib/apache2/modules/libphp5.so
chmod: cannot access
`/var/tmp/portage/mod_php-5.0.0/image//usr/lib/apache2/modules/libphp5.so':
No such file or directory
apxs:Error: Command failed with rc=65536
.
make: *** [install-sapi] Error 1

!!! ERROR: dev-php/mod_php-5.0.0 failed.
!!! Function php5-sapi_src_install, Line 394, Exitcode 2
!!! install failed

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

Reply via email to