[OpenAFS-devel] Another build problem on sparc-linux

Dean Anderson dean@av8.com
Thu, 11 Sep 2003 17:13:56 -0400 (EDT)


In the libafs tree '../linux/highmem.h' points to
'/usr/src/linux2.4/linux/highmem.h', which includes 'asm/highmem.h'.

On sparc, asm is a link to asm-sparc or asm-sparc64, in the linux source
tree, depending on architecture.

The asm-sparc version of highmem.h includes asm/kmap_types.h, which has
the definitions needed.

The asm-sparc64 version of highmem.h doen't include kmap_types.h, nor does
it directly access asm-sparc.

It looks like a (simple enough) kernel bug in the sparc linux 2.4 kernel
source, except that I'm wondering why no one else has this problem... Most
distributions don't muck with the kernel sources too much.

		--Dean

On Thu, 11 Sep 2003, Derrick J Brashear wrote:

> On Wed, 10 Sep 2003, Dean Anderson wrote:
>
> > This is under Aurora sparc linux 1.0 (kinda similar to RH 7.3)
> >
> > uname -a
> > Linux dakota.av8.net 2.4.20-2.3sparc #1 Wed Jan 15 18:27:52 EST 2003
> > sparc64 unknown
> >
> > I also upgraded to gcc 3.3, because of issues with gcc 2.96 which comes in
> > the distribution.
>
> So, what header defines the missing symbols?
>
>
> > ../linux/highmem.h:20: warning: return makes pointer from integer without
> > a cast../linux/highmem.h: In function `bh_kmap_irq':
> > ../linux/highmem.h:48: error: `KM_BH_IRQ' undeclared (first use in this
> > function)
> > ../linux/highmem.h:48: error: (Each undeclared identifier is reported only
> > once
> > ../linux/highmem.h:48: error: for each function it appears in.)
> > ../linux/highmem.h: In function `bh_kunmap_irq':
> > ../linux/highmem.h:60: error: `KM_BH_IRQ' undeclared (first use in this
> > function)
> > ../linux/highmem.h: In function `clear_user_highpage':
> > ../linux/highmem.h:85: error: `KM_USER0' undeclared (first use in this
> > function)../linux/highmem.h:85: warning: initialization makes pointer from
> > integer without a cast
> > ../linux/highmem.h: In function `clear_highpage':
> > ../linux/highmem.h:92: warning: cast to pointer from integer of different
> > size
> > ../linux/highmem.h: In function `memclear_highpage_flush':
> > ../linux/highmem.h:105: warning: assignment makes pointer from integer
> > without a cast
> > ../linux/highmem.h: In function `copy_user_highpage':
> > ../linux/highmem.h:116: error: `KM_USER0' undeclared (first use in this
> > function)
> > ../linux/highmem.h:116: warning: assignment makes pointer from integer
> > without a cast
> > ../linux/highmem.h:117: error: `KM_USER1' undeclared (first use in this
> > function)
> > ../linux/highmem.h:117: warning: assignment makes pointer from integer
> > without a cast
> > In file included from ../h/netdevice.h:147,
> >                  from ../rx/rx_kcommon.h:95,
> >                  from ../rx/rx_knet.c:22:
> > ../linux/skbuff.h: In function `kmap_skb_frag':
> > ../linux/skbuff.h:1101: error: `KM_SKB_DATA_SOFTIRQ' undeclared (first use
> > in this function)
> > ../linux/skbuff.h:1101: warning: return makes pointer from integer without
> > a cast
> > ../linux/skbuff.h: In function `kunmap_skb_frag':
> > ../linux/skbuff.h:1106: error: `KM_SKB_DATA_SOFTIRQ' undeclared (first use
> > in this function)
> > gmake[4]: *** [rx_knet.o] Error 1
> >
> >
> > _______________________________________________
> > OpenAFS-devel mailing list
> > OpenAFS-devel@openafs.org
> > https://lists.openafs.org/mailman/listinfo/openafs-devel
> >
> >
> _______________________________________________
> OpenAFS-devel mailing list
> OpenAFS-devel@openafs.org
> https://lists.openafs.org/mailman/listinfo/openafs-devel
>