php-developer-list | 2001122
Date: 12/20/01
- Next message: michaelh <email protected>: "[PHP-DEV] Bug #14632 Updated: missing -lz symbol in Makefile"
- Previous message: Jani Taskinen: "Re: [PHP-DEV] Apology"
- In reply to: defencer <email protected>: "[PHP-DEV] Bug #14602: Compilation of PHP 4.1.0 with libiodbc 3.0.5 support failed"
- Next in thread: dickmeiss <email protected>: "[PHP-DEV] Bug #14602 Updated: Compilation of PHP 4.1.0 with libiodbc 3.0.5 support failed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ID: 14602
Updated by: ahill
Reported By: defencer <email protected>
Old Status: Open
Status: Analyzed
Bug Type: ODBC related
Operating System: FreeBSD 4.3, RedHat 7.1
PHP Version: 4.1.0
Old Assigned To:
Assigned To: ahill
New Comment:
I was unable to reproduce, using Redhat 7.1, PHP 4.1.0 and libiobc 3.0.5 with the following configure:
./configure \
--with-iodbc=/dbs/openlink/v41/odbcsdk
--with-apache=../apache_1.3.22 \
--enable-track-vars
Previous Comments:
------------------------------------------------------------------------
[2001-12-19 07:55:38] defencer <email protected>
I am unable to compile PHP 4.1.0 with libiodbc 3.0.5
Here is what I did:
____________________________________________________________
$ ls
libiodbc-3.0.5.tar.gz
php-4.1.0.tar.gz
$ tar xzf libiodbc-3.0.5.tar.gz
$ cd libiodbc-3.0.5
$ ./configure --prefix=/home/kan/tmp --disable-shared --disable-gui
.....
$ gmake
.....
$ gmake install
.....
$cd ..
$ tar xzf php-4.1.0.tar.gz
$ cd php-4.1.0
$ ./configure --with-apxs=/usr/local/apache/bin/apxs --with-iodbc=/home/kan/tmp --without-mysql --without-xml
....
$ make
.....
Making all in .
/bin/sh /usr/home/kan/tmp/test/php-4.1.0/libtool --silent --mode=compile gcc -I. -I/usr/home/kan/tmp/test/php-4.1.0/ -I/usr/home/kan/tmp/test/php-4.1.0/main -I/usr/home/kan/tmp/test/php-4.1.0 -I/home/kan/tmp/include -I/usr/local/psa/apache/include -I/usr/home/kan/tmp/test/php-4.1.0/Zend -I/home/kan/tmp/include -DHARD_SERVER_LIMIT=2048 -DDEFAULT_PATH="/usr/local/psa/apache/bin:/bin:/usr/bin" -DMOD_SSL=208105 -DMOD_PERL -DUSE_PERL_SSI -DEAPI -DEAPI_MM -DUSE_EXPAT -I/usr/home/kan/tmp/test/php-4.1.0/TSRM -g -O2 -prefer-pic -c stub.c
/bin/sh /usr/home/kan/tmp/test/php-4.1.0/libtool --silent --mode=link gcc -I. -I/usr/home/kan/tmp/test/php-4.1.0/ -I/usr/home/kan/tmp/test/php-4.1.0/main -I/usr/home/kan/tmp/test/php-4.1.0 -I/home/kan/tmp/include -I/usr/local/psa/apache/include -I/usr/home/kan/tmp/test/php-4.1.0/Zend -I/home/kan/tmp/include -DHARD_SERVER_LIMIT=2048 -DDEFAULT_PATH="/usr/local/psa/apache/bin:/bin:/usr/bin" -DMOD_SSL=208105 -DMOD_PERL -DUSE_PERL_SSI -DEAPI -DEAPI_MM -DUSE_EXPAT -I/usr/home/kan/tmp/test/php-4.1.0/TSRM -g -O2 -prefer-pic -o libphp4.la -rpath /usr/home/kan/tmp/test/php-4.1.0/libs -avoid-version -L/home/kan/tmp/lib -R /home/kan/tmp/lib stub.lo Zend/libZend.la sapi/apache/libsapi.la main/libmain.la regex/libregex.la ext/odbc/libodbc.la ext/pcre/libpcre.la ext/posix/libposix.la ext/session/libsession.la ext/standard/libstandard.la TSRM/libtsrm.la -L/home/kan/tmp/lib -liodbc -lpam -liodbc -lcrypt -lm -lcrypt
Zend/.libs/libZend.al(catalog.o): In function `SQLGetTypeInfo':
/usr/home/kan/tmp/test/libiodbc-3.0.5/iodbc/catalog.c(.text+0xd0): multiple definition of `SQLGetTypeInfo'
Zend/.libs/libZend.al(catalog.o)(.text+0xd0):/usr/home/kan/tmp/test/libiodbc-3.0.5/iodbc/catalog.c: first defined here
Zend/.libs/libZend.al(catalog.o): In function `SQLSpecialColumns':
/usr/home/kan/tmp/test/libiodbc-3.0.5/iodbc/catalog.c(.text+0x2b4): multiple definition of `SQLSpecialColumns'
Zend/.libs/libZend.al(catalog.o)(.text+0x2b4):/usr/home/kan/tmp/test/libiodbc-3.0.5/iodbc/catalog.c: first defined here
Zend/.libs/libZend.al(catalog.o): In function `SQLStatistics':
/usr/home/kan/tmp/test/libiodbc-3.0.5/iodbc/catalog.c(.text+0x5dc): multiple definition of `SQLStatistics'
Zend/.libs/libZend.al(catalog.o)(.text+0x5dc):/usr/home/kan/tmp/test/libiodbc-3.0.5/iodbc/catalog.c: first defined here
Zend/.libs/libZend.al(catalog.o): In function `SQLTables':
/usr/home/kan/tmp/test/libiodbc-3.0.5/iodbc/catalog.c(.text+0x8c4): multiple definition of `SQLTables'
Zend/.libs/libZend.al(catalog.o)(.text+0x8c4):/usr/home/kan/tmp/test/libiodbc-3.0.5/iodbc/catalog.c: first defined here
.....
(many such strings)
......
/home/kan/tmp/lib/libiodbc.a(odbc3.o): In function `SQLBindParam':
/usr/home/kan/tmp/test/libiodbc-3.0.5/iodbc/odbc3.c(.text+0x4484): multiple definition of `SQLBindParam'
Zend/.libs/libZend.al(odbc3.o)(.text+0x4484):/usr/home/kan/tmp/test/libiodbc-3.0.5/iodbc/odbc3.c: first defined here
/home/kan/tmp/lib/libiodbc.a(odbc3.o): In function `SQLCloseCursor':
/usr/home/kan/tmp/test/libiodbc-3.0.5/iodbc/odbc3.c(.text+0x44bc): multiple definition of `SQLCloseCursor'
Zend/.libs/libZend.al(odbc3.o)(.text+0x44bc):/usr/home/kan/tmp/test/libiodbc-3.0.5/iodbc/odbc3.c: first defined here
*** Error code 1
Stop in /usr/home/kan/tmp/test/php-4.1.0.
*** Error code 1
Stop in /usr/home/kan/tmp/test/php-4.1.0.
$
____________________________________________________________
I am supposing that libZend.la library contains libiodbc.a library functions. And in the last compile command both libZend and libiodbc are presents. So conflict with multiply definition somewhere here.
Thanks,
defencer.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=14602&edit=1
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: michaelh <email protected>: "[PHP-DEV] Bug #14632 Updated: missing -lz symbol in Makefile"
- Previous message: Jani Taskinen: "Re: [PHP-DEV] Apology"
- In reply to: defencer <email protected>: "[PHP-DEV] Bug #14602: Compilation of PHP 4.1.0 with libiodbc 3.0.5 support failed"
- Next in thread: dickmeiss <email protected>: "[PHP-DEV] Bug #14602 Updated: Compilation of PHP 4.1.0 with libiodbc 3.0.5 support failed"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

