2.11bsd rogue can't build
Glen Slick
glen.slick at gmail.com
Wed Mar 4 22:15:24 CST 2020
On Wed, Mar 4, 2020 at 6:02 PM Jacob Ritorto via cctalk
<cctalk at classiccmp.org> wrote:
>
> Wonder why I can't make(1) rogue on my 11/83, 2044KW, latest patch
> release from sms.
>
The ld "text overflow" error is probably due to the the total size of
text (executable code) exceeding 64KB. The sum of the object files I
get without anything pulled in from the libraries is 62136 bytes.
I'm pretty sure I built this successfully in the past. I'll have to
try it again later with the generic installation before any patches
are applied, in case that makes a difference for some reason.
# pwd
/usr/src/games/rogue
# make
cc -O -DUNIX -DUNIX_BSD4_2 -c curses.c
cc -O -DUNIX -DUNIX_BSD4_2 -c hit.c
cc -O -DUNIX -DUNIX_BSD4_2 -c init.c
cc -O -DUNIX -DUNIX_BSD4_2 -c inventory.c
cc -O -DUNIX -DUNIX_BSD4_2 -c level.c
cc -O -DUNIX -DUNIX_BSD4_2 -c machdep.c
cc -O -DUNIX -DUNIX_BSD4_2 -c main.c
cc -O -DUNIX -DUNIX_BSD4_2 -c message.c
cc -O -DUNIX -DUNIX_BSD4_2 -c monster.c
cc -O -DUNIX -DUNIX_BSD4_2 -c move.c
cc -O -DUNIX -DUNIX_BSD4_2 -c object.c
cc -O -DUNIX -DUNIX_BSD4_2 -c pack.c
cc -O -DUNIX -DUNIX_BSD4_2 -c play.c
cc -O -DUNIX -DUNIX_BSD4_2 -c random.c
cc -O -DUNIX -DUNIX_BSD4_2 -c ring.c
cc -O -DUNIX -DUNIX_BSD4_2 -c room.c
cc -O -DUNIX -DUNIX_BSD4_2 -c save.c
cc -O -DUNIX -DUNIX_BSD4_2 -c score.c
cc -O -DUNIX -DUNIX_BSD4_2 -c spec_hit.c
cc -O -DUNIX -DUNIX_BSD4_2 -c throw.c
cc -O -DUNIX -DUNIX_BSD4_2 -c trap.c
cc -O -DUNIX -DUNIX_BSD4_2 -c use.c
cc -O -DUNIX -DUNIX_BSD4_2 -c zap.c
cc -i curses.o hit.o init.o inventory.o level.o
machdep.o main.o message.o monster.o move.o
object.o pack.o play.o random.o ring.o
room.o save.o score.o spec_hit.o throw.o
trap.o use.o zap.o -o rogue -lcurses -ltermlib
ld:/usr/lib/libcurses.a(refresh.o): text overflow
*** Exit 4
Stop.
# size *.o
text data bss dec hex
0 38 0 38 26 curses.o
2322 264 0 2586 a1a hit.o
1620 304 0 1924 784 init.o
4212 2760 0 6972 1b3c inventory.o
6790 410 0 7200 1c20 level.o
1060 116 12 1188 4a4 machdep.o
82 36 0 118 76 main.o
2688 548 0 3236 ca4 message.o
5234 1856 0 7090 1bb2 monster.o
3408 294 4 3706 e7a move.o
4042 3642 0 7684 1e04 object.o
2760 568 0 3328 d00 pack.o
682 370 0 1052 41c play.o
474 180 0 654 28e random.o
1320 382 0 1702 6a6 ring.o
4322 402 0 4724 1274 room.o
2966 346 0 3312 cf0 save.o
4850 1222 8 6080 17c0 score.o
3162 242 0 3404 d4c spec_hit.o
2094 164 4 2262 8d6 throw.o
1726 394 2 2122 84a trap.o
3452 1500 0 4952 1358 use.o
2870 358 2 3230 c9e zap.o
>>> 2322 + 1620 + 4212 + 6790 + 1060 + 82 + 2688 + 5234 + 3408 + 4042 + 2760 + 682 + 474 + 1320 + 4322 + 2966 + 4850 + 3162 + 2094 + 1726 + 3452 + 2870
62136
More information about the cctech
mailing list