Subject: pkg/19440: chat/ysm does not build; does not find libpthread
To: None <>
From: None <>
List: netbsd-bugs
Date: 12/18/2002 15:24:59
>Number:         19440
>Category:       pkg
>Synopsis:       chat/ysm does not build, does not find libpthread
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Dec 18 06:26:01 PST 2002
>Originator:     Heiko Dudzus
>Release:        NetBSD 1.6
System: NetBSD 1.6 NetBSD 1.6 (GENERIC) #1: Tue Nov 5 11:09:44 CET 2002 i386
Architecture: i386
Machine: i386
Attempting to make chat/ysm I get the following error message:

cc -O2 -I/usr/pkg/include -DYSM_WITH_THREADS -I. -Irijndael YSM_Main.o YSM_Network.o YSM_Setup.o YSM_ToolBox.o YSM_Win32.o YSM_Slaves.o YSM_Prompt.o YSM_Help.o YSM_Wrappers.o YSM_Crypt.o YSM_Direct.o rijndael/rijndael-alg-fst.o rijndael/rijndael-api-fst.o -o ysm -lpthread
/usr/bin/ld: cannot find -lpthread
collect2: ld returned 1 exit status
*** Error code 1

make: stopped in /usr/pkgsrc/chat/ysm/work.i386/ysmv7_2_8_1/src
all done
Type 'make' in /usr/pkgsrc/chat/ysm ('make update' respectively if already installed)
On my machine it worked to modify line 31 of 
/usr/pkgsrc/chat/ysm/work.i386/ysmv7_2_8_1/src/ (after 'make patch')
to read :

$(CC) $(PROG_FLAGS) $(OBJS) $(EXTERN_OBJS) -o $@ -L/usr/pkg/lib -Wl,-R/usr/pkg/lib $(LIBS)

May be dirty to fix it that way, but at least it works.