On Sat, Mar 27, 2004 at 10:01:57PM -0700, Soren Harward wrote: > So I was having some issues emerging mplayer again, this time because of a > parse error due to an undefined type, "atomic_t", in > "/usr/include/linux/fb.h". So the challenge became "where exactly in the > linux source code is atomic_t defined?" So after a little Googling, I found > exactly what I was looking for: > > http://lxr.linux.no/ident > > It's a site that will let you search through the kernel source for a > particular identifier. I put in "atomic_t" and find out it's defined in > "asm/atomic.h", and get a list of all the files that reference the symbol, > including "fb.h". So I add > > #include <asm/atomic.h> > > to the beginning of fb.h, and everything is happy again. > > Open Source Success Story #3492
Development Failure Story #9434. Userspace programs should *never* include kernel header files, if there is any possible way for them not to do so (sysfs is now part of the 2.6 kernel, by the way): http://www.cs.helsinki.fi/linux/linux-kernel/2001-22/0922.html http://lwn.net/Articles/51780/ BTW, what version of MPlayer are you dealing with? 1.0pre3 does not appear to include atomic.h anywhere... And lxr.linux.no is the first bookmark on my bookmark toolbar. It is an indespensible for kernel hackers. Mike .___________________________________________________________________. Michael A. Halcrow Security Software Engineer, IBM Linux Technology Center GnuPG Fingerprint: 05B5 08A8 713A 64C1 D35D 2371 2D3C FDDA 3EB6 601D Friends don't let friends do Windows.
pgp00000.pgp
Description: PGP signature
____________________ BYU Unix Users Group http://uug.byu.edu/ ___________________________________________________________________ List Info: http://uug.byu.edu/cgi-bin/mailman/listinfo/uug-list
