Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Jun 2003 21:53:46 -0700
From:      Nicolas Galler <beanie@gryphonmud.com>
To:        freebsd-questions@freebsd.org
Subject:   Make world for 5.1 fails in gdb
Message-ID:  <20030611045346.GA95484@anoat.phoenix>

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

I am trying to upgrade from 5.0-RELEASE to 5.1-RELEASE. I just cvsupped but
trying make buildworld in /usr/src fails (in gdb), some error messages when
linking about xre_comp not defined (I have included the actual error messag=
es
below). I dont think Ive actually run make world since I installed 5.0 from=
 CD
a couple months ago.=20

Well tracing down the problem the closest I could get is that a file xregex=
.h
is included, which defines re_comp etc to xre_comp. Also a strange thing is
the following line in config.h (in the gdb directory):
    /* Define if gnu-regex.c included with GDB should be used. */
    #define USE_INCLUDED_REGEX 1
yet gnu-regex.c doesn't get compiled (or linked, as you can see below).

Well it all sound like Im doing something really stupid so I hope someone c=
an
help :)

Thanks
Nicolas Galler






Error messages when building world:

cc -O -pipe -O2 -pipe -march=3Dpentiumpro -mcpu=3Dpentiumpro -D_GNU_SOURCE =
-I. -I/usr/src/gnu/usr.bin/binutils/gdb -I/usr/src/gnu/usr.bin/binutils/gdb=
/../libbfd/i386 -I/usr/src/gnu/usr.bin/binutils/gdb/../../../../contrib/bin=
utils/include -Dprint_insn_i386=3Dprint_insn_i386_att -DDEFAULT_BFD_VEC=3Db=
fd_elf32_i386_freebsd_vec -DGDB_XM_FILE -Dprint_insn_i386=3Dprint_insn_i386=
_att -DDEFAULT_BFD_VEC=3Dbfd_elf32_i386_freebsd_vec -DGDB_XM_FILE -DDEFAULT=
_BFD_ARCH=3Dbfd_i386_arch -I/usr/src/gnu/usr.bin/binutils/gdb/i386 -I/usr/s=
rc/gnu/usr.bin/binutils/gdb/../../../../contrib/binutils/binutils -I/usr/sr=
c/gnu/usr.bin/binutils/gdb/../../../../contrib/binutils/bfd -I/usr/src/gnu/=
usr.bin/binutils/gdb/../../../../contrib/gdb/gdb -I/usr/src/gnu/usr.bin/bin=
utils/gdb/../../../../contrib/gdb/gdb/config -I/usr/src/gnu/usr.bin/binutil=
s/gdb -I/usr/obj/usr/src/i386/usr/include/readline     -static -o gdb init.=
o annotate.o arch-utils.o ax-general.o ax-gdb.o bcache.o blockframe.o break=
point.o buildsym.o complaints.o completer.o copying.o corefile.o corelow.o =
dcache.o doublest.o event-loop.o event-top.o environ.o eval.o exec.o exppri=
nt.o fork-child.o frame.o gdb-events.o gdbarch.o gdbtypes.o infcmd.o inflow=
.o infptrace.o inf-loop.o infrun.o inftarg.o language.o linespec.o main.o m=
aint.o mdebugread.o mem-break.o memattr.o minsyms.o objfiles.o parse.o prin=
tcmd.o regcache.o remote.o remote-utils.o signals.o source.o stabsread.o st=
ack.o symfile.o symmisc.o symtab.o target.o thread.o top.o tracepoint.o typ=
eprint.o ui-file.o ui-out.o utils.o valarith.o valops.o valprint.o values.o=
 wrapper.o cli-cmds.o cli-decode.o cli-out.o cli-script.o cli-setshow.o cli=
-utils.o serial.o ser-unix.o ser-tcp.o c-exp.o c-lang.o c-typeprint.o c-val=
print.o ch-exp.o ch-lang.o ch-typeprint.o ch-valprint.o cp-abi.o gnu-v2-abi=
.o gnu-v3-abi.o cp-valprint.o demangle.o f-exp.o f-lang.o f-typeprint.o f-v=
alprint.o findvar.o jv-exp.o jv-lang.o jv-valprint.o jv-typeprint.o nlmread=
.o m2-lang.o m2-exp.o m2-typeprint.o m2-valprint.o scm-exp.o scm-lang.o scm=
-valprint.o coffread.o dbxread.o dwarfread.o dwarf2read.o elfread.o solib.o=
 solib-svr4.o solib-legacy.o freebsd-uthread.o kvm-fbsd.o solib-fbsd-kld.o =
i386fbsd-nat.o i386bsd-tdep.o i386bsd-nat.o i386-nat.o i386-tdep.o i387-nat=
.o i387-tdep.o core-regset.o core-aout.o gdbversion.o -lkvm -lm ../libbfd/l=
ibbfd.a ../libopcodes/libopcodes.a -lgnuregex ../libiberty/libiberty.a -lre=
adline -ltermcap
source.o: In function `forward_search_command':
source.o(.text+0x1d99): undefined reference to `xre_comp'
source.o(.text+0x1eaa): undefined reference to `xre_exec'
source.o: In function `reverse_search_command':
source.o(.text+0x2009): undefined reference to `xre_comp'
source.o(.text+0x20f1): undefined reference to `xre_exec'

=2E... (about 20 more)



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