ports/119016: [patch] security/dirmngr does not build
José García Juanino
jjuanino at gmail.com
Tue Dec 25 22:30:02 UTC 2007
>Number: 119016
>Category: ports
>Synopsis: [patch] security/dirmngr does not build
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Dec 25 22:30:02 UTC 2007
>Closed-Date:
>Last-Modified:
>Originator: José García Juanino
>Release: 6.2-RELEASE-p9
>Organization:
>Environment:
FreeBSD sanabria.inad.es 6.2-RELEASE-p9 FreeBSD 6.2-RELEASE-p9 #1: Sun Dec 2 00:02:12 CET 2007 root at sanabria.inad.es:/export/FreeBSD/obj/export/FreeBSD/src/sys/MK2007Jun29 i386
>Description:
Building the last 1.0.1 security/dirmngr port I have got the following error (linking dirmngr executable):
./jnlib/libjnlib.a(utf8conv.o)(.text+0x689): In function `do_utf8_to_native':
: undefined reference to `libiconv_open'
./jnlib/libjnlib.a(utf8conv.o)(.text+0x6ee): In function `do_utf8_to_native':
: undefined reference to `libiconv'
./jnlib/libjnlib.a(utf8conv.o)(.text+0x70a): In function `do_utf8_to_native':
: undefined reference to `libiconv_close'
./jnlib/libjnlib.a(utf8conv.o)(.text+0x846): In function `native_to_utf8':
: undefined reference to `libiconv_open'
./jnlib/libjnlib.a(utf8conv.o)(.text+0x8c6): In function `native_to_utf8':
: undefined reference to `libiconv'
./jnlib/libjnlib.a(utf8conv.o)(.text+0x8db): In function `native_to_utf8':
: undefined reference to `libiconv_close'
./jnlib/libjnlib.a(utf8conv.o)(.text+0xc43): In function `set_native_charset':
: undefined reference to `libiconv_open'
./jnlib/libjnlib.a(utf8conv.o)(.text+0xc50): In function `set_native_charset':
: undefined reference to `libiconv_close'
./jnlib/libjnlib.a(utf8conv.o)(.text+0xc60): In function `set_native_charset':
: undefined reference to `libiconv_open'
./jnlib/libjnlib.a(utf8conv.o)(.text+0xc6d): In function `set_native_charset':
: undefined reference to `libiconv_close'
./jnlib/libjnlib.a(utf8conv.o)(.text+0x25): In function `jnlib_iconv_close':
: undefined reference to `libiconv_close'
./jnlib/libjnlib.a(utf8conv.o)(.text+0x35): In function `jnlib_iconv':
: undefined reference to `libiconv'
./jnlib/libjnlib.a(utf8conv.o)(.text+0x45): In function `jnlib_iconv_open':
: undefined reference to `libiconv_open'
The same ocurrs on 7.0-BETA4
>How-To-Repeat:
Build the last security/dirmngr port (version 1.0.1)
>Fix:
Apply the attached patch and build again the port:
# cd /usr/ports/security/dirmngr
# patch -p1 < patch_dirmngr.txt
# make
Patch attached with submission follows:
diff -uNr dirmngr.orig/Makefile dirmngr/Makefile
--- dirmngr.orig/Makefile 2007-12-25 22:47:08.643937278 +0100
+++ dirmngr/Makefile 2007-12-25 22:47:27.817827772 +0100
@@ -28,6 +28,7 @@
INFO= dirmngr
MAN1= dirmngr-client.1 dirmngr.1
+USE_AUTOTOOLS= automake:110
CONFIGURE_ENV+= LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib"
.if defined(WITHOUT_NLS)
diff -uNr dirmngr.orig/files/patch-src_Makefile.am dirmngr/files/patch-src_Makefile.am
--- dirmngr.orig/files/patch-src_Makefile.am 1970-01-01 01:00:00.000000000 +0100
+++ dirmngr/files/patch-src_Makefile.am 2007-12-25 22:48:04.064193303 +0100
@@ -0,0 +1,24 @@
+--- src/Makefile.am.orig Tue Dec 25 22:43:49 2007
++++ src/Makefile.am Tue Dec 25 22:44:12 2007
+@@ -47,7 +47,7 @@
+ validate.c validate.h exechelp.h exechelp.c get-path.c
+
+ dirmngr_LDADD = ../jnlib/libjnlib.a $(LIBOBJS) $(LIBASSUAN_PTH_LIBS) \
+- $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(PTH_LIBS) $(LIBINTL)
++ $(LIBGCRYPT_LIBS) $(KSBA_LIBS) $(PTH_LIBS) $(LIBINTL) $(LIBICONV)
+
+ if HAVE_W32_SYSTEM
+ ldap_url = ldap-url.h ldap-url.c
+@@ -60,10 +60,10 @@
+ dirmngr_ldap_CFLAGS = $(GPG_ERROR_CFLAGS)
+ dirmngr_ldap_LDFLAGS =
+ dirmngr_ldap_LDADD = $(ldap_ldadd) ../jnlib/libjnlib.a $(LIBOBJS) \
+- $(GPG_ERROR_LIBS) $(LDAPLIBS) $(LIBINTL)
++ $(GPG_ERROR_LIBS) $(LDAPLIBS) $(LIBINTL) $(LIBICONV)
+
+ dirmngr_client_SOURCES = dirmngr-client.c i18n.h util.h b64enc.c \
+ get-path.c no-libgcrypt.c no-libgcrypt.h
+ dirmngr_client_LDADD = ../jnlib/libjnlib.a $(LIBOBJS) $(LIBASSUAN_LIBS) \
+- $(GPG_ERROR_LIBS) $(LIBINTL)
++ $(GPG_ERROR_LIBS) $(LIBINTL) $(LIBICONV)
+
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list