Re: odbc_config missing
Hi,
On Wed, Jul 20, 2022 at 7:55 PM Greg Wooledge <greg@wooledge.org> wrote:
>
> On Wed, Jul 20, 2022 at 07:46:43PM -0500, Igor Korot wrote:
> > On Wed, Jul 20, 2022 at 7:28 PM Greg Wooledge <greg@wooledge.org> wrote:
> > > Can you show us the linker command that you ran, and its error message?
> >
> > This is the command generated on Gentoo:
>
> How is that relevant to DEBIAN?
Because I'm comparing the output of 2 "-config" files.
I sent the output the Debian generated. Sorry for the delay.
Debian is set on the VM.
>
> > [code]
> > /bin/sh ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I.
> > -I/home/igor/dbhandler/libodbc -I.. -I../../dbinterface -DUNICODE
> > -DUNIXODBC -I`odbc_config --cflags` -g -O0 -MT
> [...]
>
> That's all noise as far as Debian is concerned.
>
> > with the following Makefile.am:
> >
> > [code]
> > ## Process this file with automake to produce Makefile.in
> >
> >
> > lib_LTLIBRARIES = \
> > libodbc_lib.la
> >
> > libodbc_lib_la_SOURCES = \
> > database_odbc.cpp \
> > database_odbc.h
> >
> > libodbc_lib_la_CXXFLAGS = -I../../dbinterface \
> > -DUNICODE \
> > -DUNIXODBC \
> > -I`odbc_config \
> > --cflags`
> >
> > libodbc_lib_la_LDFLAGS = -L../dbinterface \
> > -ldbinterface \
> > `odbc_config \
> > --libs` \
> > -lodbcinst
> > [/code]
>
> It looks like you've made some false assumptions about this library.
> Apparently it has different linker options and library filenames on
> different platforms, and moreover, different *means of learning those
> names*.
Don't make any presumption.
Just check what Debian is generating.
>
> Sounds like a real bitch to work with. Oh right, it's ODBC, so it's
> always going to be horrible, isn't it.
Why?
It's still going to be libodbc.so and libodbcinst.so, isn't it?
Thank you.
>
> Good luck!
>
Reply to: