Latest snapshot with iodbc 3.51.0 i:
configure:
./configure
--prefix=/usr/local/php5
--sysconfdir=/etc/php
--localstatedir=/var/log/php
--with-config-file-path=/etc/php
--with-apxs2=/usr/local/apache/bin/apxs
--with-zlib-dir=/usr/local/zlib
--with-libxml-dir=/usr/local/libxml
--with-xsl=/usr/local/libxslt
--with-interbase=/usr/local/firebird
--with-iodbc=/usr/local/odbc
--with-db4=/usr/local/berkeley-db
--without-mysql
--without-pear
--with-ftp
--with-dbase
Excerpt from debug.log:
gcc -o
onftest -g -O2 -L/usr/local/berkeley-db/lib -ldb-4.1 -Wl,-rpath,/usr/local
/zlib/lib -L/usr/local/zlib/lib -Wl,-rpath,/usr/local/berkeley-db/lib -L/usr
/local/berkeley-db/lib -Wl,-rpath,/usr/local/libxml/lib -L/usr/local/libxml/
lib -Wl,-rpath,/usr/local/firebird/lib -L/usr/local/firebird/lib -Wl,-rpath,
/usr/local/odbc/lib -L/usr/local/odbc/lib
conftest.c -liodbc -lgds -ldb-4.1 -lz -lresolv -lm -ldl -lnsl -lxml2 -lm -l
iodbc -lxml2 -lm 1>&5
/usr/local/odbc/lib/libiodbc.so: undefined reference to SQLSetConfigMode' /usr/local/odbc/lib/libiodbc.so: undefined reference toSQLGetConfigMode'
/usr/local/odbc/lib/libiodbc.so: undefined reference to
`SQLGetPrivateProfileString'
collect2: ld returned 1 exit status
Whats going on here?
Gr,
John
Both should be defined in your iodbcinst.h file. Please check that.
Latest snapshot with iodbc 3.51.0 i:
configure:
./configure
--prefix=/usr/local/php5
--sysconfdir=/etc/php
--localstatedir=/var/log/php
--with-config-file-path=/etc/php
--with-apxs2=/usr/local/apache/bin/apxs
--with-zlib-dir=/usr/local/zlib
--with-libxml-dir=/usr/local/libxml
--with-xsl=/usr/local/libxslt
--with-interbase=/usr/local/firebird
--with-iodbc=/usr/local/odbc
--with-db4=/usr/local/berkeley-db
--without-mysql
--without-pear
--with-ftp
--with-dbaseExcerpt from debug.log:
gcc -o
onftest -g -O2 -L/usr/local/berkeley-db/lib -ldb-4.1
-Wl,-rpath,/usr/local
/zlib/lib -L/usr/local/zlib/lib -Wl,-rpath,/usr/local/berkeley-db/lib
-L/usr
/local/berkeley-db/lib -Wl,-rpath,/usr/local/libxml/lib
-L/usr/local/libxml/
lib -Wl,-rpath,/usr/local/firebird/lib -L/usr/local/firebird/lib
-Wl,-rpath,
/usr/local/odbc/lib -L/usr/local/odbc/lib
conftest.c -liodbc -lgds -ldb-4.1 -lz -lresolv -lm -ldl -lnsl -lxml2
-lm -l
iodbc -lxml2 -lm 1>&5
/usr/local/odbc/lib/libiodbc.so: undefined reference to
SQLSetConfigMode' /usr/local/odbc/lib/libiodbc.so: undefined reference toSQLGetConfigMode'
/usr/local/odbc/lib/libiodbc.so: undefined reference to
`SQLGetPrivateProfileString'
collect2: ld returned 1 exit statusWhats going on here?
Gr,
John
--
---------------------------------------------------------------<
Dan Kalowsky "I'll walk a thousand miles just
http://www.deadmime.org/~dank to slip this skin."
dank-nom@aps-deadmime.org - "Streets of Philadelphia",
kalowsky@php.net Bruce Springsteen
/usr/local/odbc/lib/libiodbc.so: undefined reference to
SQLSetConfigMode' /usr/local/odbc/lib/libiodbc.so: undefined reference toSQLGetConfigMode'
/usr/local/odbc/lib/libiodbc.so: undefined reference to
`SQLGetPrivateProfileString'
collect2: ld returned 1 exit status
Both should be defined in your iodbcinst.h file. Please check that.
From my iodbcinst.h:
/*
- Function Prototypes
*/
BOOL INSTAPI
SQLGetConfigMode (
UWORD* pwConfigMode);
Others are there too.
Gr,
John
From my iodbcinst.h:
/*
- Function Prototypes
*/BOOL INSTAPI
SQLGetConfigMode (
UWORD* pwConfigMode);Others are there too.
Then your iODBC installtion is somehow not in sync. The functions in
question are specific to iODBC, and not directly called by PHP at any
point. Please try re-installing your iODBC, or open a bug up with
OpenLink SW.
---------------------------------------------------------------<
Dan Kalowsky "I thought you died alone,
http://www.deadmime.org/~dank a long long time ago."
dank-nom@aps-deadmime.org - "The Man Who Sold the World"
kalowsky@php.net David Bowie