Subject: pkg/16170: wine fails to build in library/port.c
To: None <>
From: GNMJLR <>
List: netbsd-bugs
Date: 04/02/2002 19:36:13
>Number:         16170
>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:37:01 PST 2002
>Release:        NetBSD 1.5.2

System: NetBSD netbsd 1.5.2 NetBSD 1.5.2 (GENERIC_LAPTOP) #3: Sat Aug 18
1 CEST 2001
TOP i386

        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 
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
gmake: *** [library/] Error 2
*** Error code 2

*** Error code 1


netbsd# cd /usr/pkgsrc/emulators/wine
netbsd# make

        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