Subject: pkg/33904: games/gnuchess Solaris -lrt
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Gilles Dauphin <dauphin@enst.fr>
List: pkgsrc-bugs
Date: 07/03/2006 15:05:01
>Number: 33904
>Category: pkg
>Synopsis: games/gnuchess Solaris -lrt
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jul 03 15:05:00 +0000 2006
>Originator: Gilles Dauphin
>Release: SunOS 5.10 i86pc
>Organization:
ENST
>Environment:
System: SunOS bi.enst.fr 5.10 Generic_Patch_118844-30 i86pc
>Description:
=> Checksum SHA1 OK for gnuchess-5.07.tar.gz.
=> Checksum RMD160 OK for gnuchess-5.07.tar.gz.
===> Building for gnuchess-5.07nb3
Making all in src
gmake[1]: Entering directory `/pkg/obj/games/gnuchess/work/gnuchess-5.07/src'
/usr/pkg/bin/gmake all-am
gmake[2]: Entering directory `/pkg/obj/games/gnuchess/work/gnuchess-5.07/src'
gcc -D_REENTRANT -D_REENTRANT -O -I/usr/pkg/include -I/usr/include -Wl,-R/usr/pkg/lib -o gnuchess atak.o book.o cmd.o debug.o epd.o eval.o genmove.o getopt.o getopt1.o hash.o hung.o init.o input.o iterate.o main.o move.o null.o output.o players.o pgn.o ponder.o quiesce.o random.o repeat.o search.o solve.o sort.o swap.o test.o ttable.o util.o lexpgn.o -lreadline
Undefined first referenced
symbol in file
sched_yield iterate.o
ld: fatal: Symbol referencing errors. No output written to gnuchess
collect2: ld returned 1 exit status
gmake[2]: *** [gnuchess] Error 1
gmake[2]: Leaving directory `/pkg/obj/games/gnuchess/work/gnuchess-5.07/src'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/pkg/obj/games/gnuchess/work/gnuchess-5.07/src'
gmake: *** [all-recursive] Error 1
*** Error code 2
>How-To-Repeat:
bmake
>Fix:
--- Makefile.orig Tue Jun 20 18:45:45 2006
+++ Makefile Mon Jul 3 16:58:28 2006
@@ -14,6 +14,8 @@
GNU_CONFIGURE= yes
USE_TOOLS+= flex gmake
+LDFLAGS.SunOS+= -lrt
+
BOOKDIR= ${PREFIX}/lib/gnuchess
DOCDIR= ${PREFIX}/share/doc/gnuchess