Re: kernel.h question

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

 



begin: Erik Mouw <J.A.K.Mouw@its.tudelft.nl> quote
> On Mon, Nov 19, 2001 at 09:08:41AM -0800, Peter Jay Salzman wrote:
> > begin: Erik Mouw <J.A.K.Mouw@its.tudelft.nl> quote
> > > Heh, I just got this problem at hand. It turns out that stdarg.h is a
> > > compiler include file. On my system (Debian testing) it lives in
> > > /usr/lib/gcc-lib/i386-linux/2.95.4/include/stdarg.h . Because you told
> > > the compiler to blow away the standard include path (-nostdinc flag),
> > > it won't find it anymore.
> >  
> > the reason i used -nostdinc is because /usr/include/linux on debian woody is
> > 2.4.12, and i'm running 2.4.13.  i didn't want to start deleting files owned
> > by libc6-dev and replacing them with files from /usr/src/linux/include.
> 
> I have almost the same setup: debian woody (2.4.12 glibc headers) and
> running 2.4.15-pre5. Just don't supply -nostdinc and it will work, no
> gotchas involved (IOW: I use this every day).
 
really?  i'm giving a talk on devfs today, so i converted one of my toy
modules, grumpy.c, to use devfs.  it was giving me the stupid "can't
determine kernel version" error.  the kernel has modversioning support, but
it still wasn't working.

just for the sake of today's talk (i have more research to do before my
talk), i recompiled the kernel without modversioning support and compiled
against the /usr/src/linux/include files.  i'll figure out what went wrong
after my talk today.  i'm a bit nervous about talking about something that
i've been playing around with on such short notice.   i still need to figure
out whether changing /etc/fstab is as simple as replacing the old names for
the new names.  the number of devices in /dev/went from 1500 down to 400, and
most of the 400 are legacy symlinks.  i'd like to find out what else i need
to change aside from fstab in order to tell devfsd not to create the
symlinks.  i'd like to wow everyone at the meeting by showing them a /dev/
directory with so few files that it fits on one console screen.   :)

btw, today was the first day that i played around with using devfs in my
modules.  it took me all of 15 minutes to convert grumpy to using devfs calls.
i was amazed at how easy it was...

pete

-- 
"You may not use the Software in connection with any site that disparages
Microsoft, MSN, MSNBC, Expedia, or their products or services ..."
                    -- Clause from license for FrontPage 2002
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/



[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux