From:             mills at cc dot umanitoba dot ca
Operating system: Solaris sparc
PHP version:      4.3.4
PHP Bug Type:     *Configuration Issues
Bug description:  checking for db2 major version fails

Description:
------------
While configuring php with this script:

#!/bin/sh

env CC=cc \
        ./configure \
        --disable-short-tags \
        --with-gettext \
        --with-xml \
        --with-db2=/usr/local/src/db/db-2.4.14/Unix \
        --with-apxs=/usr/local/apache/sbin/apxs \
        --with-ldap=/usr/local/src/ldap/openldap-1.2.11 \
        --with-imap=/usr/local/src/c-client/imap-2000a \
        --with-mysql=/usr/local/src/mysql/mysql-3.23.33

Configure fails with this error:

checking for Berkeley DB4 support... no
checking for Berkeley DB3 support... no
checking for db2 major version... configure: error: Header contains
different version

The configure log says:

configure:23751: cc -o conftest -g  -D_POSIX_PTHREAD_SEMANTICS
-L/usr/local/src/db/db-2.4.14/Unix/lib -ldb  -R/usr/ucblib -L/usr/ucblib
conftest.c -lresolv -lm -ldl -lnsl -lsocket  1>&5
"/usr/local/src/db/db-2.4.14/Unix/include/db.h", line 62: warning: typedef
redeclared: int16_t
"/usr/local/src/db/db-2.4.14/Unix/include/db.h", line 64: warning: typedef
redeclared: int32_t
Undefined                       first referenced
 symbol                             in file
db_appinit                          conftest.o
ld: fatal: Symbol referencing errors. No output written to conftest

This was caused by an ordering error.  Here's my fix:

$ diff Oconfigure configure
1872c1872
< ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS
conftest.$ac_ext $LIBS 1>&5'
---
> ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS
conftest.$ac_ext $LDFLAGS $LIBS 1>&5'




-- 
Edit bug report at http://bugs.php.net/?id=26157&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=26157&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=26157&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=26157&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=26157&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=26157&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=26157&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=26157&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=26157&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=26157&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=26157&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=26157&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26157&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=26157&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=26157&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=26157&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=26157&r=float

Reply via email to