Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 190533 - net-fs/openafs-1.4.4_p20070724 compile fails
Summary: net-fs/openafs-1.4.4_p20070724 compile fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-28 14:25 UTC by Juergen Rose
Modified: 2007-10-13 14:29 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Replace kmem_cache_t with struct kmem_cache (osi_vfsops.patch,671 bytes, patch)
2007-09-10 12:15 UTC, Sergey Temerkhanov
Details | Diff
Patch to compile on 2.6.23 (openafs-2.6.23.patch,1.24 KB, patch)
2007-10-13 10:12 UTC, Aad Dame
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Rose 2007-08-28 14:25:26 UTC
Emerging net-fs/openafs-1.4.4_p20070724 fails with :


  CC [M]  /var/tmp/portage/net-fs/openafs-kernel-1.4.4_p20070724/work/openafs-1.4.4/src/libafs/MODLOAD-2.6.23-rc3-SP/osi_vfsops.o
/var/tmp/portage/net-fs/openafs-kernel-1.4.4_p20070724/work/openafs-1.4.4/src/libafs/MODLOAD-2.6.23-rc3-SP/osi_vfsops.c:266: error: expected '=', ',', ';', 'asm' or 
'__attribute__' before '*' token
/var/tmp/portage/net-fs/openafs-kernel-1.4.4_p20070724/work/openafs-1.4.4/src/libafs/MODLOAD-2.6.23-rc3-SP/osi_vfsops.c: In function 'afs_alloc_inode':
/var/tmp/portage/net-fs/openafs-kernel-1.4.4_p20070724/work/openafs-1.4.4/src/libafs/MODLOAD-2.6.23-rc3-SP/osi_vfsops.c:276: error: 'afs_inode_cachep' undeclared (first use in this function)


Reproducible: Always




root@thinkpad:/usr/src/linux(12)# emerge --info
Portage 2.1.3.7 (default-linux/x86/2007.0, gcc-4.2.0, glibc-2.6.1-r0, 2.6.22-gentoo-r5 i686)
=================================================================
System uname: 2.6.22-gentoo-r5 i686 Intel(R) Pentium(R) M processor 1700MHz
Gentoo Base System release 1.12.10
Timestamp of tree: Tue, 28 Aug 2007 06:30:10 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r5, 2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
dev-util/ccache:     2.4-r7
sys-apps/baselayout: 1.12.10-r4
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17-r1
sys-devel/gcc-config: 1.4.0-r1
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.22-r2
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.caliu.info/pub/gentoo/ http://ftp.caliu.info/pub/gentoo/ ftp://vlaai.sn
t.ipv6.utwente.nl/pub/os/linux/gentoo/ http://www.gigaload.org/gentoo.org/"
LINGUAS="de fr"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --f
ilter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/science /usr/portage/local/layman/xeffects /usr/local/portage /usr/local/portage/xeffects /usr/local/sci"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d a52 aac acl acpi aiglx alsa amrr ao aotuv apache2 asf atlas auctex audacious audiofile automount beagle berkdb bitmap-fonts blas bluetooth bonobo boo bzip2 cairo cardbus cdda cddb cdf cdio cdpara
noia cdr cgi chm cli corba cracklib crypt cups curl daap dbus device-mapper dga divx dlloader dmi dri dv dvb dvd dvdr dvi dxr3 dynagraph effects elf emacs emboss encode epiphany esd evo evolution examples exi
f expat fam fame ffmpeg fftw firefox fits flac fltk foomaticdb fortran fpx galago gdal gdbm geos gif gimp gimpprint ginac glade glitz gml gmp gnome gnuplot gnutls gphoto2 gpm graphviz grass gs gsl gsm gstream
er gtk guile hal hddtemp hdf hdf5 hlapi iconv icq id3 imagemagick innodb ipv6 isdnlog ithreads jabber java jbig john jp2 jpeg jpeg2k kexi ladspa lame lapack latex lcms ldap libgda libsamplerate lirc lua lzo l
zw mad madwifi math matroska midi mmx mmxext mng mod mono motif mozdevelop mozilla mozsvg mozxmlterm mp3 mp4live mpeg mpeg2 mplayer mudflap musicbrainz mysql mysqli nautilus ncurses neXt netcdf network nfs nl
s nntp nptl nptlonly ntfs numarray numeric ocaml octave odbc ogdi ogg ole opengl openmp pam pcre pdf perl plotutils plugin png posix postgres pppd preview-latex proj python qhull quicktime readline real refle
ction reiserfs rhythmbox rle rrdcgi rrdtool samba sdl session slang slp sndfile snmp sox speex spell spl sqlite sse sse2 ssl subtitles svg t1lib tcltk tcpd tetex theora threads thunderbird tidy tiff tk truety
pe truetype-fonts type1-fonts unicode userlocales utempter v4l2 vorbis wifi win32codecs wmf x86 xattr xemacs xext xine xml xmlreader xmlrpc xorg xpm xv xvid xvmc zlib zvbi" ALSA_CARDS="ali5451 als4000 atiixp 
atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym co
py dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" DVB_CARDS="usb-wt220u" ELIBC="glibc" INPUT_DEVICES="keyboard mouse s
ynaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de fr" USERLAND="GNU" VIDEO_CARDS="radeon vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Stefaan De Roeck (RETIRED) gentoo-dev 2007-08-28 15:30:13 UTC
Question: Did you intend to build it for 2.6.23-rc3 or for 2.6.22-gentoo-r5?

We're still sorting out support for 2.6.22, so 2.6.23 will have to wait until that is dealt with.  Any experiences with 2.6.22 and this version of openafs are welcomed on bug #185130.
Comment 2 Juergen Rose 2007-08-28 16:36:39 UTC
I started to build it for 2.6.23-rc3. Now I try to build it for 2.6.22-gentoo-r5.

I will send my remarks to bug #185130.
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2007-09-07 11:43:21 UTC
get the same result with kernel 2.6.23-rc5.

The kmem_cache* related errors are definetely because of kernel 2.6.23 since they changed the interface in those functions.
Comment 4 Sergey Temerkhanov 2007-09-10 12:15:34 UTC
Created attachment 130488 [details, diff]
Replace kmem_cache_t with struct kmem_cache

(In reply to comment #3)
> get the same result with kernel 2.6.23-rc5.
> 
> The kmem_cache* related errors are definetely because of kernel 2.6.23 since
> they changed the interface in those functions.
> 

kmem_cache_t had been marked as deprecated since 2.6.20.
Try the attached patch, please.
Comment 5 Stefaan De Roeck (RETIRED) gentoo-dev 2007-09-19 10:36:08 UTC
I seem to get

  CC [M]  /var/tmp/portage/net-fs/openafs-kernel-1.4.4_p20070724-r1/work/openafs-1.4.4/src/libafs/MODLOAD-2.6.23-rc6-MP/osi_vfsops.o
/var/tmp/portage/net-fs/openafs-kernel-1.4.4_p20070724-r1/work/openafs-1.4.4/src/libafs/MODLOAD-2.6.23-rc6-MP/osi_vfsops.c: In function 'afs_init_inodecache':
/var/tmp/portage/net-fs/openafs-kernel-1.4.4_p20070724-r1/work/openafs-1.4.4/src/libafs/MODLOAD-2.6.23-rc6-MP/osi_vfsops.c:312: error: too many arguments to function 'kmem_cache_create'
make[6]: *** [/var/tmp/portage/net-fs/openafs-kernel-1.4.4_p20070724-r1/work/openafs-1.4.4/src/libafs/MODLOAD-2.6.23-rc6-MP/osi_vfsops.o] Error 1

Seems that the prototype of kmem_cache_create changes from (linux-2.6.22-gen
too-r6):
struct kmem_cache *kmem_cache_create(const char *, size_t, size_t,
      unsigned long,
      void (*)(void *, struct kmem_cache *, unsigned long),
      void (*)(void *, struct kmem_cache *, unsigned long));
to (linux-2.6.23-rc6):
struct kmem_cache *kmem_cache_create(const char *, size_t, size_t,
      unsigned long,
      void (*)(void *, struct kmem_cache *, unsigned long));
Comment 6 Aad Dame 2007-10-13 10:12:26 UTC
Created attachment 133313 [details, diff]
Patch to compile on 2.6.23

This patch will allow openafs-kernel to compile on the 2.6.23 kernel
Comment 7 Stefaan De Roeck (RETIRED) gentoo-dev 2007-10-13 14:29:48 UTC
Patch applied in net-fs/openafs-kernel-1.4.5_pre1