#22891 [Opn->Bgs]: MM library support doesn't compile with oracle support

From: Date: Wed, 09 Apr 2003 10:55:47 +0000
Subject: #22891 [Opn->Bgs]: MM library support doesn't compile with oracle support
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37413@lists.php.net to get a copy of this message
ID: 22891 Updated by: sniper@php.net Reported By: horakm at mail dot sce dot cz -Status: Open +Status: Bogus Bug Type: Compile Failure Operating System: Linux (>= RedHat 7.0) PHP Version: 4.3.1 New Comment: Install libmm in some other place. Not PHP bug. Previous Comments: ------------------------------------------------------------------------ [2003-03-26 03:34:56] horakm at mail dot sce dot cz Hello PHP boys. There's a problem in compiling PHP with both Oracle oci8 and mm support. Here is my configuration: ORACLE_HOME=/usr/local/oraclient/8.1.6 \ ./configure \ --prefix=/usr/local \ --with-mysql=/usr \ --with-oci8=/usr/local/oraclient/8.1.6 \ --with-ldap \ --with-dbase \ --with-gdbm=/usr \ --with-imap=shared \ --with-imap-ssl \ --with-kerberos \ --with-gd=shared \ --with-ttf \ --with-jpeg-dir \ --enable-trans-sid \ --disable-debug \ --enable-sysvshm --enable-sysvsem \ --with-config-file-path=/usr/local/apache/conf \ --with-apache=/usr/src/apache \ --with-zlib \ --with-mm Make fails with: /bin/sh libtool --silent --mode=link gcc -export-dynamic -g -O2 -rdynamic... ... ext/session/mod_mm.o: In function `hash_split': /usr/src/php-4.3.1/ext/session/mod_mm.c:96: undefined reference to `mm_calloc' /usr/src/php-4.3.1/ext/session/mod_mm.c:111: undefined reference to `mm_free' ext/session/mod_mm.o: In function `ps_sd_new': /usr/src/php-4.3.1/ext/session/mod_mm.c:125: undefined reference to `mm_malloc' ... Problem is apparently in library libmm.a, because in $ORACLE_HOME/lib is also some libmm.a. If I renamed $ORACLE_HOME/lib/libmm.a to a different name, compilation succeeded. If I put -L/usr/lib before -L$ORACLE_HOME/lib into Makefile variables *_LDFLAGS it also worked. Is there any clean solution? Regards, Martin Horak ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=22891&edit=1

« previous php.bugs (#37413) next »