[slackintosh-users] Re: kernel headers

On Tue, Apr 10, 2007 at 09:54:03PM +0200, Adrian Ulrich wrote:
> Hello Joost,
> 
> > I suspect the entire distro was compiled against a
> > 2.6 kernel.
> 
> No. Slackintosh 11.0 was compiled using 2.4 kernel headers.

ah, ok. i see.

> The 2.6 kernel headers are only there because some additional software
> refuses/breaks usting 2.4 kernel headers (like Mplayer did..)
> 
> Could you post the error output from gcc while compiling
> mol/pbbuttonsd ?

============

mol gives me this:

+ Entering kmod
+ Entering Linux

  WARNING: Symbol version dump /usr/src/linux-2.6.17.13/Module.symvers
           is missing; modules will have no dependencies and modversions.

cc1: include/linux/autoconf.h: No such file or directory
/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.c:17:27: 
linux/version.h: No such file or directory
/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.c:19:5: warning: 
"LINUX_VERSION_CODE" is not defined
/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.c:19:27: warning: 
"KERNEL_VERSION" is not defined
/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.c:19:41: missing 
binary operator before token "("
/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.c:23:5: warning: 
"LINUX_VERSION_CODE" is not defined
/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.c:23:27: warning: 
"KERNEL_VERSION" is not defined
/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.c:23:41: missing 
binary operator before token "("
/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.c:26:28: 
linux/autoconf.h: No such file or directory
/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.c:29:5: warning: 
"LINUX_VERSION_CODE" is not defined
/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.c:29:26: warning: 
"KERNEL_VERSION" is not defined
/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.c:29:40: missing 
binary operator before token "("
/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.c:48: error: syntax 
error before "UTS_RELEASE"
make[6]: *** [/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod/_kuname.o] 
Error 1
make[5]: *** [_module_/home/joost/src/mol-0.9.72/obj-ppc/build/src/kmod] Error 2
nm: '../../../obj-ppc/build/src/kmod/Linux/..//mol.ko': No such file
nm: '../../../obj-ppc/build/src/kmod/Linux/..//mol.ko': No such file
checker.pl failed
rm: cannot remove `../../../obj-ppc/build/src/kmod/Linux/..//mol.ko': No such 
file or directory
make[4]: *** [all-local] Error 1
make[3]: *** [sub-Linux-all] Error 2
make[2]: *** [sub-kmod-all] Error 2
make[1]: *** [sub-src-all] Error 2
make: *** [auto-bootstrap] Error 2

===========

i'm not sure where mol is looking for include/linux/autoconf.h...

pbbuttons gives me the following:

===========

Compiling driver_backlight_pmu.c:                                     [ERROR]  
  gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../intl -I../libpbbipc -I/usr/include/glib
  -2.0 -I/usr/lib/glib-2.0/include -g -O2 -c driver_backlight_pmu.c
  driver_backlight_pmu.c: In function `pmubl_get_brightness':
  driver_backlight_pmu.c:90: error: `__u32' undeclared (first use in this funct
  ion)
  driver_backlight_pmu.c:90: error: (Each undeclared identifier is reported onl
  y once
  driver_backlight_pmu.c:90: error: for each function it appears in.)
  driver_backlight_pmu.c:90: error: syntax error before ')' token
  driver_backlight_pmu.c: In function `pmubl_set_brightness':
  driver_backlight_pmu.c:131: error: `__u32' undeclared (first use in this func
  tion)
  driver_backlight_pmu.c: In function `driver_backlight_pmu_init':
  driver_backlight_pmu.c:176: error: `__u32' undeclared (first use in this func
  tion)
  driver_backlight_pmu.c:176: error: syntax error before ')' token
make[2]: *** [driver_backlight_pmu.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

===========

i ran configure with:

./configure LAPTOP=powerbook --prefix=/usr --sysconfdir=/etc --without-pmud

pbbuttonsd isn't really something i need to recompile. (the problem i'm
having with it is probably not going away with the newer version anyway...)
but the mol package in slackintosh 11.0 does not seem to come with mol-img,
and since i don't fancy wiping out a partition to install OS X, i kinda
need it... (AFAICT, at least.)

-- 
Joost Kremers, PhD
University of Cologne
Institute for German Language and Literature
Albertus Magnus Platz
50923 Cologne, Germany
Tel. +49 221 / 4703807

Other related posts: