Subject: Minor problem.
To: Gordon W. Ross <gwr@mc.com>
From: Harry Schreurs <HLS@oce.nl>
List: port-sun3
Date: 02/16/1995 18:09:03
I came across the following problem when compiling the latest
sun3 kernel sources:

gcpp -nostdinc -I../xinc -I. -I../.. -I../../../.. -I../../../../sys -
I../../../../arch -DNEWCONFIG -DMACHINE_NONCONTIG -DSUN3_50 -DSUN3_60 -
DFPCOPROC -DTIMEZONE="0xffffffc4" -DDST="2" -DSWAPPAGER -DVNODEPAGER -
DDEVPAGER -DKTRACE -DDDB -DSYMTAB_SPACE="0x15ba8" -DPROCFS -DNFSCLIENT -
DINET -DNFS_BOOT_RWSIZE="0x400" -DCOMPAT_SUNOS -DCOMPAT_09 -DCOMPAT_10 -
DCOMPAT_43 -DTCP_COMPAT_42 -DCONTEXT_DEBUG -DPMAP_DEBUG -DEXEC_DEBUG -
DDIAGNOSTIC -DSCSIDEBUG -DKERNEL -Dmc68020 -Dsun3 
../../../../arch/m68k/m68k/copy.s | gas  -o copy.o
sh ../../../../conf/newvers.sh
gcc -O  -nostdinc -I../xinc -I. -I../.. -I../../../.. -I../../../../sys -
I../../../../arch -DNEWCONFIG -DMACHINE_NONCONTIG -DSUN3_50 -DSUN3_60 -
DFPCOPROC -DTIMEZONE="0xffffffc4" -DDST="2" -DSWAPPAGER -DVNODEPAGER -
DDEVPAGER -DKTRACE -DDDB -DSYMTAB_SPACE="0x15ba8" -DPROCFS -DNFSCLIENT -
DINET -DNFS_BOOT_RWSIZE="0x400" -DCOMPAT_SUNOS -DCOMPAT_09 -DCOMPAT_10 -
DCOMPAT_43 -DTCP_COMPAT_42 -DCONTEXT_DEBUG -DPMAP_DEBUG -DEXEC_DEBUG -
DDIAGNOSTIC -DSCSIDEBUG -DKERNEL -Dmc68020 -Dsun3 -c vers.c
loading netbsd
ld -S -n -N -e start -T 0E004000 -o netbsd ${SYSTEM_OBJ} vers.o 
../libkern.a
ld: ../libkern.a: warning: table of contents for archive is out of date; 
rerun ranlib(1)
ld: Undefined symbol
   _suibyte
text    data    bss dec hex
402184  109160  63224   574568  8c468
*** Error code 2 (ignored)

I made the following change to m68k/m68k/copy.s:

*** copy.s  Mon Feb 13 18:20:50 1995
--- copy.s.orig Sun Feb 12 00:28:00 1995
***************
*** 430,436 ****
   * subyte(caddr_t uaddr, char x);
   * Store a byte in the user's address space.
   */
- ALTENTRY(suibyte, _subyte)
  ENTRY(subyte)
    CHECK_DFC
    movl    sp@(4),a0       | address to write
--- 430,435 ----

> I updated netbsd- gen.gz again (it was truncated somehow).
>
> I also made a new zupdate.tar.gz containing the following:
> 
> bin/ps
> sbin/dmesg
> usr/bin/make
> usr/sbin/kvm_mkdb
> usr/lib/libkvm.a
> usr/lib/libkvm.so.4.0
> usr/lib/libkvm_p.a
> usr/lib/libkvm_pic.a
> 
> This used to also contain include/machine and include/m68k but
> now I figure you can get those out of the sources yourself.
> If someone wants it, I can provide the includes separately.
> 
Thank you for this effort.

Regards,

Harry

      ###########################################################
      #  This note does not necessarily represent the position  #
      #     of Oce-Nederland B.V. Therefore no liability or     #
      #      responsibility for whatever will be accepted.      #
      ###########################################################