pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/43516: databases/iodbc fails to build [patch]



>Number:         43516
>Category:       pkg
>Synopsis:       databases/iodbc fails to build [patch]
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Jun 25 16:10:00 +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'
   ...

>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



Home | Main Index | Thread Index | Old Index