ID:               29453
 User updated by:  [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           No Feedback
+Status:           Open
 Bug Type:         Compile Failure
 Operating System: Gentoo Linux  x86_64 (Opteron)
 PHP Version:      5.0.0
 New Comment:

libtool-1.5.2-r5
automake-1.8.5-r1
autoconf-2.59-r4

FYI:
I haven't had problems with other software yet and as it's a gentoo
system nearly everything get's compiled from scratch.

My portage tree doesn't even offer autoconf-2.13 anymore btw.
I am on amd64 and so not that free in choosing older software
versions.

Meanwhile I compiled the IMAP support as Dynamic Extension and it works
now.

My config.nice for ext/imap looks like this:

CC='gcc' \
CXX='g++' \
'./configure' \
'--with-imap=/usr/lib/' \
'--with-imap-ssl' \
"$@"


BUT:
If I only do a ./configure I get:
checking whether SSL libraries are needed for c-client... no
checking whether build with IMAP works... no
configure: error: build test failed. Please check the config.log for
details.

The config.log now show:
configure:4529: checking whether build with IMAP works
configure:4572: gcc -o conftest -g -O2   conftest.c  -lc-client -lcrypt
-lpam   >&5
/usr/lib/gcc/x86_64-pc-linux-gnu/3.4.1/../../../libc-client.a(osdep.o)(.text+0x8b69):
In function `ssl_onceonlyinit':
: warning: the use of `tmpnam' is dangerous, better use `mkstemp'
----about 30 lines undefined references-----

So without knowing much about linking I can only guess what's happening
here...

greetings

Daniel Khan


Previous Comments:
------------------------------------------------------------------------

[2004-09-12 01:00:10] php-bugs at lists dot php dot net

No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".

------------------------------------------------------------------------

[2004-09-04 18:32:42] [EMAIL PROTECTED]

What version of libtool do you use?
--
The following combinations are known to work:
autoconf 2.13, automake 1.4 and libtool 1.4.3
autoconf 2.13, automake 1.5 and libtool 1.4.3
--
(c) http://www.php.net/anoncvs.php


------------------------------------------------------------------------

[2004-07-30 01:52:15] [EMAIL PROTECTED]

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 this bug report at http://bugs.php.net/?id=29453&edit=1

Reply via email to