Re: Building LiS 2.18.0 on Linux 2.6 kernels (2.6.8-24smp SuSE 9.2)

dan_gora <[email protected]>
Newsgroups gmane.linux.kernel.streams
Message-ID <[email protected]>

I have gotten LiS to work on SuSE 9.2 Pro with kernel 2.6.8-24.

I had to do two things:

1) Fix exactly this compile error that you talked about.
Somewhere between 2.6.[34] and 2.6.8 they changed this silly kobj
thing to even further abstract that it's just a number.

You need to change (inode->i_cdev->kobj.refcount) to
(inode->i_cdev->kobj.kref.refcount).  Different is better.

On SuSE 9.2 the installation script guesses the wrong directory for
the linux source even if you have /usr/src/linux pointing at the
right place.  I haven't spent any time on figuring out why yet.  So
what I needed to do was just answer "n" to the "Are you going to use
LiS on this running kernel?" question and typed /usr/src/linux (which
is a link to /usr/src/linux/linux-2.6.8-24smp on my machine) when
prompted for the path to the kernel source.  This got it over the
hump.

One other thing... On my system, out of the box, the kernel source
tree wasn't quite in the right state.  I had to go to the kernel
source tree and type "make cloneconfig" to genereate a .config file
and what ever other assorted riff-raff that gets created and "make
modules_prepare" to genereate the programs which are used to turn the
.o files into the fancy new .ko files.

So that's pretty much it.  This compile time error was the only
compile error that I had, the rest is just getting the kernel source
environment set up correctly as outlined above.

Good Luck-
dan

--- Dave Grothe <[email protected]> wrote:

> >
> >
> >Hi Dave,
> >
> >I'm trying to install LiS-2.18 on a slackware-10.0 system running
> the
> >2.6.10 kernel.
> >
> >However, compiling fails;
> >
> >  <WD>     head/linux
> >  <CC>     gcc -DLiS -D__KERNEL__ -DVERSION_2 -Dccregparm=0 -Wall
> >-Wstrict-prototypes -fno-strict-aliasing -Wno-sign-compare
> -fno-common -O2
> >-mpreferred-stack-boundary=2 -DINLINE=inline -DSTATIC=static
> >-fomit-frame-pointer -I/usr/src/LiS-2.18/include
> >-I/lib/modules/2.6.10/build/include
> >-I/usr/src/linux-2.6.10/include/asm/mach-generic
> >-I/usr/src/linux-2.6.10/include/asm/mach-default -DRCVOID
> -DUSE_KMEM_CACHE
> >-DUSE_KMEM_TIMER -DLINUX -DUSE_KTHREAD -DMODULE
> >   CC      head/linux/head.o
> >   CC      head/linux/dki.o
> >   CC      head/linux/msg.o
> >   CC      head/linux/mod.o
> >/usr/src/LiS-2.18/head/mod.c: In function `lis_find_strdev':
> >/usr/src/LiS-2.18/head/mod.c:1252: warning: `inter_module_put' is
> >deprecated (declared at
> >/lib/modules/2.6.10/build/include/linux/module.h:582)
> >   CC      head/linux/buffcall.o
> >   CC      head/linux/mdep.o
> >In file included from /usr/src/LiS-2.18/head/mdep.c:26:
> >/usr/src/LiS-2.18/head/linux-mdep.c: In function `lis_cdev_put':
> >/usr/src/LiS-2.18/head/linux-mdep.c:1001: error: structure has no
> member
> >named `refcount'
> >make[2]: *** [mdep.o] Error 1
> >make[1]: *** [/usr/src/LiS-2.18/head/linux/streamshead.o] Error 2
> >make: *** [.config_mk] Error 2
> >
> >
> >Is LiS known to compile/run on 2.6 kernels (no mention of these in
> the
> >README) or are there known problems with LiS and kernel 2.6.10?
> >
> >Thanks in advance,
> >
> >   Harald
> >
> >--
> >A: Top Posters
> >Q: What is the most annoying thing on mailing lists?
> >
> >Harald H Hannelius | harald/a\arcada.fi      | GSM +358 50 594
> 1020
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.