Subject: build of amiga port breaks on linux emulation
To: None <current-users@netbsd.org>
From: Klaus Heinz <klaus.heinz@onlinehome.de>
List: current-users
Date: 04/06/2002 14:03:03
Hi,

this happened yesterday and with an updated source tree (cross compiling
i386 -> amiga):

  $ MACHINE=amiga build.sh -m ${MACHINE} -U -T /usr/local -O ${MYBASE}/build/obj.${MACHINE} -D ${MYBASE}/build/dest.${MACHINE} -R ${MYBASE}/build/release.${MACHINE}


  dependall ===> usr.bin/kdump
  /usr/local/bin/m68k--netbsdelf-gcc -O2  -Wall -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-uninitialized  -Werror  -I/var/tmp2/current-src/src/usr.bin/kdump/../ktrace -I/var/tmp2/current-src/src/usr.bin/kdump/../../sys -nostdinc -isystem /var/tmp2/build/dest.amiga/usr/include  -c /var/tmp2/current-src/src/usr.bin/kdump/setemul.c
  cc1: warnings being treated as errors
  In file included from /var/tmp2/current-src/src/usr.bin/kdump/../../sys/compat/linux/common/linux_siginfo.h:46,
                 from /var/tmp2/current-src/src/usr.bin/kdump/../../sys/compat/linux/common/linux_types.h:100,
                 from /var/tmp2/current-src/src/usr.bin/kdump/../../sys/compat/linux/common/linux_signo.c:44,
                 from /var/tmp2/current-src/src/usr.bin/kdump/setemul.c:137:
  /var/tmp2/current-src/src/usr.bin/kdump/../../sys/compat/linux/arch/m68k/linux_siginfo.h:51: warning: no semicolon at end of struct or union
  /var/tmp2/current-src/src/usr.bin/kdump/../../sys/compat/linux/arch/m68k/linux_siginfo.h:51: parse error before `.'
  /var/tmp2/current-src/src/usr.bin/kdump/../../sys/compat/linux/arch/m68k/linux_siginfo.h:52: parse error before `.'
  /var/tmp2/current-src/src/usr.bin/kdump/../../sys/compat/linux/arch/m68k/linux_siginfo.h:53: parse error before `.'
  /var/tmp2/current-src/src/usr.bin/kdump/../../sys/compat/linux/arch/m68k/linux_siginfo.h:96: parse error before `}'
  /var/tmp2/current-src/src/usr.bin/kdump/../../sys/compat/linux/arch/m68k/linux_siginfo.h:96: warning: type defaults to `int' in declaration of `linux_siginfo_t'
  /var/tmp2/current-src/src/usr.bin/kdump/../../sys/compat/linux/arch/m68k/linux_siginfo.h:96: warning: data definition has no type or storage class
  *** Error code 1

  Stop.
  nbmake: stopped in /var/tmp2/current-src/src/usr.bin/kdump



I have looked at the files and found, the compiler chokes on a struct
definition in sys/compat/linux/arch/m68k/linux_siginfo.h where the
structure member 'int     si_signo;' is actually a symbol defined by the
preprocessor: '_info._signo'. '_info' seems to be unknown, resulting in
parse errors.

The only place I could find this definition was sys/compat/svr4/svr4_siginfo.h.

Can anyone help with this ?

ciao
     Klaus