compiling latest snapshot with iodbc

php.internals

John Huntjens

23 years ago
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 to `SQLGetConfigMode' /usr/local/odbc/lib/libiodbc.so: undefined reference to `SQLGetPrivateProfileString' collect2: ld returned 1 exit status Whats going on here? Gr, John

Dan Kalowsky

23 years ago
Both should be defined in your iodbcinst.h file. Please check that. On Friday, August 29, 2003, at 11:22 AM, John Huntjens wrote:
> 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 to > `SQLGetConfigMode' > /usr/local/odbc/lib/libiodbc.so: undefined reference to > `SQLGetPrivateProfileString' > collect2: ld returned 1 exit status > > Whats going on here? > > Gr, > > John > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > >---------------------------------------------------------------<
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

John Huntjens

23 years ago
> > /usr/local/odbc/lib/libiodbc.so: undefined reference to
`SQLSetConfigMode'
> > /usr/local/odbc/lib/libiodbc.so: undefined reference to
`SQLGetConfigMode'
> > /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

Dan Kalowsky

23 years ago
On Fri, 29 Aug 2003, John Huntjens wrote:
> >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