Re: cross make buildworld error

From: Ruslan Ermilov <ru_at_FreeBSD.org>
Date: Fri, 20 Feb 2004 14:02:29 +0200
On Fri, Feb 20, 2004 at 12:25:13PM +0200, Ruslan Ermilov wrote:
> On Fri, Feb 20, 2004 at 11:55:17AM +0200, Danny Braniss wrote:
> > trying to compile 5.2 on a 4.9 box:
> > 
> > ...
> > mkdep -f .depend -a    -I/r+d/obj/dev/r+d/5.2/src/i386/legacy/usr/include 
> > -I/r+d/5.2/src/gnu/usr.bin/gperf/../../../contrib/gperf/lib -I/r+
> > d/5.2/src/gnu/usr.bin/gperf  /r+d/5.2/src/gnu/usr.bin/gperf/../../../contrib/gp
> > erf/src/bool-array.cc /r+d/5.2/src/gnu/usr.bin/gperf/../../.
> > ./contrib/gperf/src/gen-perf.cc /r+d/5.2/src/gnu/usr.bin/gperf/../../../contrib
> > /gperf/src/hash-table.cc /r+d/5.2/src/gnu/usr.bin/gperf/../.
> > ./../contrib/gperf/src/iterator.cc /r+d/5.2/src/gnu/usr.bin/gperf/../../../cont
> > rib/gperf/src/key-list.cc /r+d/5.2/src/gnu/usr.bin/gperf/../
> > ../../contrib/gperf/src/list-node.cc /r+d/5.2/src/gnu/usr.bin/gperf/../../../co
> > ntrib/gperf/src/main.cc /r+d/5.2/src/gnu/usr.bin/gperf/../..
> > /../contrib/gperf/src/new.cc /r+d/5.2/src/gnu/usr.bin/gperf/../../../contrib/gp
> > erf/src/options.cc /r+d/5.2/src/gnu/usr.bin/gperf/../../../c
> > ontrib/gperf/src/read-line.cc /r+d/5.2/src/gnu/usr.bin/gperf/../../../contrib/g
> > perf/src/trace.cc /r+d/5.2/src/gnu/usr.bin/gperf/../../../co
> > ntrib/gperf/src/vectors.cc /r+d/5.2/src/gnu/usr.bin/gperf/../../../contrib/gper
> > f/src/version.cc /r+d/5.2/src/gnu/usr.bin/gperf/../../../con
> > trib/gperf/lib/hash.cc   
> > /r+d/5.2/src/gnu/usr.bin/gperf/../../../contrib/gperf/src/options.cc:24: 
> > getopt.h: No such file or directory
> > mkdep: compile failed
> > *** Error code 1
> > ...
> > 
> Grr.  :-(
> 
> I will take care of that in the next few days.
> 
First, thank you for the report!
Second, I've fixed it sooner than was planned, enjoy!

For those wondering, there were two issues:

1.  Many (GNU) bootstrap- and cross-tools need <getopt.h> and
    getopt_long(),

2.  Some depend on the new world order (POSIX.1-200x) of <regex.h>
    not having <sys/types.h> as the prerequisite, as it is still
    the case for 4.x.

On Fri, Feb 20, 2004 at 03:55:14AM -0800, Ruslan Ermilov wrote:
> ru          2004/02/20 03:55:14 PST
>
>   FreeBSD src repository
>
>   Modified files:
>     tools/build          Makefile
>     lib/libc/stdlib      getopt_long.c
>   Added files:
>     tools/build          regex.h
>   Log:
>   Unbreak the upgrade path from 4.9 after removal of GNU getopt and
>   <gnuregex.h>.
>
>   Revision  Changes    Path
>   1.3       +0 -2      src/lib/libc/stdlib/getopt_long.c
>   1.5       +12 -0     src/tools/build/Makefile
>   1.1       +4 -0      src/tools/build/regex.h (new)


Cheers,
-- 
Ruslan Ermilov
FreeBSD committer
ru_at_FreeBSD.org

Received on Fri Feb 20 2004 - 03:02:34 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:44 UTC