Subject: pkg/19440: chat/ysm does not build; does not find libpthread
To: None <gnats-bugs@gnats.netbsd.org>
From: None <heiko.dudzus@gmx.de>
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
>Closed-Date:
>Last-Modified:
>Originator:     Heiko Dudzus
>Release:        NetBSD 1.6
>Organization:
>Environment:
System: NetBSD lagavulin.heiko-dudzus.de 1.6 NetBSD 1.6 (GENERIC) #1: Tue Nov 5 11:09:44 CET 2002 root@lagavulin.heiko-dudzus.de:/usr/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
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

Stop.
make: stopped in /usr/pkgsrc/chat/ysm/work.i386/ysmv7_2_8_1/src
all done
>How-To-Repeat:
Type 'make' in /usr/pkgsrc/chat/ysm ('make update' respectively if already installed)
>Fix:
On my machine it worked to modify line 31 of 
/usr/pkgsrc/chat/ysm/work.i386/ysmv7_2_8_1/src/Makefile.in (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.
>Release-Note:
>Audit-Trail:
>Unformatted: