Subject: xsrc/28832: local/programs/{x11-ssh-askpass,xsystrace} want -lpthread to link
To: None <xsrc-manager@netbsd.org, gnats-admin@netbsd.org,>
From: S.P.Zeidler <spz@volans.1st.de>
List: netbsd-bugs
Date: 01/01/2005 20:51:00
>Number: 28832
>Category: xsrc
>Synopsis: local/programs/{x11-ssh-askpass,xsystrace} missing -lpthread to link
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: xsrc-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sat Jan 01 20:51:00 +0000 2005
>Originator: S.P.Zeidler
>Release: NetBSD 2.99.10
>Organization:
dis-
>Environment:
System: NetBSD volans.1st.de 2.99.10 NetBSD 2.99.10 (VOLANS) #21: Sun Dec 5 16:58:51 CET 2004 spz@volans.1st.de:/sys/arch/i386/compile/VOLANS i386
Architecture: i386
Machine: i386
>Description:
local/programs/{x11-ssh-askpass,xsystrace} fail linking due to
missing -lpthread
>How-To-Repeat:
cd xsrc; make
>Fix:
I snuck in EXTRA_LIBRARIES = -lpthread into the Imakefiles,
but I'm not certain that's the appropriate place to put it.
Problem with xsrc is there are so many locations to choose from :)
--- local/programs/x11-ssh-askpass/Imakefile 14 Jun 2004 16:03:03 -0000 1.5
+++ local/programs/x11-ssh-askpass/Imakefile 1 Jan 2005 20:44:16 -0000
@@ -55,6 +55,7 @@
DEPLIBS = $(DEPXTOOLLIB) $(DEPXLIB)
LOCAL_LIBRARIES = $(XTOOLLIB) $(XLIB)
+EXTRA_LIBRARIES = -lpthread
#ifndef ComplexProgramTargetNoMan
#define ComplexProgramTargetNoMan(x) ComplexProgramTarget(x)
--- local/programs/xsystrace/Imakefile 17 Jun 2002 16:35:17 -0000 1.1
+++ local/programs/xsystrace/Imakefile 1 Jan 2005 20:44:56 -0000
@@ -9,6 +9,7 @@
DEPLIBS = XawClientDepLibs XkbClientDepLibs
LOCAL_LIBRARIES = XawClientLibs XkbClientLibs
+EXTRA_LIBRARIES = -lpthread
SRCS = callbacks.c interface.c main.c
OBJS = callbacks.o interface.o main.o
HEADERS = callbacks.h interface.h