NetBSD Problem Report #33196
From www@netbsd.org Wed Apr 5 06:34:56 2006
Return-Path: <www@netbsd.org>
Received: by narn.netbsd.org (Postfix, from userid 31301)
id 9A00B63B968; Wed, 5 Apr 2006 06:34:56 +0000 (UTC)
Message-Id: <20060405063456.9A00B63B968@narn.netbsd.org>
Date: Wed, 5 Apr 2006 06:34:56 +0000 (UTC)
From: gdamore@netbsd.org
Reply-To: gdamore@netbsd.org
To: gnats-bugs@netbsd.org
Subject: cannot crossbuild macppc from Solaris
X-Send-Pr-Version: www-1.0
>Number: 33196
>Category: port-macppc
>Synopsis: cannot crossbuild macppc from Solaris
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: gdamore
>State: closed
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 05 06:35:00 +0000 2006
>Closed-Date: Fri Apr 07 02:36:07 +0000 2006
>Last-Modified: Fri Apr 07 02:36:07 +0000 2006
>Originator: Garrett D'Amore
>Release: -current (3.99.17)
>Organization:
Tadpole Computer, Inc.
>Environment:
build machine is Solaris, cross building latest (update as of 4/4/2006) -current.
>Description:
cross build fails due to #include <sys/endian.h> in macppc-fixcoff, which doesn't exist in a non-NetBSD cross-build environment.
>How-To-Repeat:
Try ./build.sh -m macppc tools
from a Solaris 10 machine.
>Fix:
Diffs below. I would commit it myself, but need a reviewer. Or portmaster can just make this change (or similiar) him/herself and commit as appropriate.
*** fixcoff.c.~1.9.~ Sun Dec 11 04:18:06 2005
--- fixcoff.c Tue Apr 4 23:24:03 2006
***************
*** 49,55 ****
--- 49,70 ----
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
+
+ #if HAVE_NBTOOL_CONFIG_H
+
+ #if WORDS_BIGENDIAN
+ #define htobe16(x) (x)
+ #else
+ unsigned short
+ htobe16(unsigned short x)
+ {
+ return (((x & 0xff00) >> 8) | ((x & 0xff) << 8));
+ }
+ #endif /* WORDS_BIGENDIN */
+
+ #else /* HAVE_NBTOOL_CONFIG_H */
#include <sys/endian.h>
+ #endif /* HAVE_NBTOOL_CONFIG_H */
struct filehdr {
#define U802WRMAGIC 0730
>Release-Note:
>Audit-Trail:
From: "Garrett D'Amore" <garrett_damore@tadpole.com>
To: gnats-bugs@netbsd.org
Cc: gdamore@netbsd.org
Subject: Re: port-macppc/33196: cannot crossbuild macppc from Solaris
Date: Wed, 05 Apr 2006 00:05:37 -0700
gnats-admin@netbsd.org wrote:
> Thank you very much for your problem report.
> It has the internal identification `port-macppc/33196'.
> The individual assigned to look at your
> report is: port-macppc-maintainer.
>
>
>> Category: port-macppc
>> Responsible: port-macppc-maintainer
>> Synopsis: cannot crossbuild macppc from Solaris
>> Arrival-Date: Wed Apr 05 06:35:00 +0000 2006
>>
Slightly update, proven to build located at
http://garrett.damore.org/software/netbsd/diff.fixcoff
Please review and commit, or let me know and I will do it.
--
Garrett D'Amore, Principal Software Engineer
Tadpole Computer / Computing Technologies Division,
General Dynamics C4 Systems
http://www.tadpolecomputer.com/
Phone: 951 325-2134 Fax: 951 325-2191
Responsible-Changed-From-To: port-macppc-maintainer->gdamore
Responsible-Changed-By: gdamore@netbsd.org
Responsible-Changed-When: Fri, 07 Apr 2006 02:36:07 +0000
Responsible-Changed-Why:
I committed the fix.
State-Changed-From-To: open->closed
State-Changed-By: gdamore@netbsd.org
State-Changed-When: Fri, 07 Apr 2006 02:36:07 +0000
State-Changed-Why:
I committed the fix.
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.