Hai,

The '-include include/linux/autoconf.h' is completely unexpected by
the configuration script.  Is this a debian/gentoo thing?  Or, a
2.6.15 thing?  At any rate, the configuration script will have to
be changed to change -include include/linux/autoconf.h to
-include ${linux_cv_kbuild}/include/linux/autoconf.h

Altering the produced Makefile does not help: the configure script
has already found the wrong result on many of its tests using the
mangled CPPFLAGS.  I'll see if I can put a brief patch together for
you.  (I haven't really tested Debian Sarge yet, but will eventually.)

--brian

On Wed, 01 Feb 2006, Hai Zaar wrote:

> Brian, sorry for the delay, but I'd like to continue the topic...
> 
> Well, LiS-2.18.2 on Gentoo with gentoo-sources-2.6.15-rc1:
> ./configure && make
> <snip>
> make[2]: Entering directory `/usr/src/LiS-2.18.2'
> if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include/sys/LiS  -DLIS=1
> -D__LIS_INTERNAL__ -imacros ./config.h -imacros
> ./include/sys/LiS/config.h -I./include -I./include -nostdinc
> -iwithprefix include -DLINUX -D__KERNEL__
> -I/lib/modules/2.6.15-gentoo-r1/build/include -Iinclude2
> -I/lib/modules/2.6.15-gentoo-r1/build/include -include
> include/linux/autoconf.h
> -I/lib/modules/2.6.15-gentoo-r1/build/include/asm-i386/mach-default
> -DKBUILD_BASENAME=streams -DMODULE  -D__NO_VERSION__ -DEXPORT_SYMTAB
> -DLIS_OBJNAME=`echo libLiShead_a-head | sed -e 's/^.*-//'`  -Wall
> -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
> -fno-common -ffreestanding -O2 -g -fomit-frame-pointer -pipe
> -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mcpu=pentium4
> -mregparm=3  -MT libLiShead_a-head.o -MD -MP -MF
> ".deps/libLiShead_a-head.Tpo" -c -o libLiShead_a-head.o `test -f
> 'head/head.c' || echo './'`head/head.c; \
> then mv -f ".deps/libLiShead_a-head.Tpo" ".deps/libLiShead_a-head.Po";
> else rm -f ".deps/libLiShead_a-head.Tpo"; exit 1; fi
> <command line>:16:1: include/linux/autoconf.h: No such file or directory
> make[2]: *** [libLiShead_a-head.o] Error 1
> 
> Hmm. It looks like it should be
> '-include /linux/autoconf.h', since just before you do
> -I/lib/modules/2.6.15-gentoo-r1/build/include.
> If temporary fix Makefile, adjusting KERNEL_CPPFLAGS to actually hold
> -include linux/autoconf.h, I'm able to compile:
> head/head.c
> head/dki.c
> head/mod.c
> head/buffcall.c
> head/event.c
> And then compilation of head/linux-mdep.c failes:
> if gcc -DHAVE_CONFIG_H -I. -I. -I. -I./include/sys/LiS  -DLIS=1
> -D__LIS_INTERNAL__ -imacros ./config.h -imacros
> ./include/sys/LiS/config.h -I./include -I./include -nostdinc
> -iwithprefix include -DLINUX -D__KERNEL__
> -I/lib/modules/2.6.15-gentoo-r1/build/include -Iinclude2
> -I/lib/modules/2.6.15-gentoo-r1/build/include -include
> linux/autoconf.h
> -I/lib/modules/2.6.15-gentoo-r1/build/include/asm-i386/mach-default
> -DKBUILD_BASENAME=streams -DMODULE  -D__NO_VERSION__ -DEXPORT_SYMTAB
> -DLIS_OBJNAME=`echo libLiShead_a-linux-mdep | sed -e 's/^.*-//'` 
> -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
> -fno-common -ffreestanding -O2 -g -fomit-frame-pointer -pipe
> -msoft-float -mpreferred-stack-boundary=2 -march=i686 -mcpu=pentium4
> -mregparm=3  -MT libLiShead_a-linux-mdep.o -MD -MP -MF
> ".deps/libLiShead_a-linux-mdep.Tpo" -c -o libLiShead_a-linux-mdep.o
> `test -f 'head/linux-mdep.c' || echo './'`head/linux-mdep.c; \
> then mv -f ".deps/libLiShead_a-linux-mdep.Tpo"
> ".deps/libLiShead_a-linux-mdep.Po"; else rm -f
> ".deps/libLiShead_a-linux-mdep.Tpo"; exit 1; fi
> head/linux-mdep.c: In function `lis_cdev_put':
> head/linux-mdep.c:1131: error: structure has no member named `refcount'
> head/linux-mdep.c: In function `lis_check_umem':
> head/linux-mdep.c:3646: warning: implicit declaration of function 
> `verify_area'
> head/linux-mdep.c: In function `lis_thread_runqueues':
> head/linux-mdep.c:4200: error: incompatible types in assignment
> make[2]: *** [libLiShead_a-linux-mdep.o] Error 1
> make[2]: Leaving directory `/usr/src/LiS-2.18.2'
> make[1]: *** [all-recursive] Error 1
> 
> I've attached config.log.
> 
> On 1/23/06, Brian F. G. Bidulock <[EMAIL PROTECTED]> wrote:
> > Hai,
> >
> > Try 2.18.2 available here: http://www.openss7.org/streams_pkg.html
> >
> > I haven't tried it on 2.6.15, but have on 2.6.14 (FC4).
> >
> > Better still, use Linux Fast-STREAMS.  I don't really want to maintain
> > LiS anymore as Linux Fast-STREAMS has proven superior in all aspects.
> I probably would use Fast-STREAMS, If I were starting.new project.
> Unfortunately I have some [EMAIL PROTECTED] (censored) old binary drivers for
> LiS, and each time I upgrade the kernel - nightmare comes back - I
> have to make them work with new LiS (and they were originally compiled
> against LiS-2.16.x)
> 
> >
> > --brian
> >
> > On Mon, 23 Jan 2006, Hai Zaar wrote:
> >
> > > Dear list,
> > >
> > > Did anyone try to compile LiS-2.18.1 under latest 2.6.15 kernel?
> > >
> > > Tell me if I'm the first one and I'll start posting error messages :)
> > > --
> > > Zaar
> > > _______________________________________________
> > > Linux-streams mailing list
> > > [email protected]
> > > http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams
> >
> > --
> > Brian F. G. Bidulock    ¦ The reasonable man adapts himself to the ¦
> > [EMAIL PROTECTED]    ¦ world; the unreasonable one persists in  ¦
> > http://www.openss7.org/ ¦ trying  to adapt the  world  to himself. ¦
> >                         ¦ Therefore  all  progress  depends on the ¦
> >                         ¦ unreasonable man. -- George Bernard Shaw ¦
> >
> 
> 
> --
> Zaar



-- 
Brian F. G. Bidulock    ¦ The reasonable man adapts himself to the ¦
[EMAIL PROTECTED]    ¦ world; the unreasonable one persists in  ¦
http://www.openss7.org/ ¦ trying  to adapt the  world  to himself. ¦
                        ¦ Therefore  all  progress  depends on the ¦
                        ¦ unreasonable man. -- George Bernard Shaw ¦
_______________________________________________
Linux-streams mailing list
[email protected]
http://gsyc.escet.urjc.es/mailman/listinfo/linux-streams

Reply via email to