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:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Nov 05 22:20:00 +0000 2018
>Closed-Date:    Sat Feb 01 03:11:46 +0000 2020
>Last-Modified:  Sat Feb 01 03:11:46 +0000 2020
>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

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: maya@NetBSD.org
State-Changed-When: Sat, 07 Sep 2019 12:33:28 +0000
State-Changed-Why:
Are you still having issues with this package? I can build it on CentOS 7.
-lpthread in general is a problematic choice, since some OSes don't have a libpthread.so (freebsd for example).


State-Changed-From-To: feedback->closed
State-Changed-By: jnemeth@NetBSD.org
State-Changed-When: Sat, 01 Feb 2020 03:11:46 +0000
State-Changed-Why:
Added misdirected response.  Submitter reports problem fixed.


>Unformatted:


 Message-Id: <b0beb6ad-2a9a-ba39-3a35-1719fed8f6fc@yahoo.com>
 Date: Mon, 20 Jan 2020 08:51:34 -0600
 From: Jason Bacon <outpaddling@yahoo.com>
 References: <b0beb6ad-2a9a-ba39-3a35-1719fed8f6fc.ref@yahoo.com>

  Somehow I didn't get your reply from September. :-/

  It's building fine now.

  And BTW...

  FreeBSD coral.acadix	 bacon ~ 995: ls -l /usr/lib/libpthread.so
  lrwxr-xr-x	 1 root	 wheel	 9 Dec	 6, 2018 /usr/lib/libpthread.so@ ->
  libthr.so

  Thanks,
  JB

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.