Subject: Bootstrapping on Debian 3.0 (PowerPC)
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 02/26/2005 00:50:14
I installed a stock Debian 3.0 on an old PowerMac and fetched the
current pkgsrc.tar.gz.
Here's how I end up bootstrapping:

...
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/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:535: undefined
reference to `tgoto'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:535: relocation
truncated to fit: R_PPC_REL24 tgoto
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:535: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:535: relocation
truncated to fit: R_PPC_REL24 tputs
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:548: undefined
reference to `tgoto'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:548: relocation
truncated to fit: R_PPC_REL24 tgoto
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:548: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:548: relocation
truncated to fit: R_PPC_REL24 tputs
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:553: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:553: relocation
truncated to fit: R_PPC_REL24 tputs
../libedit/libedit.a(term.o): In function `term_move_to_char':
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:588: undefined
reference to `tgoto'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:588: relocation
truncated to fit: R_PPC_REL24 tgoto
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:588: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:588: relocation
truncated to fit: R_PPC_REL24 tputs
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:624: undefined
reference to `tgoto'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:624: relocation
truncated to fit: R_PPC_REL24 tgoto
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:624: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:624: relocation
truncated to fit: R_PPC_REL24 tputs
../libedit/libedit.a(term.o): In function `term_deletechars':
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:715: undefined
reference to `tgoto'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:715: relocation
truncated to fit: R_PPC_REL24 tgoto
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:715: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:715: relocation
truncated to fit: R_PPC_REL24 tputs
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:720: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:720: relocation
truncated to fit: R_PPC_REL24 tputs
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:724: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:724: relocation
truncated to fit: R_PPC_REL24 tputs
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:727: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:727: relocation
truncated to fit: R_PPC_REL24 tputs
../libedit/libedit.a(term.o): In function `term_insertwrite':
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:756: undefined
reference to `tgoto'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:756: relocation
truncated to fit: R_PPC_REL24 tgoto
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:756: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:756: relocation
truncated to fit: R_PPC_REL24 tputs
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:763: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:763: relocation
truncated to fit: R_PPC_REL24 tputs
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:771: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:771: relocation
truncated to fit: R_PPC_REL24 tputs
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:773: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:773: relocation
truncated to fit: R_PPC_REL24 tputs
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:778: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:778: relocation
truncated to fit: R_PPC_REL24 tputs
../libedit/libedit.a(term.o):/home/schwarz/pkgsrc/bootstrap/work/tnftp/l
ibedit/term.c:786: more undefined references to `tputs' follow
../libedit/libedit.a(term.o): In function `term_insertwrite':
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:786: relocation
truncated to fit: R_PPC_REL24 tputs
../libedit/libedit.a(term.o): In function `term_clear_EOL':
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:802: relocation
truncated to fit: R_PPC_REL24 tputs
../libedit/libedit.a(term.o): In function `term_clear_screen':
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:820: relocation
truncated to fit: R_PPC_REL24 tputs
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:822: relocation
truncated to fit: R_PPC_REL24 tputs
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:824: relocation
truncated to fit: R_PPC_REL24 tputs
../libedit/libedit.a(term.o): In function `term_beep':
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:840: relocation
truncated to fit: R_PPC_REL24 tputs
../libedit/libedit.a(term.o): In function `term_set':
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:892: undefined
reference to `tgetent'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:892: relocation
truncated to fit: R_PPC_REL24 tgetent
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:910: undefined
reference to `tgetflag'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:910: relocation
truncated to fit: R_PPC_REL24 tgetflag
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:911: undefined
reference to `tgetflag'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:911: relocation
truncated to fit: R_PPC_REL24 tgetflag
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:913: undefined
reference to `tgetflag'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:913: relocation
truncated to fit: R_PPC_REL24 tgetflag
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:914: undefined
reference to `tgetflag'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:914: relocation
truncated to fit: R_PPC_REL24 tgetflag
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:916: undefined
reference to `tgetflag'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:916: relocation
truncated to fit: R_PPC_REL24 tgetflag
../libedit/libedit.a(term.o):/home/schwarz/pkgsrc/bootstrap/work/tnftp/l
ibedit/term.c:917: more undefined references to `tgetflag' follow
../libedit/libedit.a(term.o): In function `term_set':
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:917: relocation
truncated to fit: R_PPC_REL24 tgetflag
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:919: undefined
reference to `tgetnum'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:919: relocation
truncated to fit: R_PPC_REL24 tgetnum
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:920: undefined
reference to `tgetnum'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:920: relocation
truncated to fit: R_PPC_REL24 tgetnum
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:922: undefined
reference to `tgetstr'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:922: relocation
truncated to fit: R_PPC_REL24 tgetstr
../libedit/libedit.a(term.o): In function `term_echotc':
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:1420: undefined
reference to `tgetstr'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:1420:
relocation truncated to fit: R_PPC_REL24 tgetstr
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:1499: undefined
reference to `tgoto'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:1499:
relocation truncated to fit: R_PPC_REL24 tgoto
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:1499: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:1499:
relocation truncated to fit: R_PPC_REL24 tputs
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:1555: undefined
reference to `tgoto'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:1555:
relocation truncated to fit: R_PPC_REL24 tgoto
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:1555: undefined
reference to `tputs'
/home/schwarz/pkgsrc/bootstrap/work/tnftp/libedit/term.c:1555:
relocation truncated to fit: R_PPC_REL24 tputs
collect2: ld returned 1 exit status
make[1]: *** [ftp] Error 1
make[1]: Leaving directory
`/home/schwarz/pkgsrc/bootstrap/work/tnftp/src'
make: *** [ftp] Error 2
===> exited with status 2
aborted.

gcc is 2.95.4.
The problem seems to be that there is no term.h where tgoto etc. would
be defined. Is there a particular Debian .deb I first need to install?

-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 georg.schwarz@freenet.de     +49 178 8545053