Subject: compiling gnu/usr.bin/ld/ld/ld.c failed on sparc (aout)
To: None <port-sparc@netbsd.org>
From: None <ks@ub.uni-mainz.de>
List: current-users
Date: 06/25/1999 13:34:24
hi,
just got this one trying a "make build" with -current supped today on
my ss20 which isn't converted to elf yet:
ld.c oncc -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Werror -I/c1/src/gnu/usr.bin/ld/ld/../../../../libexec/ld.aout_so -I/c1/src/gnu/usr.bin/ld/ld/../../../../libexec/ld.aout_so/arch/sparc -I/c1/src/gnu/usr.bin/ld/ld -c /c1/src/gnu/usr.bin/ld/ld/ld.c
cc1: warnings being treated as errors
/c1/src/gnu/usr.bin/ld/ld/ld.c: In function `digest_pass1':
/c1/src/gnu/usr.bin/ld/ld/ld.c:2315: warning: int format, long int arg (arg 3)
*** Error code 1
Stop.
the following diff cured this:
*** ld.c Fri Jun 25 13:30:18 1999
--- ld.c.orig Fri Jun 25 13:30:04 1999
***************
*** 2312,2318 ****
if (setv_fill_count != set_sect_size/sizeof(long))
errx(1, "internal error: allocated set symbol space (%d) "
"doesn't match actual (%d)",
! set_sect_size/(int)sizeof(long), setv_fill_count);
}
--- 2312,2318 ----
if (setv_fill_count != set_sect_size/sizeof(long))
errx(1, "internal error: allocated set symbol space (%d) "
"doesn't match actual (%d)",
! set_sect_size/sizeof(long), setv_fill_count);
}
-ks