NetBSD Problem Report #33147

From www@netbsd.org  Sat Mar 25 01:31:03 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
	id ED8C363B90D; Sat, 25 Mar 2006 01:31:02 +0000 (UTC)
Message-Id: <20060325013102.ED8C363B90D@narn.netbsd.org>
Date: Sat, 25 Mar 2006 01:31:02 +0000 (UTC)
From: oshima-ya@yagoto-urayama.jp
Reply-To: oshima-ya@yagoto-urayama.jp
To: gnats-bugs@netbsd.org
Subject: pkgsrc/myodbc does not use iODBC
X-Send-Pr-Version: www-1.0

>Number:         33147
>Category:       pkg
>Synopsis:       pkgsrc/myodbc does not use iODBC
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 25 01:35:00 +0000 2006
>Closed-Date:    Sun Jan 14 12:34:11 +0000 2007
>Last-Modified:  Sun Jan 14 12:34:11 +0000 2007
>Originator:     Yasushi Oshima
>Release:        NetBSD 3.99.17
>Organization:
>Environment:
NetBSD 3.99.17 amd64
>Description:
When make pkgsrc/databases/myodbc with no PKG_OPTIONS.myodbc - it is the same as 'PKG_OPTIONS.myodbc=myodbc-iodbc', the result of configure shows as follows:

ODBC DRIVER MANAGER CONFIGURATION - LIBRARIES AND HEADERS
checking for isql... no
checking for unixODBC version... unknown
checking sql.h usability... yes
checking sql.h presence... yes
checking for sql.h... yes
checking sqlext.h usability... yes
checking sqlext.h presence... yes
checking for sqlext.h... yes
checking sqltypes.h usability... yes
checking sqltypes.h presence... yes
checking for sqltypes.h... yes
checking odbcinst.h usability... yes
checking odbcinst.h presence... yes
checking for odbcinst.h... yes
checking for SQLGetPrivateProfileString in -lodbcinst... no
   :

It is not correct when using iODBC.

>How-To-Repeat:
make configure in pkgsrc/databases/myodbc

>Fix:
See --help usage of myodbc's configure,
  --with-iODBC=DIR        Use iODBC located in DIR

it is not '--with-iodbc'.

Patch:

diff -u -r1.1 options.mk
--- options.mk  23 Jan 2006 18:53:45 -0000      1.1
+++ options.mk  25 Mar 2006 01:06:45 -0000
@@ -21,7 +21,7 @@

 .if !empty(PKG_OPTIONS:Mmyodbc-iodbc)
 .  include "../../databases/iodbc/buildlink3.mk"
-CONFIGURE_ARGS+=       --with-iodbc=${BUILDLINK_PREFIX.iodbc}
+CONFIGURE_ARGS+=       --with-iODBC=${BUILDLINK_PREFIX.iodbc}
 CONFIGURE_ARGS+=       --with-odbc-ini=${PKG_SYSCONFDIR.iodbc}/odbc.ini
 .endif

Results of configure:
ODBC DRIVER MANAGER CONFIGURATION - LIBRARIES AND HEADERS
checking for iodbc-config... /usr/pkg/bin/iodbc-config
checking for iodbc version... 3.52.3
checking isql.h usability... yes
checking isql.h presence... yes
checking for isql.h... yes
checking isqlext.h usability... yes
checking isqlext.h presence... yes
checking for isqlext.h... yes
checking isqltypes.h usability... yes
checking isqltypes.h presence... yes
checking for isqltypes.h... yes
checking iodbcinst.h usability... yes
checking iodbcinst.h presence... yes
checking for iodbcinst.h... yes
checking for _iodbcdm_admin_dialbox in -liodbcadm... no
checking for SQLGetPrivateProfileString in -liodbcinst... yes
  :


>Release-Note:

>Audit-Trail:
From: OBATA Akio <obache@netbsd.org>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: PR/33147 CVS commit: pkgsrc/databases/myodbc
Date: Sun, 14 Jan 2007 12:28:56 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	obache
 Date:		Sun Jan 14 12:28:56 UTC 2007

 Modified Files:
 	pkgsrc/databases/myodbc: Makefile options.mk

 Log Message:
 Fix CONFIGURE option to pick up iODBC driver (default option) correctly.
 Pointed out by Yasushi Oshima in PR 33147.

 Bump PKGREVISION.


 To generate a diff of this commit:
 cvs rdiff -r1.15 -r1.16 pkgsrc/databases/myodbc/Makefile
 cvs rdiff -r1.2 -r1.3 pkgsrc/databases/myodbc/options.mk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

State-Changed-From-To: open->closed
State-Changed-By: obache@netbsd.org
State-Changed-When: Sun, 14 Jan 2007 12:34:11 +0000
State-Changed-Why:
Fix commited.  Thanks for your PR!


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.