Subject: pkg/24045: bootstrap pkgsrc fails to compile on Debian Woody 3.0/hppa stable
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <dhgutteridge@hotmail.com>
List: netbsd-bugs
Date: 01/11/2004 01:43:35
>Number: 24045
>Category: pkg
>Synopsis: bootstrap pkgsrc fails to compile on Debian Woody 3.0/hppa stable
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jan 11 01:44:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: David Gutteridge
>Release: N/A
>Organization:
>Environment:
N/A
>Description:
I tried to build the NetBSD pkgsrc system on Debian Linux 3.0 (stable) for hppa (or hp700 to you), but it fails to compile, stopping during a point where it appears to be compiling "tnftp". The relevant output is attached below:
make[1]: Entering directory `/home/disciple/bootstrap-pkgsrc/tnftp/libedit'
sh makelist -h ./common.c > common.h
sh makelist -h ./emacs.c > emacs.h
sh makelist -h ./vi.c > vi.h
sh makelist -fh vi.h emacs.h common.h > fcns.h
sh makelist -fc vi.h emacs.h common.h > fcns.c
sh makelist -bc ./vi.c ./emacs.c ./common.c > help.c
sh makelist -bh ./vi.c ./emacs.c ./common.c > help.h
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o chared.o chared.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o common.o common.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o el.o el.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o emacs.o emacs.cgcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o fcns.o fcns.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o help.o help.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o hist.o hist.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o key.o key.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o map.o map.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o parse.o parse.cgcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o prompt.o prompt.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o read.o read.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o refresh.o refresh.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o search.o search.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o sig.o sig.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o term.o term.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o tty.o tty.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o vi.o vi.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o tokenizer.o tokenizer.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o history.o history.c
ar cr libedit.a chared.o common.o el.o emacs.o fcns.o help.o hist.o key.o map.o parse.o prompt.o read.o refresh.o search.o sig.o term.o tty.o vi.o tokenizer.o history.o
ranlib libedit.a
make[1]: Leaving directory `/home/disciple/bootstrap-pkgsrc/tnftp/libedit'
( cd libnetbsd; make )
make[1]: Entering directory `/home/disciple/bootstrap-pkgsrc/tnftp/libnetbsd'
gcc -I. -I./.. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o fgetln.o fgetln.c
gcc -I. -I./.. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o setprogname.o setprogname.c
gcc -I. -I./.. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o sl_init.o sl_init.cgcc -I. -I./.. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o strlcat.o strlcat.cgcc -I. -I./.. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o strlcpy.o strlcpy.cgcc -I. -I./.. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o strunvis.o strunvis.c
gcc -I. -I./.. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o strvis.o strvis.c
gcc -I. -I./.. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o fparseln.o fparseln.c
gcc -I. -I./.. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o glob.o glob.c
ar cr libnetbsd.a fgetln.o setprogname.o sl_init.o strlcat.o strlcpy.o strunvis.o strvis.o fparseln.o glob.o
ranlib libnetbsd.a
make[1]: Leaving directory `/home/disciple/bootstrap-pkgsrc/tnftp/libnetbsd'
( cd src; make )
make[1]: Entering directory `/home/disciple/bootstrap-pkgsrc/tnftp/src'
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o cmds.o cmds.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o cmdtab.o cmdtab.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o complete.o complete.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o domacro.o domacro.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o fetch.o fetch.cfetch.c: In function `fetch_url':
fetch.c:875: warning: assignment makes pointer from integer without a cast
fetch.c:879: warning: assignment makes pointer from integer without a cast
fetch.c:883: warning: assignment makes pointer from integer without a cast
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o ftp.o ftp.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o main.o main.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o progressbar.o progressbar.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o ruserpass.o ruserpass.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -c -o util.o util.c
gcc -I. -I./.. -I. -I.. -I./../libedit -I./../libnetbsd -g -O2 -L../libedit -L../libnetbsd -o ftp cmds.o cmdtab.o complete.o domacro.o fetch.o ftp.o main.o progressbar.o ruserpass.o util.o -ledit -lnetbsd
../libedit/libedit.a(term.o): In function `term_move_to_line':
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:535: undefined reference to `tgoto'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:535: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:553: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:548: undefined reference to `tgoto'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:548: undefined reference to `tputs'
../libedit/libedit.a(term.o): In function `term_move_to_char':
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:592: undefined reference to `tgoto'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:592: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:588: undefined reference to `tgoto'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:588: undefined reference to `tputs'
../libedit/libedit.a(term.o): In function `term_deletechars':
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:720: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:724: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:727: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:715: undefined reference to `tgoto'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:715: undefined reference to `tputs'
../libedit/libedit.a(term.o): In function `term_insertwrite':
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:763: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:771: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:773: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:778: undefined reference to `tputs'
../libedit/libedit.a(term.o):/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:786: more undefined references to `tputs' follow
../libedit/libedit.a(term.o): In function `term_insertwrite':
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:756: undefined reference to `tgoto'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:756: undefined reference to `tputs'
../libedit/libedit.a(term.o): In function `term_clear_EOL':
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:802: undefined reference to `tputs'
../libedit/libedit.a(term.o): In function `term_clear_screen':
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:820: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:822: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:824: undefined reference to `tputs'
../libedit/libedit.a(term.o):/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:840: more undefined references to `tputs' follow
../libedit/libedit.a(term.o): In function `term_set':
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:892: undefined reference to `tgetent'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:910: undefined reference to `tgetflag'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:911: undefined reference to `tgetflag'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:913: undefined reference to `tgetflag'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:914: undefined reference to `tgetflag'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:916: undefined reference to `tgetflag'
../libedit/libedit.a(term.o):/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:917: more undefined references to `tgetflag' follow
../libedit/libedit.a(term.o): In function `term_set':
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:919: undefined reference to `tgetnum'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:920: undefined reference to `tgetnum'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:922: undefined reference to `tgetstr'
../libedit/libedit.a(term.o): In function `term_echotc':
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:1555: undefined reference to `tgoto'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:1555: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:1471: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:1499: undefined reference to `tgoto'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:1499: undefined reference to `tputs'
/home/disciple/bootstrap-pkgsrc/tnftp/libedit/term.c:1420: undefined reference to `tgetstr'
collect2: ld returned 1 exit status
make[1]: *** [ftp] Error 1
make[1]: Leaving directory `/home/disciple/bootstrap-pkgsrc/tnftp/src'
make: *** [ftp] Error 2
===> exited with status 2
aborted.
I've noticed other people appear to have experienced this problem, but I couldn't find a PR already submitted for it. See the following link for an email from a French user of NetBSD who was trying to compile pkgsrc on Slackware 9.1: http://news.gw.com/netbsd.regional.fr/21. He experienced the very same problem.
I left in the first part of the output above to show I didn't get any compiler warnings or errors when term.o was being generated.
Regards,
David Gutteridge
>How-To-Repeat:
Just try running "bootstrap". I gather this problem isn't specific to Debian running on HP PA-RISC machines, but should be duplicable on i386 as well, and with other Linux distros. (I'll give an old version of SuSE a crack when I have a chance.)
>Fix:
I haven't determined a fix, unfortunately.
>Release-Note:
>Audit-Trail:
>Unformatted: