Is buildworld broken?

YONETANI Tomokazu qhwt+dfly at
Sat Mar 19 09:28:24 PST 2005

On Sat, Mar 19, 2005 at 11:04:26AM -0500, Adrian Nida wrote:
> I'm trying to rebuild world, kernel, etc. and ran into this error.
> I rm'ed -r / usr/obj, rm'ed -r /usr/src, and re-cvsupped (as of ~30
> minutes ago).  Is anyone else seeing this?  If not, any ideas what
> I should do to fix?

> /usr/lib/libc.a(getopt_long.o): In function `getopt_long':
> getopt_long.o(.text+0x86c): multiple definition of `getopt_long'
> getopt_long.o(.text+0x864): first defined here

The libc currently installed on your system contains getopt* functions.
This probably means that the last world installed was built from source
between "2005-03-13 20:13:41" and "2005-03-14 14:26:16"(see joerg's
commit on commits@).

Try checking out the source slightly after "2005.03.14 14:27:00(UTC)" and
build and install libc, then start buildworld of -CURRENT.

This reminds us that, when our getopt() is replaced with getopt_long*(),
we need a way to know if the building system has getopt_long* family in
its libc, or buildworld on months older system or on FreeBSD 4.x fails
at the bootstrapping stage.

More information about the Bugs mailing list