Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Sep 2002 11:45:21 -0700
From:      Marcel Moolenaar <marcel@xcllnt.net>
To:        arch@FreeBSD.org
Subject:   fortune(6) is not cross-buildable
Message-ID:  <20020907184521.GB3388@dhcp01.pn.xcllnt.net>

next in thread | raw e-mail | index | archive | help

Gang,

I had to cross-build alpha on my i386 box, because I probably messed
up my alpha enough that it couldn't do a buildworld on its own.

All went well, but a very crucial application was broken: fortune(6) :-)

The problem is that strfile(8) is built as a buildtool and since the
data file header is defined in terms of long integer it writes out
a header that matches the build machine, not the target machine. In
this case, the datafile had 32-bit wide fields, while on alpha those
are 64-bit fields.

The questions:
1. Do we care enough that we want to fix this?
2. If so, do we want to fix the data file header or do we want to
   fix strfile(8)?

If we fix the header, then it will be truely portable. Unfortunately,
this means that on some architectures the header changes and we need
to take care of it. If we avoid changing the file format, but change
strfile(8) to take cross-building into account we probably have the
least impact in general, but strfile(8) may become a bit ugly...

Thoughts?

-- 
 Marcel Moolenaar	  USPA: A-39004		 marcel@xcllnt.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020907184521.GB3388>