Subject: Re: compiling -current an alpha fails
To: None <ks@ub.uni-mainz.de, current-users@netbsd.org>
From: haad <haaaad@gmail.com>
List: current-users
Date: 08/31/2006 23:29:41
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kurt Schreiner wrote:
> hi,
> 
> trying to compile -current cvs update-d half an hour or so ago on my
> Alpha XP1000 fails with:
> 
> [....]
>     compile  XP1000/ip_input.o
> In file included from /u/NetBSD/src/sys/netinet/ip_input.c:141:
> /u/NetBSD/src/sys/net/if_gre.h:65: error: 'R_SP' undeclared here (not in a function)
> 
> *** Failed target:  ip_input.o
> 
> [....]
> 
> This seems to come from:
> 
> egrep sc_sp /u/NetBSD/arch/alpha/dest/usr/include/*/*
> /u/NetBSD/arch/alpha/dest/usr/include/alpha/signal.h:#define    sc_sp   sc_regs[R_SP]
> /u/NetBSD/arch/alpha/dest/usr/include/alpha/signal.h:#define    sc_sp   sc_regs[R_SP]
> /u/NetBSD/arch/alpha/dest/usr/include/machine/signal.h:#define  sc_sp   sc_regs[R_SP]
> /u/NetBSD/arch/alpha/dest/usr/include/machine/signal.h:#define  sc_sp   sc_regs[R_SP]
> 
> which expands to:
> 
> struct gre_softc {
>  struct ifnet sc_if;
>  int sc_waitchan;
>  int sc_thread;
>  struct ifqueue sc_snd;
>  struct gre_soparm sc_regs[R_SP]; <---- ****** here's the problem ******
>  struct { struct gre_softc *le_next; struct gre_softc **le_prev; } sc_list;
>  struct route route;
> 
>  u_char g_proto;
> };
> 
> 
> Kurt
> 
problem is that R_SP is defined in
/usr/src/sys/arch/alpha/include/reg.h:#define   R_SP    30
so /usr/src/sys/arch/alpha/include/signal.should probably include it.

try to update your sources and build again.


Regards
- --
Adam Hamsik
ICQ 249727910
jabber haad@jabber.org
- --------------------------------------------------------------
There are 10 kinds of people in the world. Those who understand
binary numbers, and those who don't.
				
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (NetBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFE91TF9Wt2FT7y228RAjuqAKC0X1d3+9Uhb7B/CQrbYV3mbpQd8ACdG2X+
2L/cSFZLArh2JHybxl/TBYI=
=sjcX
-----END PGP SIGNATURE-----