NetBSD Problem Report #39640

From tonnerre@bsdprojects.net  Sat Sep 27 23:02:41 2008
Return-Path: <tonnerre@bsdprojects.net>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 50EBC63B884
	for <gnats-bugs@gnats.NetBSD.org>; Sat, 27 Sep 2008 23:02:41 +0000 (UTC)
Message-Id: <20080927230238.241E129979@planck.ngas.ch>
Date: Sun, 28 Sep 2008 01:02:38 +0200 (CEST)
From: tonnerre@NetBSD.org
Reply-To: tonnerre@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: gnutls exports strverscmp(), breaking various builds
X-Send-Pr-Version: 3.95

>Number:         39640
>Category:       pkg
>Synopsis:       gnutls exports strverscmp(), breaking various builds
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    tonnerre
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Sep 27 23:05:00 +0000 2008
>Closed-Date:    Sat Sep 27 23:16:21 +0000 2008
>Last-Modified:  Sun Sep 28 00:45:01 +0000 2008
>Originator:     Tonnerre Lombard
>Release:        NetBSD 4.0_wrstuden_fixsa_t1
>Organization:
The NetBSD Foundation
>Environment:
System: NetBSD planck.pas-un-geek-en-tant-que-tel.ch 4.0_wrstuden_fixsa_t1 NetBSD 4.0_wrstuden_fixsa_t1 (GENERIC) #0: Thu Jun 19 18:34:41 CEST 2008 tonnerre@planck.pas-un-geek-en-tant-que-tel.ch:/usr/fixsasrc/sys/arch/amd64/compile/obj/GENERIC amd64
Architecture: x86_64
Machine: amd64
>Description:
	Trying to link against libgnutls/libcurl/... and trying to use
	strverscmp at the same time can lead to various funny problems.
	The reason for this is that libgnutls exports strverscmp().
>How-To-Repeat:
	$ nm -a /usr/pkg/lib/libgnutls.so.26.4.5 | grep strverscmp
	0000000000055280 T strverscmp
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/security/gnutls/Makefile,v
retrieving revision 1.71
diff -u -u -r1.71 Makefile
--- Makefile	30 Jul 2008 17:17:21 -0000	1.71
+++ Makefile	27 Sep 2008 23:01:13 -0000
@@ -1,6 +1,7 @@
 # $NetBSD: Makefile,v 1.71 2008/07/30 17:17:21 kefren Exp $

 DISTNAME=	gnutls-2.4.1
+PKGREVISION=	1
 CATEGORIES=	security devel
 MASTER_SITES=	http://josefsson.org/gnutls/releases/ \
 		ftp://ftp.gnutls.org/pub/gnutls/ \
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/security/gnutls/distinfo,v
retrieving revision 1.45
diff -u -u -r1.45 distinfo
--- distinfo	30 Jul 2008 17:17:21 -0000	1.45
+++ distinfo	27 Sep 2008 23:01:13 -0000
@@ -5,5 +5,7 @@
 Size (gnutls-2.4.1.tar.bz2) = 4940118 bytes
 SHA1 (patch-aa) = b2024cb515196e64efcdbba227f05db9eb07c236
 SHA1 (patch-ab) = d30748128877d2ec5942d2b852f23a05d36102d0
+SHA1 (patch-ac) = 21f2ab373a888aadeb66d58b70e54bab4c3be7eb
+SHA1 (patch-ad) = 720d096d95a4d76aedaa13606ad4bee7872da5b0
 SHA1 (patch-ae) = f505476ce0477dc547e8698d205d6ba26fe85f48
 SHA1 (patch-af) = bd4701640dfef5bfdce87d620befd93098b0dff3
Index: patches/patch-ac
===================================================================
RCS file: patches/patch-ac
diff -N patches/patch-ac
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-ac	27 Sep 2008 23:01:13 -0000
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- lgl/strverscmp.c.orig	2008-06-19 12:00:10.000000000 +0200
++++ lgl/strverscmp.c
+@@ -58,7 +58,7 @@
+ */
+ 
+ int
+-__strverscmp (const char *s1, const char *s2)
++gnutls_strverscmp (const char *s1, const char *s2)
+ {
+   const unsigned char *p1 = (const unsigned char *) s1;
+   const unsigned char *p2 = (const unsigned char *) s2;
Index: patches/patch-ad
===================================================================
RCS file: patches/patch-ad
diff -N patches/patch-ad
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ patches/patch-ad	27 Sep 2008 23:01:13 -0000
@@ -0,0 +1,17 @@
+$NetBSD$
+
+--- lgl/strverscmp.h.orig	2008-06-19 12:00:10.000000000 +0200
++++ lgl/strverscmp.h
+@@ -19,6 +19,12 @@
+ #ifndef STRVERSCMP_H_
+ # define STRVERSCMP_H_
+ 
++#ifdef HAVE_STRVERSCMP
+ int strverscmp (const char *, const char *);
++#else
++int gnutls_strverscmp (const char *, const char *);
++#define __strverscmp gnutls_strverscmp
++#define strverscmp gnutls_strverscmp
++#endif
+ 
+ #endif /* not STRVERSCMP_H_ */

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->tonnerre
Responsible-Changed-By: tonnerre@NetBSD.org
Responsible-Changed-When: Sat, 27 Sep 2008 23:07:50 +0000
Responsible-Changed-Why:
Over to reporter.


From: Tonnerre Lombard <tonnerre@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/39640 CVS commit: pkgsrc/security/gnutls
Date: Sat, 27 Sep 2008 23:11:37 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tonnerre
 Date:		Sat Sep 27 23:11:37 UTC 2008

 Modified Files:
 	pkgsrc/security/gnutls: Makefile distinfo
 Added Files:
 	pkgsrc/security/gnutls/patches: patch-ac patch-ad

 Log Message:
 If strverscmp() is not present, gnutls shouldn't export a symbol of the
 same name, breaking the builds of libraries trying to both link against
 libcurl and use strverscmp(). Bump PKGREVISION.

 Fixes PR 39640.


 To generate a diff of this commit:
 cvs rdiff -r1.71 -r1.72 pkgsrc/security/gnutls/Makefile
 cvs rdiff -r1.45 -r1.46 pkgsrc/security/gnutls/distinfo
 cvs rdiff -r0 -r1.7 pkgsrc/security/gnutls/patches/patch-ac
 cvs rdiff -r0 -r1.4 pkgsrc/security/gnutls/patches/patch-ad

 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: tonnerre@NetBSD.org
State-Changed-When: Sat, 27 Sep 2008 23:16:21 +0000
State-Changed-Why:
Confirmed to work via internal communication.


From: Tonnerre Lombard <tonnerre@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/39640 CVS commit: pkgsrc/devel/libidn
Date: Sun, 28 Sep 2008 00:43:39 +0000 (UTC)

 Module Name:	pkgsrc
 Committed By:	tonnerre
 Date:		Sun Sep 28 00:43:39 UTC 2008

 Modified Files:
 	pkgsrc/devel/libidn: Makefile distinfo
 Added Files:
 	pkgsrc/devel/libidn/patches: patch-ab patch-ac patch-ad

 Log Message:
 If strverscmp() is not present, libidn shouldn't export a symbol of the
 same name, breaking the builds of libraries trying to both link against
 libidn and use strverscmp(). Bump PKGREVISION.

 Related to PR 39640.


 To generate a diff of this commit:
 cvs rdiff -r1.57 -r1.58 pkgsrc/devel/libidn/Makefile
 cvs rdiff -r1.37 -r1.38 pkgsrc/devel/libidn/distinfo
 cvs rdiff -r0 -r1.1 pkgsrc/devel/libidn/patches/patch-ab \
     pkgsrc/devel/libidn/patches/patch-ac pkgsrc/devel/libidn/patches/patch-ad

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

>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.