php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22891 MM library support doesn't compile with oracle support
Submitted: 2003-03-26 03:34 UTC Modified: 2003-04-09 05:55 UTC
From: horakm at mail dot sce dot cz Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.3.1 OS: Linux (>= RedHat 7.0)
Private report: No CVE-ID: None
 [2003-03-26 03:34 UTC] 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

Patches

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-04-09 05:55 UTC] sniper@php.net
Install libmm in some other place.
Not PHP bug.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Aug 17 10:01:28 2024 UTC