Subject: pkg/35714: emulators/wine fails to compile (NetBSD-3.0)
To: None <,,>
From: None <kre@munnari.OZ.AU>
List: pkgsrc-bugs
Date: 02/19/2007 17:00:00
>Number:         35714
>Category:       pkg
>Synopsis:       emulators/wine fails to compile (NetBSD-3.0)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Feb 19 17:00:00 +0000 2007
>Originator:     Robert Elz
>Release:        NetBSD 3.99.15   (pkgsrc current within past 10 hours)
	Prince of Songkla University
System: NetBSD 3.99.15 NetBSD 3.99.15 (GENERIC-1.696-20060125) #8: Wed Jan 25 04:59:39 ICT 2006 i386
Architecture: i386
Machine: i386
	On NetBSD 3.0 (release version), emulators/wine (the recently
	updated version) doesn't compile.

	I'm using pkg_comp with libkver and NetBSD 3.0 release sets
	(and sources) installed to simulate NetBSD 3.0, but I doubt
	that makes any real difference.

	This PR is marked as non-critical/low as all reports are that
	wine doesn't really work wven when it does compile, and on
	older systems (like netBSD 3.0 and before) it is probably even
	less likely to work (no idea, I have no idea what to do with
	it after compiling the thing, when it does compile - it did
	that at leats last week, but doesn't now).

	Using netBSD 3.0 attempt to "make" emuulators/wine

	Expect to see ...

cc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_REENTRANT -fPIC
 -Wall -pipe -fno-strict-aliasing -Wwrite-strings -Wpointer-arith -I/usr/pkg/inc
lude -DGLX_GLXEXT_LEGACY -DLDAP_DEPRECATED -I/usr/include -I/usr/pkg/include/fre
etype2 -O2 -I/usr/pkg/include -DGLX_GLXEXT_LEGACY -DLDAP_DEPRECATED -I/usr/inclu
de -I/usr/pkg/include/freetype2  -o iphlpapi_main.o iphlpapi_main.c
cc -c -I. -I. -I../../include -I../../include  -D__WINESRC__  -D_REENTRANT -fPIC
 -Wall -pipe -fno-strict-aliasing -Wwrite-strings -Wpointer-arith -I/usr/pkg/inc
lude -DGLX_GLXEXT_LEGACY -DLDAP_DEPRECATED -I/usr/include -I/usr/pkg/include/fre
etype2 -O2 -I/usr/pkg/include -DGLX_GLXEXT_LEGACY -DLDAP_DEPRECATED -I/usr/inclu
de -I/usr/pkg/include/freetype2  -o ipstats.o ipstats.c
In file included from /usr/include/sys/sysctl.h:44,
                 from ipstats.c:56:
/usr/include/sys/ucred.h:49: error: `NGROUPS' undeclared here (not in a function
/usr/include/sys/ucred.h:59: error: `NGROUPS' undeclared here (not in a function
In file included from /usr/include/sys/sysctl.h:46,
                 from ipstats.c:56:
/usr/include/sys/proc.h:66: error: `MAXLOGNAME' undeclared here (not in a functi
/usr/include/sys/proc.h:243: error: `MAXCOMLEN' undeclared here (not in a functi
In file included from ipstats.c:56:
/usr/include/sys/sysctl.h:402: error: `MAXLOGNAME' undeclared here (not in a fun
ipstats.c: In function `getInterfaceStatsByName':
ipstats.c:104: warning: subscript has type `char'
ipstats.c: In function `getArpTable':
ipstats.c:912: warning: subscript has type `char'
ipstats.c:938: warning: subscript has type `char'
ipstats.c:940: warning: subscript has type `char'

[] note: The real command line, after the pkgsrc wrapper, was:
/pkg_comp/obj/pkgsrc/emulators/wine/default/.gcc/bin/gcc -c -I. -I../../include
-D__WINESRC__ -D_REENTRANT -fPIC -Wall -pipe -fno-strict-aliasing -Wwrite-string
s -Wpointer-arith -I/pkg_comp/obj/pkgsrc/emulators/wine/default/.buildlink/inclu
de -DGLX_GLXEXT_LEGACY -DLDAP_DEPRECATED -I/pkg_comp/obj/pkgsrc/emulators/wine/d
efault/.buildlink/include/freetype2 -O2 -o ipstats.o ipstats.c -L/pkg_comp/obj/p
gmake[2]: *** [ipstats.o] Error 1
gmake[2]: Leaving directory `/pkg_comp/obj/pkgsrc/emulators/wine/default/wine-0.
gmake[1]: *** [iphlpapi] Error 2
gmake[1]: Leaving directory `/pkg_comp/obj/pkgsrc/emulators/wine/default/wine-0.
gmake: *** [dlls] Error 2
*** Error code 2

make: stopped in /usr/pkgsrc/emulators/wine
*** Error code 1