Subject: pkg/11621: chimera package build error
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jrf@diverge.org>
List: netbsd-bugs
Date: 11/30/2000 20:05:11
>Number:         11621
>Category:       pkg
>Synopsis:       Could not find endian.h
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 30 20:05:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Jason R Fink
>Release:        NetBSD-1.4.2
>Organization:
Diverge.Org
Jason R. Fink <jrf@diverge.org> http://www.diverge.org/jrf/
>Environment:
	
System: NetBSD samwise 1.4.2 NetBSD 1.4.2 (GENERIC) #2: Thu Mar 16 00:08:53 PST 2000 toddpw@threepio.toddpw.net:/usr/src/sys/arch/sparc/compile/GENERIC sparc


>Description:
Found this bug in the chimera build:
	In file included from gif.c:54:
	image_endian.h:52: sys/endian.h: No such file or directory

upon further investigation I found endian.h on sparc here:
	/usr/include/sparc/endian.h

on my i386 - surprise surprise it  was here:
	/usr/include/i386/endian.h

not exactly sure how to patch this or if the original software author needs
to be made awre of it.
	
>How-To-Repeat:
	try to run make in ~/pkgsrc/www/chimera
>Fix:
There is an obvious temporary workaround for people who want to install it:
	cd ~pkgsrc/www/chimera/work/chimera-2.0a19/image

and replace the line:
	#include <sys/endian.h>

with:
	#include <your_arc_here/endian.h>

for example, for my sparc:
	#include <sparc/endian.h>
	
>Release-Note:
>Audit-Trail:
>Unformatted: