Subject: ./build.sh -U distribution failed
To: None <current-users@netbsd.org>
From: Milos Urbanek <urbanek@openbsd.cz>
List: current-users
Date: 10/13/2003 12:40:05
Hi,

with -current sources I get the following error:

/usr/src/obj/tooldir.NetBSD-1.6P-i386/bin/i386--netbsdelf-gcc    -o gdb -no=
stdlib  -Wl,-rpath-link,/usr/distro/lib:/usr/distro/usr/lib  -L/usr/distro/=
lib /usr/distro/usr/lib/crt0.o /usr/distro/usr/lib/crti.o /usr/distro/usr/l=
ib/crtbegin.o annotate.o arch-utils.o ax-gdb.o ax-general.o bcache.o blockf=
rame.o breakpoint.o buildsym.o builtin-regs.o c-exp.tab.o c-lang.o c-typepr=
int.o c-valprint.o ch-exp.o ch-lang.o ch-typeprint.o ch-valprint.o cli-cmds=
.o cli-decode.o cli-dump.o cli-out.o cli-script.o cli-setshow.o coffread.o =
complaints.o completer.o copying.o corefile.o corelow.o cp-abi.o cp-valprin=
t.o dbxread.o dcache.o demangle.o doublest.o dwarf2read.o dwarfread.o elfre=
ad.o environ.o eval.o event-loop.o event-top.o exec.o expprint.o f-exp.tab.=
o f-lang.o f-typeprint.o f-valprint.o findvar.o fork-child.o frame.o gdb.o =
gdb-events.o gdbarch.o gdbtypes.o gnu-v2-abi.o gnu-v3-abi.o hpacc-abi.o i38=
6-tdep.o i386bsd-nat.o i386bsd-tdep.o i386nbsd-nat.o i386nbsd-tdep.o i387-t=
dep.o inf-loop.o infcmd.o inflow.o infptrace.o infrun.o inftarg.o init.o jv=
-exp.tab.o jv-lang.o jv-typeprint.o jv-valprint.o kcore-nbsd.o kod-cisco.o =
kod.o language.o linespec.o m2-exp.tab.o m2-lang.o m2-typeprint.o m2-valpri=
nt.o macrocmd.o macroexp.o macroscope.o macrotab.o main.o maint.o mdebugrea=
d.o mem-break.o memattr.o mi-cmd-break.o mi-cmd-disas.o mi-cmd-stack.o mi-c=
md-var.o mi-cmds.o mi-console.o mi-getopt.o mi-main.o mi-out.o mi-parse.o m=
insyms.o mipsread.o nbsd-tdep.o nbsd-thread.o nlmread.o objfiles.o os9kread=
.o osabi.o p-exp.tab.o p-lang.o p-typeprint.o p-valprint.o parse.o printcmd=
.o regcache.o remote-utils.o remote.o scm-exp.o scm-lang.o scm-valprint.o s=
er-pipe.o ser-tcp.o ser-unix.o serial.o signals.o solib-svr4.o solib.o sour=
ce.o stabsread.o stack.o std-regs.o symfile.o symmisc.o symtab.o target.o t=
hread.o top.o tracepoint.o typeprint.o ui-file.o ui-out.o utils.o valarith.=
o valops.o valprint.o values.o varobj.o version.o wrapper.o -lcurses -lterm=
cap -lintl -lm -lkvm -lpthread_dbg  -L/usr/src/gnu/usr.bin/gdb53/opcodes/ob=
j -lopcodes -L/usr/src/gnu/usr.bin/gdb53/bfd/obj -lbfd  -ledit  -L/usr/src/=
gnu/usr.bin/gdb53/libiberty/obj -liberty -L/usr/distro/usr/lib -L/usr/distr=
o/usr/lib  -lgcc -lc -lgcc /usr/distro/usr/lib/crtend.o /usr/distro/usr/lib=
/crtn.o
event-top.o: In function `rl_callback_read_char_wrapper':
event-top.o(.text+0x7): undefined reference to `rl_callback_read_char'
event-top.o: In function `cli_command_loop':
event-top.o(.text+0xd8): undefined reference to `rl_callback_handler_instal=
l'
event-top.o: In function `change_line_handler':
event-top.o(.text+0x121): undefined reference to `rl_callback_handler_remov=
e'
event-top.o: In function `display_gdb_prompt':
event-top.o(.text+0x1a1): undefined reference to `rl_callback_handler_remov=
e'
event-top.o(.text+0x1b0): undefined reference to `rl_callback_handler_insta=
ll'
event-top.o(.text+0x24a): undefined reference to `rl_callback_handler_remov=
e'
top.o: In function `gdb_rl_operate_and_get_next_completion':
top.o(.text+0xb60): undefined reference to `rl_get_previous_history'
top.o(.text+0xb6f): undefined reference to `rl_redisplay'
top.o: In function `init_main':
top.o(.text+0x1c74): undefined reference to `rl_add_defun'
top.o: In function `gdb_rl_operate_and_get_next':
top.o(.text+0xbdd): undefined reference to `rl_newline'
collect2: ld returned 1 exit status

*** Failed target:  gdb

=2E..

Stop.
nbmake: stopped in /usr/src/gnu/usr.bin/gdb53/gdb

I tried rm -rf /usr/obj, make cleandir etc. The problem still persists.
Any help would be appreciated.

Milos

--=20