Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bugzilla DB migration completed. Please report issues to Infra team via email via or IRC
Bug 487176 - =dev-db/freetds-0.91 - Add a runtime dependency on net-dns/bind-tools - /usr/bin/osql: line 339: host: command not found
Summary: =dev-db/freetds-0.91 - Add a runtime dependency on net-dns/bind-tools - /usr/...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on:
Reported: 2013-10-07 04:00 UTC by henning.f
Modified: 2016-07-31 03:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description henning.f 2013-10-07 04:00:25 UTC
The osql command uses host to resolve hostnames.

Reproducible: Always

gentoo ~ # osql -S Server -U User -P TestPassword
checking shared odbc libraries linked to isql for default directories...
strings: '': No such file
	trying /tmp ... no
	trying /sql ... no
	trying /tmp ... no
	trying /sql ... no
	trying /etc ... no
	trying /uni ... no
	trying /tmp/sql.log ... no
	trying /home ... no
	trying /.odbc.ini ... no
	trying /etc/unixODBC ... OK
checking odbc.ini files
	reading /root/.odbc.ini
[Server] found in /root/.odbc.ini
found this section:
	Driver = FreeTDS
	Server =
	TDS_Version = 7.2
	Port = 1433
	Database = Example
looking for driver for DSN [Server] in /root/.odbc.ini
  found driver line: "	Driver = FreeTDS"
  driver "FreeTDS" found for [Server] in .odbc.ini
found driver named "FreeTDS"
"FreeTDS" is not an executable file
looking for entry named [FreeTDS] in /etc/unixODBC/odbcinst.ini
  found driver line: "	Driver = /usr/lib/"
  found driver /usr/lib/ for [FreeTDS] in odbcinst.ini
/usr/lib/ is an executable file
"Server" found, not using freetds.conf
Server is ""
looking up hostname for ip address
/usr/bin/osql: line 339: host: command not found
osql: warning: no DNS hostname found for ""
/usr/bin/osql: line 348: host: command not found
osql: no IP address found for ""
gentoo ~ # host
bash: host: command not found
Comment 1 Michael Orlitzky gentoo-dev 2016-07-31 03:24:49 UTC
Thanks for the report! I've fixed this.

commit 687155c48b374959c4be6171ed1807ee72924612
Author: Michael Orlitzky <>
Date:   Sat Jul 30 23:08:24 2016 -0400

    dev-db/freetds: new version 1.00.13.

    This new version fixes some bugs and adds a few new features. At some
    point, the upstream project added support for compiling with
    -Werror=format-security, so that takes care of our bug 521270.

    The ebuild now has support for GnuTLS, OpenSSL/LibreSSL (bug 490554),
    and iconv. These were all present upstream, but missing from the
    ebuild until now. It also adds a runtime dependency on bind-tools,
    which is used by the "osql" script (bug 487176).

    Gentoo-Bug: 487176
    Gentoo-Bug: 490554
    Gentoo-Bug: 521270

    Package-Manager: portage-2.2.28

 dev-db/freetds/Manifest               |  1 +
 dev-db/freetds/freetds-1.00.13.ebuild | 73 +++++++++++++++++++++++++++++++++++
 2 files changed, 74 insertions(+)