NetBSD Problem Report #43516
From cheusov@tut.by Fri Jun 25 16:07:46 2010
Return-Path: <cheusov@tut.by>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 6C8C363BA50
for <gnats-bugs@gnats.netbsd.org>; Fri, 25 Jun 2010 16:07:46 +0000 (UTC)
Message-Id: <s93sk4bm6yb.fsf@centos.imb.invention.com>
Date: Fri, 25 Jun 2010 19:07:40 +0300
From: cheusov@tut.by
To: gnats-bugs@gnats.netbsd.org
Subject: databases/iodbc fails to build [patch]
X-Send-Pr-Version: 3.113.1
X-GNATS-Notify:
>Number: 43516
>Category: pkg
>Synopsis: databases/iodbc fails to build [patch]
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jun 25 16:10:00 +0000 2010
>Closed-Date: Fri Jun 25 22:07:26 +0000 2010
>Last-Modified: Fri Jun 25 22:10:15 +0000 2010
>Originator: Aleksey Cheusov
>Release: Linux 2.6.18-194.el5xen
>Organization:
<organization of PR author (multiple lines)>
>Environment:
System: Linux centos.imb.invention.com 2.6.18-194.el5xen #1 SMP Fri Apr 2 16:16:54 EDT 2010 i686 i686 i386 GNU/Linux
Architecture: i686
>Description:
databases/iodbc fails to build on Linux and Solaris due to incorrect use of
mk/dlopen.buildlink3.mk
libtool: link: gcc -std=gnu99 -Wno-error -DODBCVER=0x0350 -DIODBC_BUILD=7090909 -Wl,-R/usr/pkg/lib -o iodbctest iodbctest.o ../iodbc/.libs/libiodbc.a -L/tmp/obj_pkgsrc/databases/iodbc/work/.buildlink/lib
../iodbc/.libs/libiodbc.a(connect.o): In function `_iodbcdm_CheckDriverLoginDlg':
connect.c:(.text+0xdd): undefined reference to `dlopen'
connect.c:(.text+0xf9): undefined reference to `dlsym'
connect.c:(.text+0x108): undefined reference to `dlclose'
...
>How-To-Repeat:
>Fix:
Patch working on Linux is below.
Additional test on Darwin whould be nice.
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/databases/iodbc/Makefile,v
retrieving revision 1.17
diff -u -r1.17 Makefile
--- Makefile 17 Oct 2009 02:01:50 -0000 1.17
+++ Makefile 25 Jun 2010 16:06:04 -0000
@@ -18,8 +18,8 @@
GNU_CONFIGURE= yes
CONFIGURE_ARGS+= --disable-gui
CONFIGURE_ARGS+= --with-iodbc-inidir=${PKG_SYSCONFDIR}
-LIBADD_DL= ${DL_LDFLAGS} ${DL_LIBS}
-MAKE_FLAGS+= LIBADD_DL=${LIBADD_DL:Q}
+
+DL_AUTO_VARS= yes
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
CONF_FILES= ${EGDIR}/odbc.ini ${PKG_SYSCONFDIR}/odbc.ini
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed
State-Changed-By: wiz@NetBSD.org
State-Changed-When: Fri, 25 Jun 2010 22:07:26 +0000
State-Changed-Why:
Committed, thank you!
From: Thomas Klausner <wiz@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc:
Subject: PR/43516 CVS commit: pkgsrc/databases/iodbc
Date: Fri, 25 Jun 2010 22:06:47 +0000
Module Name: pkgsrc
Committed By: wiz
Date: Fri Jun 25 22:06:47 UTC 2010
Modified Files:
pkgsrc/databases/iodbc: Makefile
Log Message:
Use DL_AUTO_VARS to fix build on Linux. From Aleksey Cheusov in PR 43516.
To generate a diff of this commit:
cvs rdiff -u -r1.17 -r1.18 pkgsrc/databases/iodbc/Makefile
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.