Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Mar 2012 06:47:22 GMT
From:      Kuan-Chung Chiu <buganini@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/166136: [patch] databases/freetds-devel properly link tds module with libiconv
Message-ID:  <201203150647.q2F6lMdE056639@red.freebsd.org>
Resent-Message-ID: <201203150650.q2F6o03m079978@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         166136
>Category:       ports
>Synopsis:       [patch] databases/freetds-devel properly link tds module with libiconv
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 15 06:50:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Kuan-Chung Chiu
>Release:        
>Organization:
N/A
>Environment:
>Description:
pyodbc+freetds terminates with:
/usr/local/lib/libtdsodbc.so: Undefined symbol "libiconv_open"
>How-To-Repeat:

>Fix:
link libtdsodbc.so with libiconv

Patch attached with submission follows:

diff -ruN freetds-devel.orig/Makefile freetds-devel/Makefile
--- freetds-devel.orig/Makefile	2012-02-06 20:25:48.000000000 +0800
+++ freetds-devel/Makefile	2012-03-15 14:43:01.790590432 +0800
@@ -6,7 +6,7 @@
 
 PORTNAME=	freetds
 PORTVERSION=	0.91
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	1
 CATEGORIES=	databases
 MASTER_SITES=	${MASTER_SITE_SUNSITE}
diff -ruN freetds-devel.orig/files/patch-src-tds-Makefile freetds-devel/files/patch-src-tds-Makefile
--- freetds-devel.orig/files/patch-src-tds-Makefile	1970-01-01 08:00:00.000000000 +0800
+++ freetds-devel/files/patch-src-tds-Makefile	2012-03-15 14:39:06.443595370 +0800
@@ -0,0 +1,11 @@
+--- src/tds/Makefile.in.orig	2012-03-15 14:36:30.297611037 +0800
++++ src/tds/Makefile.in	2012-03-15 14:36:40.297604738 +0800
+@@ -189,7 +189,7 @@
+ LIBADD_SHL_LOAD = @LIBADD_SHL_LOAD@
+ LIBICONV = @LIBICONV@
+ LIBOBJS = @LIBOBJS@
+-LIBS = @LIBS@
++LIBS = @LIBS@ -liconv
+ LIBTOOL = @LIBTOOL@
+ LIPO = @LIPO@
+ LN_S = @LN_S@


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201203150647.q2F6lMdE056639>