| From: | "Inoue, Hiroshi" <inoue(at)tpf(dot)co(dot)jp> |
|---|---|
| To: | Pavel Raiskup <praiskup(at)redhat(dot)com>, "pgsql-odbc(at)postgresql(dot)org" <pgsql-odbc(at)postgresql(dot)org> |
| Cc: | hhorak(at)redhat(dot)com |
| Subject: | Re: Is the linking with -lodbc necessary? (--with-odbc) |
| Date: | 2013-11-12 09:02:44 |
| Message-ID: | 5281EEB4.5030304@tpf.co.jp |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-odbc |
Hi Pavel,
(2013/11/12 2:50), Pavel Raiskup wrote:
> Hello all!
>
> Long story short: Is there a need to link psqlodbcw.so plugin against
> libodbc.so? Principal problem: That library provides ABI for applications
> - not for plugins; at least it seem to be like that.
>
> I tried to remove this linking by following tweak:
>
> | diff --git a/configure.ac b/configure.ac
> | index 5fb401e..5d75db3 100644
> | --- a/configure.ac
> | +++ b/configure.ac
> | @@ -65,7 +65,7 @@ fi
> | # ODBC include and library
> | #
> |
> | -if test "$ODBC_CONFIG" != ""; then
> | +if false; then
> | if test "$with_iodbc" != no; then
> | ODBC_INCLUDE=`${ODBC_CONFIG} --cflags`
> | CPPFLAGS="$CPPFLAGS ${ODBC_INCLUDE}"
>
> And both unixODBC and psqlodbcw.so communicates with each other correctly
> at the first sight.
Seems -lodbcinst is really necessary not -lodbc.
Could you please try the attached patch for the current git?
regards,
Hiroshi Inoue
| Attachment | Content-Type | Size |
|---|---|---|
| configac.patch | text/x-patch | 687 bytes |
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Pavel Raiskup | 2013-11-12 13:14:16 | Re: Is the linking with -lodbc necessary? (--with-odbc) |
| Previous Message | Pavel Raiskup | 2013-11-11 17:50:11 | Is the linking with -lodbc necessary? (--with-odbc) |