[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Potentially serious problem with kernel-headers...



On 12 Jul 1998, Dale E. Martin wrote:

> Maybe I'm being alarmist here, but I think that I (and a few others) have
> bumped into a real problem with the kernel-headers package and the links in
> /usr/include.

The current libc6-dev no longer uses symlinks, but delivers the header
files directly to /usr/include/{linux,asm,scsi}. This quarantees the
compatible kernel headers are always available.

> 
> I'm the Debian maintainer of cdparanoia, a cd sampling program similar to
> cdda2wav.  I built the package on my machine when I was running 2.0.31.  I
> had kernel-headers-2.0.32 installed.  Recently I upgraded my kernel to
> 2.0.34 (manually), and suddenly my cdparanoia binary started segfaulting in
> a call to malloc.  (I traced through the memory allocation/usage very
> closely, and used electric fence and checker and saw NO problems.  The
> upstream author looked at the problem as well and suggested several
> things that didn't pan out.)
> 
> Today, as an experiment, I manually pointed the links in /usr/include/
> (linux and asm) to point at the header files in /user/src/linux-2.0.34.
> Recompilation with the links changed fixed the problem.  Apparently, some
> kernel interface changed and because I didn't previously move the links
> (which I'm not supposed to, right?), the old binary was incompatible with
> the new kernel!
> 
Once you use the newest libc6 there will be no links to move, and "no" you
are not supposed to move the links.

> Any ideas how to deal with this?

Please read the libc6 FAQ.debian on this subject.

If you "really" need to use 2.0.34 kernel headers for the package in
question, the correct way to get them is using the -I option on the
compiler command line, and include the specific headers from the desired
kernel.

Luck, 

Dwarf
--
_-_-_-_-_-   Author of "The Debian Linux User's Guide"  _-_-_-_-_-_-

aka   Dale Scheetz                   Phone:   1 (850) 656-9769
      Flexible Software              11000 McCrackin Road
      e-mail:  dwarf@polaris.net     Tallahassee, FL  32308

_-_-_-_-_-_- If you don't see what you want, just ask _-_-_-_-_-_-_-


--  
To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: