From:             horakm at mail dot sce dot cz
Operating system: Linux (>= RedHat 7.0)
PHP version:      4.3.1
PHP Bug Type:     Compile Failure
Bug description:  MM library support doesn't compile with oracle support

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 bug report at http://bugs.php.net/?id=22891&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22891&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22891&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22891&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22891&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22891&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22891&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22891&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22891&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22891&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22891&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22891&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22891&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22891&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22891&r=gnused

Reply via email to