Subject: toolchain/23219: lint fails to build on solaris
To: None <gnats-bugs@gnats.netbsd.org>
From: None <dmcmahill@netbsd.org>
List: netbsd-bugs
Date: 10/21/2003 19:34:59
>Number:         23219
>Category:       toolchain
>Synopsis:       lint fails to build on solaris
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    toolchain-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 21 23:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Dan McMahill
>Release:        NetBSD 20031020
>Organization:
NetBSD
>Environment:
solaris-2.6/sparc, gcc-2.95.1
	
	
System: NetBSD bondage 1.6.1 NetBSD 1.6.1 (BONDAGE) #0: Mon Apr 21 18:28:45 EDT 2003 dan@bondage:/export/disk1/src/src-netbsd-1-6-1/sys/arch/alpha/compile/BONDAGE alpha
Architecture: alpha
Machine: alpha
>Description:

trying to crossbuild netbsd-current from a solaris-2.6 box with gcc-2.95.1 fails
to build lint.

The problem is around line #83 of src/usr.bin/xlint
which has:

  flags = MAP_ANON | MAP_PRIVATE;

but MAP_ANON isn't defined in sys/mman.h on solaris-2.6

	
>How-To-Repeat:


try to use build.sh to setup the cross toolchain for building netbsd on 
solaris-2.6
	
>Fix:

dunno.

	
>Release-Note:
>Audit-Trail:
>Unformatted: