On Thu 21 Jul 2022 at 06:59:13 (-0400), Greg Wooledge wrote:
> > > > /bin/bash ../libtool  --tag=CXX   --mode=link g++ -I../../dbinterface
> > > > -DUNICODE -DUNIXODBC -I`odbc_config --cflags`  -g -O0 -L../dbinterface
> > > > -ldbinterface `odbc_config --libs` -lodbcinst   -o libodbc_lib.la
> > > > -rpath /usr/local/lib libodbc_lib_la-database_odbc.lo
> > > > /bin/bash: line 1: odbc_config: command not found
> > > > /bin/bash: line 1: odbc_config: command not found
> > >
> > > You're missing -lodbc here.  Presumably that should have come from
> > > your backtick command, which obviously failed, because it's not the
> > > correct command substitution for this platform.
> > 
> > Do you mean to say that the backticks are not supported on Debian?
> 
> No.  I'm saying that the command
> 
>     odbc_config --libs
> 
> is not supported on Debian.  Apparently Debian uses a different command
> (pkg-config) for this purpose.
> 
> > Or that there is no odbc_config installed when it should?
> 
> What does "should" mean?
> 
> You seriously need to find the mailing list, web forum, IRC channel,
> Discord server, or WHATEVER it is, where this libodbc thing is supported.
> Ask them how it's supposed to be done.  I've given you my best guesses
> and workarounds.
> 
> If the MAINTAINERS OF LIBODBC ITSELF say that odbc_config is supposed
> to be installed and present, then it's a bug in Debian and you can
> pursue that theough the Bug Tracking System.
> 
> This is the end user mailing list.  Here, you get our best guesses.
> 
> But hey, would you like another workaround?  OK.  Go install a shell
> script named odbc_config in /usr/local/bin and have it print the values
> you need it to print.  I bet the thing on Gentoo is a shell script.
> Just don't have it print the values that Gentoo's script prints.  Have
> it print the correct values for Debian.  They are not the same.

I thought that was what the attached was (actually for Ubuntu AIUI).
As I originally wrote, "As if by magic, […] someone else supplies a copy."

Cheers,
David.
#! /bin/sh

# This shell script saves various pieces of information about the
# installed version of unixODBC. Packages that interface to
# unixODBC can use it to configure their build.
# This file replaces the standard odbc_config, which is not
# relocatable
#
# Author: Alberto Di Meglio <alberto.di.meg...@cern.ch>
# Public domain

me=`basename $0`
mydir=`dirname $0`
mydir=${mydir%/bin}

# stored configuration values
val_prefix="$mydir"
val_bindir="$mydir/bin"
val_includedir="$mydir/include"
val_libdir="$mydir/lib"
val_libs="-L$mydir/lib -lodbc"
val_version='2.2.11'

help="\
$me provides information about the installed version of unixODBC.

Usage:
$me OPTION...

Options:
--prefix show the installation prefix
--exec-prefix show the installation prefix
--bin-prefix show location of user executables
--include-prefix show location of C header files of the client
interfaces
--lib-prefix show location of object code libraries
--libs show link arguments
--version show the unixODBC version, then exit
--help show this help, then exit"

advice="\
Try \"$me --help\" for more information."

if test "$#" -eq 0 ; then
echo "$me: argument required" 1>&2
echo "$advice" 1>&2
exit 1
fi

show=

for opt
do
case "$opt" in
--prefix) show="$show \$val_prefix";;
--exec-prefix) show="$show \$val_prefix";;
--bin-prefix) show="$show \$val_bindir";;
--include-prefix)
show="$show \$val_includedir";;
--lib-prefix) show="$show \$val_libdir";;
--libs) show="$show \$val_libs";;
--configure) show="$show \$val_configure";;

--version) echo "$val_version"
exit 0;;
--help|-\?) echo "$help"
exit 0;;
*) echo "$me: invalid argument: $opt" 1>&2
echo "$advice" 1>&2
exit 1;;
esac
done

for thing in $show
do
eval "echo $thing"
done

# end of odbc_config

Reply via email to