Subject: pkg/20902: emulators/{wine,rewind} do not build - pthread/lwp issue
To: None <gnats-bugs@gnats.netbsd.org>
From: Tomasz Luchowski <zuntum@netbsd.org>
List: netbsd-bugs
Date: 03/27/2003 08:21:25
>Number: 20902
>Category: pkg
>Synopsis: emulators/{wine,rewind} do not build - pthread/lwp issue
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Thu Mar 27 00:22:00 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.6Q
>Organization:
/* Tomasz Luchowski <tomasz@luchowski.com> */
>Environment:
System: NetBSD zunpc 1.6Q NetBSD 1.6Q (ZUNPC) #0: Wed Mar 26 23:27:44 UTC 2003 root@zunpc:/usr/cvs/src/sys/arch/i386/compile/ZUNPC i386
Architecture: i386
Machine: i386
>Description:
On my up-to-date 1.6Q system neither emulators/wine nor emulators/rewind compile.
wine fails with:
cc -c -I. -I. -I../../include -I../../include -O2 -I/usr/pkg/include -I/usr/X11R6/include -Wall -Wpointer-arith -mpreferred-stack-boundary=2 -gstabs+ -fPIC -D__WINESRC__ -D_NTSYSTEM_ -DBINDIR="\"/usr/pkg/bin\"" -DETCDIR="\"/usr/pkg/etc\"" -D_REENTRANT -o ../../scheduler/sysdeps.o ../../scheduler/sysdeps.c
../../scheduler/sysdeps.c: In function `cleanup_thread':
../../scheduler/sysdeps.c:147: warning: implicit declaration of function `_lwp_exit'
../../scheduler/sysdeps.c: In function `SYSDEPS_SpawnThread':
../../scheduler/sysdeps.c:218: parse error before `context'
../../scheduler/sysdeps.c:219: warning: implicit declaration of function `_lwp_makecontext'
../../scheduler/sysdeps.c:219: `context' undeclared (first use in this function)
../../scheduler/sysdeps.c:219: (Each undeclared identifier is reported only once
../../scheduler/sysdeps.c:219: for each function it appears in.)
../../scheduler/sysdeps.c:221: warning: implicit declaration of function `_lwp_create'
gmake[2]: *** [../../scheduler/sysdeps.o] Error 1
gmake[2]: Leaving directory `/usr/cvs/pkgsrc/emulators/wine/work/wine-20030219/dlls/ntdll'
gmake[1]: *** [ntdll] Error 2
gmake[1]: Leaving directory `/usr/cvs/pkgsrc/emulators/wine/work/wine-20030219/dlls'
gmake: *** [dlls] Error 2
*** Error code 2
And rewind has the same problem:
cc -c -I. -I. -I../include -I../include -O2 -I/usr/pkg/include -I/usr/X11R6/include -Wall -mpreferred-stack-boundary=2 -fPIC -D__WINE__ -DBINDIR="\"/usr/pkg/bin\"" -D_RE
ENTRANT -I/usr/X11R6/include -o sysdeps.o sysdeps.c
sysdeps.c: In function `cleanup_thread':
sysdeps.c:126: warning: implicit declaration of function `_lwp_exit'
sysdeps.c: In function `SYSDEPS_SpawnThread':
sysdeps.c:197: parse error before `context'
sysdeps.c:198: warning: implicit declaration of function `_lwp_makecontext'
sysdeps.c:198: `context' undeclared (first use in this function)
sysdeps.c:198: (Each undeclared identifier is reported only once
sysdeps.c:198: for each function it appears in.)
sysdeps.c:200: warning: implicit declaration of function `_lwp_create'
gmake[3]: *** [sysdeps.o] Error 1
gmake[3]: Leaving directory `/usr/cvs/pkgsrc/emulators/rewind/work/rewind-20020420/scheduler'
gmake[2]: *** [../../scheduler/scheduler.o] Error 2
gmake[2]: Leaving directory `/usr/cvs/pkgsrc/emulators/rewind/work/rewind-20020420/dlls/ntdll'
gmake[1]: *** [ntdll/libntdll.so] Error 2
gmake[1]: Leaving directory `/usr/cvs/pkgsrc/emulators/rewind/work/rewind-20020420/dlls'
gmake: *** [dlls] Error 2
*** Error code 2
>How-To-Repeat:
On a -current system with current pkgsrc:
cd /usr/pkgsrc/emulators/wine
make
cd /usr/pkgsrc/emulators/rewind
make
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: