Skip to Content.
Sympa Menu

freetds - Re: [freetds] Failure to build on OSX

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: Frediano Ziglio <freddy77 AT gmail.com>
  • To: FreeTDS Development Group <freetds AT lists.ibiblio.org>
  • Subject: Re: [freetds] Failure to build on OSX
  • Date: Fri, 20 Nov 2020 08:38:34 +0000

Il giorno ven 20 nov 2020 alle ore 07:37 Igor Korot <ikorot01 AT gmail.com> ha
scritto:

> Hi, (Frediano),
> I am trying to build freeTDS latest release on OSX 10.13 with the ODBC
> driver.
>
> I installed latest iODBC DM and then tried building.
>
> The log is below:
>
> [code]
> Igors-MacBook-Air:freetds igorkorot$ ./configure --enable-odbc
> --enable-debug --enable-odbc-wide --with-iodbc && make
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for a thread-safe mkdir -p... ./install-sh -c -d
> checking for gawk... no
> checking for mawk... no
> checking for nawk... no
> checking for awk... awk
> checking whether make sets $(MAKE)... yes
> checking whether make supports nested variables... yes
> checking whether make supports nested variables... (cached) yes
> checking for gawk... (cached) awk
> checking for grep that handles long lines and -e... /usr/bin/grep
> checking whether ln -s works... yes
> checking for a sed that does not truncate output... /usr/bin/sed
> checking for pkg-config... no
>

That's not expected. Weird on a new system, but maybe is just that I have
Brew installed.


> checking build system type... x86_64-apple-darwin17.7.0
> checking host system type... x86_64-apple-darwin17.7.0
> checking whether make supports the include directive... yes (GNU style)
> checking for gcc... gcc
>

... omissis ...

checking compile-time options
> checking for IODBC... no
> configure: error: in `/Users/igorkorot/freetds':
> configure: error: The pkg-config script could not be found or is too
> old. Make sure it
> is in your PATH or set the PKG_CONFIG environment variable to the full
> path to pkg-config.
>

That is the result of not founding pkg-config previously


> Alternatively, you may set the environment variables IODBC_CFLAGS
> and IODBC_LIBS to avoid the need to call pkg-config.
>

That's a workaround. Or you could try using --with-idobc=<directory>
instead.

In configure.ac:

# The user asked for iodbc support, but didn't tell us
# where to look. So, we'll try to get the info from
# pkg-config. If we can't, we'll display an error.
PKG_CHECK_MODULES(IODBC, libiodbc)

so the configure it's behaving as expected (although it could try a bit
harder).


> See the pkg-config man page for more details.
>
> To get pkg-config, see <http://pkg-config.freedesktop.org/>.
> See `config.log' for more details
> Igors-MacBook-Air:freetds igorkorot$
> [/code]
>
> I can successfully run the iODBC GUI.
>
> So what is going on?
>
> Thank you.
>

I'll check my MacOS to see where pkg-config is and where the include files
are.

Frediano




Archive powered by MHonArc 2.6.24.

Top of Page