php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14602 Compilation of PHP 4.1.0 with libiodbc 3.0.5 support failed
Submitted: 2001-12-19 07:55 UTC Modified: 2002-02-04 04:04 UTC
From: defencer at inbox dot ru Assigned: ahill (profile)
Status: Closed Package: ODBC related
PHP Version: 4.1.0 OS: FreeBSD 4.3, RedHat 7.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: defencer at inbox dot ru
New email:
PHP Version: OS:

 

 [2001-12-19 07:55 UTC] defencer at inbox dot ru
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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-20 15:26 UTC] ahill@php.net
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





 [2001-12-20 18:09 UTC] dickmeiss@php.net
This is probably the same as bug id #14616.

-- Adam
 [2002-02-04 04:04 UTC] dickmeiss@php.net
This bug has been fixed in CVS.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu May 02 16:01:29 2024 UTC