NetBSD Problem Report #53703

From www@NetBSD.org  Mon Nov  5 22:15:51 2018
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 988CB7A172
	for <gnats-bugs@gnats.NetBSD.org>; Mon,  5 Nov 2018 22:15:51 +0000 (UTC)
Message-Id: <20181105221550.8CB5F7A1CB@mollari.NetBSD.org>
Date: Mon,  5 Nov 2018 22:15:50 +0000 (UTC)
From: bacon@NetBSD.org
Reply-To: bacon@NetBSD.org
To: gnats-bugs@NetBSD.org
Subject: devel/snappy: Fails to link on CentOS 7
X-Send-Pr-Version: www-1.0

>Number:         53703
>Category:       pkg
>Synopsis:       devel/snappy: Fails to link on CentOS 7
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 05 22:20:00 +0000 2018
>Originator:     Jason Bacon
>Release:        pkgsrc-current, 2018-11-05
>Organization:
UWM
>Environment:
Linux centosdev.ceas.uwm.edu 3.10.0-693.11.1.el7.x86_64 #1 SMP Mon Dec 4 23:52:40 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
>Description:

Link fails with missing pthread functions.  The patch below fixes the issue on CentOS and does not adversely affect it on NetBSD 7.1.1.


>How-To-Repeat:
On CentOS 7:

cd devel/snappy
bmake
>Fix:
Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/devel/snappy/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile	27 Aug 2017 09:13:16 -0000	1.12
+++ Makefile	5 Nov 2018 22:07:40 -0000
@@ -15,6 +15,7 @@
 USE_LANGUAGES=		c c++

 CMAKE_ARGS+=	-DBUILD_SHARED_LIBS=ON
+LDFLAGS+=	-lpthread

 .include "../../archivers/lzo/buildlink3.mk"
 .include "../../devel/googletest/buildlink3.mk"
cvs diff: Diffing patches

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.