On Mon, Mar 08, 2004 at 07:55:15AM +0800, wsk wrote: > Ruslan Ermilov Write: > > >On Sun, Mar 07, 2004 at 09:59:57AM +0800, Suken wrote: > > > > > >>hi,list: > >>cvsupd today and get the follow errors while buildworld: > >>cc -O -pipe -D_GNU_SOURCE -I. > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../libbfd/i386 > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/include > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/config > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/.. -DVERSION=\""2.13.2 > >>[FreeBSD] 2002-11-27"\" -DBFD_VERSION_STRING=\""2.13.2 [FreeBSD] > >>2002-11-27"\" -I/usr/obj/usr/src/i386/legacy/usr/include -c > >>/usr/src/contrib/binutils/gas/config/tc-i386.c > >>cc -O -pipe -D_GNU_SOURCE -I. > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../libbfd/i386 > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/include > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils/gas/config > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/../../../../../contrib/binutils > >>-I/usr/src/gnu/usr.bin/binutils/as/i386-freebsd/.. -DVERSION=\""2.13.2 > >>[FreeBSD] 2002-11-27"\" -DBFD_VERSION_STRING=\""2.13.2 [FreeBSD] > >>2002-11-27"\" -I/usr/obj/usr/src/i386/legacy/usr/include -static > >>-L/usr/obj/usr/src/i386/legacy/usr/lib -o as app.o as.o atof-generic.o > >>atof-ieee.o bignum-copy.o cond.o dwarf2dbg.o ecoff.o expr.o > >>flonum-copy.o flonum-konst.o flonum-mult.o frags.o hash.o input-file.o > >>input-scrub.o listing.o literal.o macro.o messages.o output-file.o > >>read.o sb.o stabs.o subsegs.o symbols.o write.o depend.o ehopt.o > >>obj-elf.o tc-i386.o ../../libbfd/libbfd.a ../../libiberty/libiberty.a > >>../../libopcodes/libopcodes.a > >>/usr/obj/usr/src/i386/legacy/usr/lib/libegacy.a -legacy > >>as.o: In function `parse_args': > >>as.o(.text+0x388): undefined reference to `getopt_long_only' > >>*** Error code 1 > >> > >>Stop in /usr/src/gnu/usr.bin/binutils/as/i386-freebsd. > >>*** Error code 1 > >> > >> > >> > >What does ``make -f /usr/src/Makefile.inc1 -V OSRELDATE'' say? > > > > > >Cheers, > > > > > make -f /usr/src/Makefile.incl -V OSRELDATE > it said 502105 > FreeBSD since at least 502104 has getopt_long_only() in libc, and it looks like your libc doesn't really have it, like mine: $ nm /usr/lib/libc.a | grep getopt_long_only 00000a50 T getopt_long_only You somehow broke your build environment (you should know better how) by having /usr/include/osreldate.h that doesn't match the installed world (including libc). The solution for you is to: make buildworld OSRELDATE=502103 Specify the real value of your installed FreeBSD_version instead of 502103, or if you aren't sure, just use 0. Cheers, -- Ruslan Ermilov FreeBSD committer ru_at_FreeBSD.org
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:46 UTC