# compiling latest snapshot with iodbc

- Thread: https://externals.io/message/4244
- Original archive: https://news-web.php.net/php.internals/4244
- Started by John Huntjens on 2003-08-29T15:22:59+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #4244 — John Huntjens — 2003-08-29T15:22:59+00:00

URL: https://externals.io/message/4244#4244

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

---

## #4245 — Dan Kalowsky — 2003-08-29T16:09:00+00:00

URL: https://externals.io/message/4244#4245 · In reply to: #4244

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-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                    "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

---

## #4248 — John Huntjens — 2003-08-29T17:11:56+00:00

URL: https://externals.io/message/4244#4248 · In reply to: #4245

> > […]
`SQLSetConfigMode'
> > […]
`SQLGetConfigMode'
> > […]
`SQLGetPrivateProfileString'
> > […]

> 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

---

## #4251 — Dan Kalowsky — 2003-08-29T18:29:29+00:00

URL: https://externals.io/message/4244#4251 · In reply to: #4248

> > […]
>
> /*
>  *  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
