#30593 [Fbk->Opn]: --with-ingres option generates broken Makefile

From: Date: Wed, 24 Nov 2004 06:36:27 +0000
Subject: #30593 [Fbk->Opn]: --with-ingres option generates broken Makefile
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-69394@lists.php.net to get a copy of this message
ID: 30593 User updated by: sean dot lincolne at gmail dot com Reported By: sean dot lincolne at gmail dot com -Status: Feedback +Status: Open Bug Type: Compile Failure Operating System: RedHat Linux 9.0 PHP Version: 4.3.9 New Comment: I was trying everything to see if I could force 'configure' to recognise that it needs the 'libpthread' library. Either way it has no impact on the problem, nor does it impact on the use of libpthread. Currently the only workaround is to manually edit 'Makefile' after 'configure' but before 'make'. Not particularly friendly or elegant. Previous Comments: ------------------------------------------------------------------------ [2004-11-24 01:35:15] sniper@php.net WHY do you want to use the --with-tsrm-phtreads option? You're compiling an apache 1.x module which isn't multithreaded.. ------------------------------------------------------------------------ [2004-10-31 04:44:59] sean dot lincolne at gmail dot com Configuration command as follows: ./configure --with-apxs --without-mysql \ --with-ingres --with-ldap \ --without-pear --disable-shared \ --enable-static --with-tsrm-pthreads Make fails with the following error: /opt/ingres/lib/libingres.a(louniq.o): In function `LOuniq': louniq.o(.text+0x16d): the use of `mktemp' is dangerous, better use `mkstemp' /opt/ingres/lib/libingres.a(mepages.o): In function `IIMEget_pages': mepages.o(.text+0x1c5): undefined reference to `pthread_mutex_trylock' collect2: ld returned 1 exit status make: *** [sapi/cli/php] Error 1 [root@toshiba php-4.3.9]# The 'config.log' file can be found at http://www.batute.com/config.log Thanks, Sean ------------------------------------------------------------------------ [2004-10-28 08:11:15] derick@php.net Please provide your 1. configure line, 2. the error itself, 3. a link to the output of config.log (do not paste it here!) ------------------------------------------------------------------------ [2004-10-28 02:07:21] sean dot lincolne at gmail dot com Description: ------------ Configuring a PHP build with the '--with-ingres' option results in an incomplete Makefile. When you attempt to make PHP the make fails. If you manually edit the Makefile after configure, and add '-lpthread' to the 'EXTRA_LIBS' line the make will complete successfully. Specifiying the '--with-tsrm-pthreads' as a configure option does not fix this. Can someone examine the Ingres build code in PHP and ensure that when the '--with-ingres' option is specified the 'libpthread' library is included in the library list ? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=30593&edit=1

« previous php.bugs (#69394) next »