Subject: pkg/16171: wine fails to build in library/port.c
To: None <gnats-bugs@gnats.netbsd.org>
From: GNMJLR <GNMJLR@teleline.es>
List: netbsd-bugs
Date: 04/02/2002 19:38:43
>Number: 16171
>Category: pkg
>Synopsis: wine fails to build in library/port.c
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Tue Apr 02 10:39:00 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:
>Release: NetBSD 1.5.2
>Organization:
>Environment:
System: NetBSD netbsd 1.5.2 NetBSD 1.5.2 (GENERIC_LAPTOP) #3: Sat Aug 18
23:43:4
1 CEST 2001
he@hamster.urc.uninett.no:/usr/src/sys/arch/i386/compile/GENERIC_LAP
TOP i386
>Description:
When I try to build wine (wine-20020228) I obtain the following
message error:
netbsd# cd /usr/pkgsrc/emulators/wine
netbsd# make
=> Checksum OK for Wine-20020228.tar.gz.
===> Extracting for wine-20020228
===> Required installed package freetype2>=2.0.1: freetype2-2.0.5 found
===> Required installed package jpeg-6b: jpeg-6b found
===> Required installed package Mesa>=3.2.1: Mesa-3.4.2nb1 found
===> Required installed package x11-links>=0.6: x11-links-0.6 found
===> Required installed package gmake>=3.78: gmake-3.79.1 found
.......
cc -c -I. -I. -I../include -I../include
-I/usr/pkgsrc/emulators/wine/work/.buil
dlink/include -O2 -I/usr/pkg/share/x11-links/include -Wall -fPIC
-D__WINE__ -D_R
EENTRANT -I/usr/pkg/share/x11-links/include -o port.o port.c
port.c: In function `try_mmap_fixed':
port.c:477: `uintptr_t' undeclared (first use in this function)
port.c:477: (Each undeclared identifier is reported only once
port.c:477: for each function it appears in.)
port.c:477: syntax error before `addr'
gmake[1]: *** [port.o] Error 1
gmake[1]: Leaving directory
`/usr/pkgsrc/emulators/wine/work/wine-20020228/libra
ry'
gmake: *** [library/libwine.so] Error 2
*** Error code 2
Stop.
*** Error code 1
Stop.
>How-To-Repeat:
netbsd# cd /usr/pkgsrc/emulators/wine
netbsd# make
>Fix:
This workaround works for me:
If I include the /usr/include/sys/inttypes.h file in port.c
wine is compiled correctely. uintptr_t is defined in inttypes.h
>Release-Note:
>Audit-Trail:
>Unformatted: