Glibc and kernel headers

I noticed that glibc depends in kernel-headers, and that they are the headers of the 2.6.23.1 kernel and the current kernel is 2.6.23, futhermore, kernel-headers has one directory, for it's headers, and in /usr/src there is another one for another headers, my question is
Must glibc use the headers of the kernel in wich it was compiled?
just curiosity

ornitorrincos wrote:Must glibc use the headers of the kernel in wich it was compiled?
Ideally...  however, up until the headers were provided with the kernel, the sanitized headers package lagged a bit behind the kernel version.  So I guess it is not essential.

Similar Messages

  • [SOLVED] VMplayer no kernel headers

    Hello all,
    Just installed VMPlayer via the following link:
    https://wiki.archlinux.org/index.php/VM … n.2FPlayer
    and when I run vmware-modconfig --console --install-all  I receive the following error:
    gcc and kernel headers must be installed.
    I installed via:
    pacman -S base-devel
    It appeared to install everything, however I still get the error.
    I checked this link:
    https://bbs.archlinux.org/viewtopic.php?id=75988
    but that was not for player.
    all help is appreciated.
    --nixIT
    Last edited by nixIT (2011-10-10 02:18:18)

    It's written right here: https://wiki.archlinux.org/index.php/VM … m.5B....5D :-)

  • Pacman -R kernel-headers

    "error: failed to prepare transaction (could not satisfy dependencies)
    :: glibc: requires kernel-headers>=2.6.25.6
    I compile my own x64 latest kernel from kernel.org but I'd like to get rid of the existing kernel-headers. I dont know what is the problem but it wont let me do  that.

    darthaxul wrote:
    I didnt care about it matching up or anything like that I just wanted to get rid of that package bacuse I had newer kernel headers.
    pacman -Q kern |grep kern....shows nothing...it musta worked.
    It's not really an achievement to force-remove a package.  The question is whether there will be consequences to removing it?  If I were you I'd listen when a developer tells you that a given package is necessary...  I mean, "I just wanted to get rid of that package bacuse I had newer kernel headers" is not a particularly good argument.
    Last edited by fwojciec (2008-09-30 21:47:51)

  • Kernel-headers and kernel26-beyond out of sync?

    Hello,
    I am using kernel26-beyond (currently at 2.6.19), but every time a vanilla kernel gets upgraded, I get kernel-headers upgraded also (currently at 2.6.20). I wonder if wouldn't be better if there was different kernel-headers-beyond package for kernel26-beyond kernels? I am just afraid I could have problems while compiling some programs while vanilla and beyond variants of kernel are out of sync.
    I imagine this is valid for other variants of kernels as well.
    Another solution would be to release all the kernel variants at the same time, but I don;'t know if it would be possible.
    Regards,
    miko

    mykey wrote:Just to get this straight - only when glibc is compiled against new kernel-headers (e.g. 2.6.21) it is safe to upgrade kernel-headers (to 2.6.21) even if the used kernel version is still 2.6.19 ?
    yes, and glibc will be recompiled when the kernel headers are updated, so you're able to upgrade safely.
    You can use any kernel you like (within reason), it doesnt have to match the kernel-headers version.

  • Ppc glibc: problem with kernel-headers dependency

    I wasn't sure where to post this... After attempting to follow the tutorial Wii Tutorial here: http://wiki.archlinux.org/index.php/Wii_Tutorial I discovered that the kernel-headers dependency of glibc is set to the wrong version. The dependency is kernel-headers version 2.6.29.4. However, in the repository, the current version is 2.6.29.1-1. I'm not sure what's going on here.

    DaNiMoTh wrote:
    Fixed with release of 2.6.29.4 kernel-headers package. Next time, fill the bug on our flyspray ( bugs.archlinux.org ), we'll correct much faster.
    Thanks
    ppc architecture is not supported by archlinux.org . the project is supported by http://archlinuxppc.org/
    Last edited by wonder (2009-11-20 19:23:11)

  • [Solved] Latest glibc and binutils and skype

    I have noticed that since the last update to glibc and binutils it is not possible to input non-english characters in skype, they will be converted to a question mark inside a black square.
    Downgrading to the previous packages solves the problem, however it doesn't seem to be a good idea to ignore the upgrade of these packages for too long.
    Any ideas on how to work around this?
    I guess I should probably submit a bug report but it's a bit late here already and I'd like to read some comments on this first.
    Edit:
    Marking as solved.
    Last edited by R00KIE (2009-11-12 11:18:42)

    I got another program written in c++ wich uses the opengl (i made it myself) that is not working now.
    I updated the gcc + gcc-libs + glibc + kernel + kernel headers
    you got the output of the app here:
    http://dpaste.com/119511/
    I'm running the i686 arch
    ~ $ pacman -Qs glibc
    local/glibc 2.11-1 [31,59 MB] (base)
        GNU C Library
    Last edited by quarkup (2009-11-12 11:20:57)

  • Pacman fails. gcc-uclibc: requires kernel-headers- What's this???

    After my last update a few weeks ago, I always get this.  I've updated kernel, pacman, and initscripts manually, and messed with pacman.conf for days.
    Read countless forums posts, googled for hours, tried many "solutions" and can't figure this out.  (enable/disable different repos, SigLevels, db refreshes, etc.)
    gcc-uclibc kernel-headers don't seem to exist, and only a few references (of no help, and old)) show up in all my searching.
    My system boots normally, and is running OK- just can't get pacman to work, and can't get past this blocker
    Can anyone point me in the right direction?  Has anyone even seen this gcc-uclibc/kernel-headers error recently. 
    root@myhost wrc]# pacman -Syu
    :: Synchronizing package databases...
    testing                                               185.0   B  20.2K/s 00:00 [#############################################] 100%
    testing is up to date
    core                                                  185.0   B  2.15M/s 00:00 [#############################################] 100%
    core is up to date
    extra                                                 185.0   B  2.76M/s 00:00 [#############################################] 100%
    extra is up to date
    community                                             185.0   B  2.76M/s 00:00 [#############################################] 100%
    community is up to date
    :: Starting full system upgrade...
    :: Replace pyxdg with extra/python2-xdg? [Y/n] Y
    resolving dependencies...
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: gcc-uclibc: requires kernel-headers
    [root@myhost wrc]#
    Last edited by wrc1944 (2012-07-13 16:43:49)

    gcc-uclibc is not on my system.  I'm following instructions on the issues 2 section of the above mentioned wiki page, and have gotten the list down to this:
    [root@myhost wrc]# find /lib -exec pacman -Qo -- '{}' \+
    error: cannot determine ownership of directory '/lib'
    /lib/libpthread.so.0 is owned by glibc 2.15-12
    /lib/libnss_nis.so.2 is owned by glibc 2.15-12
    /lib/libthread_db.so.1 is owned by glibc 2.15-12
    /lib/libnss_dns.so.2 is owned by glibc 2.15-12
    /lib/ld64-uClibc-0.9.30.1.so is owned by uclibc-runtime 0.9.30.1-4
    /lib/libnss_files-2.15.so is owned by glibc 2.15-12
    /lib/libm-2.15.so is owned by glibc 2.15-12
    /lib/libnss_compat.so.2 is owned by glibc 2.15-12
    /lib/libnss_db.so.2 is owned by glibc 2.15-12
    /lib/libm.so.6 is owned by glibc 2.15-12
    /lib/libpcprofile.so is owned by glibc 2.15-12
    /lib/libc.so.6 is owned by glibc 2.15-12
    /lib/ld64-uClibc.so.0 is owned by uclibc-runtime 0.9.30.1-4
    /lib/libnss_nisplus.so.2 is owned by glibc 2.15-12
    /lib/librt.so.1 is owned by glibc 2.15-12
    /lib/libcidn.so.1 is owned by glibc 2.15-12
    /lib/libanl-2.15.so is owned by glibc 2.15-12
    /lib/libBrokenLocale-2.15.so is owned by glibc 2.15-12
    /lib/libnss_nisplus-2.15.so is owned by glibc 2.15-12
    /lib/libutil-2.15.so is owned by glibc 2.15-12
    /lib/libdl-2.15.so is owned by glibc 2.15-12
    /lib/libresolv-2.15.so is owned by glibc 2.15-12
    /lib/libnss_db-2.15.so is owned by glibc 2.15-12
    /lib/ld-linux-x86-64.so.2 is owned by glibc 2.15-12
    /lib/ld-linux.so.2 is owned by lib32-glibc 2.15-10
    /lib/libnss_hesiod.so.2 is owned by glibc 2.15-12
    /lib/libanl.so.1 is owned by glibc 2.15-12
    /lib/libcrypt-2.15.so is owned by glibc 2.15-12
    /lib/libnss_files.so.2 is owned by glibc 2.15-12
    /lib/libSegFault.so is owned by glibc 2.15-12
    /lib/libdl.so.2 is owned by glibc 2.15-12
    /lib/libnsl-2.15.so is owned by glibc 2.15-12
    /lib/libBrokenLocale.so.1 is owned by glibc 2.15-12
    /lib/libnss_nis-2.15.so is owned by glibc 2.15-12
    /lib/librt-2.15.so is owned by glibc 2.15-12
    /lib/libnsl.so.1 is owned by glibc 2.15-12
    /lib/libc-2.15.so is owned by glibc 2.15-12
    /lib/libcidn-2.15.so is owned by glibc 2.15-12
    /lib/libnss_hesiod-2.15.so is owned by glibc 2.15-12
    /lib/libcrypt.so.1 is owned by glibc 2.15-12
    /lib/libresolv.so.2 is owned by glibc 2.15-12
    /lib/libnss_dns-2.15.so is owned by glibc 2.15-12
    /lib/libnss_compat-2.15.so is owned by glibc 2.15-12
    /lib/libpthread-2.15.so is owned by glibc 2.15-12
    /lib/ld-2.15.so is owned by glibc 2.15-12
    /lib/libutil.so.1 is owned by glibc 2.15-12
    /lib/libmemusage.so is owned by glibc 2.15-12
    /lib/libthread_db-1.0.so is owned by glibc 2.15-12
    [root@myhost wrc]#
    However, pacman -Su still gives the blocking error:
    [root@myhost wrc]# pacman -Su
    :: Starting full system upgrade...
    :: Replace pyxdg with extra/python2-xdg? [Y/n] Y
    resolving dependencies...
    looking for inter-conflicts...
    error: failed to prepare transaction (could not satisfy dependencies)
    :: gcc-uclibc: requires kernel-headers
    [root@myhost wrc]#
    The next step gives me this, supposedly all these need rebuilding?  How can this be, as I'm using the Arch Linux binary packages, and have never rebuilt (re-compiled anything?
    [root@myhost wrc]# grep -R --include files "^lib/" /var/lib/pacman/local/
    /var/lib/pacman/local/uclibc-runtime-0.9.30.1-4/files:lib/
    /var/lib/pacman/local/uclibc-runtime-0.9.30.1-4/files:lib/ld64-uClibc-0.9.30.1.so
    /var/lib/pacman/local/uclibc-runtime-0.9.30.1-4/files:lib/ld64-uClibc.so.0
    /var/lib/pacman/local/lib32-glibc-2.15-10/files:lib/
    /var/lib/pacman/local/lib32-glibc-2.15-10/files:lib/ld-linux.so.2
    /var/lib/pacman/local/glibc-2.15-12/files:lib/
    /var/lib/pacman/local/glibc-2.15-12/files:lib/ld-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/ld-linux-x86-64.so.2
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libBrokenLocale-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libBrokenLocale.so.1
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libSegFault.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libanl-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libanl.so.1
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libc-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libc.so.6
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libcidn-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libcidn.so.1
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libcrypt-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libcrypt.so.1
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libdl-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libdl.so.2
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libm-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libm.so.6
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libmemusage.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnsl-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnsl.so.1
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_compat-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_compat.so.2
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_db-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_db.so.2
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_dns-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_dns.so.2
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_files-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_files.so.2
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_hesiod-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_hesiod.so.2
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_nis-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_nis.so.2
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_nisplus-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libnss_nisplus.so.2
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libpcprofile.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libpthread-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libpthread.so.0
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libresolv-2.15.so"pacman -Qdt"
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libresolv.so.2
    /var/lib/pacman/local/glibc-2.15-12/files:lib/librt-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/librt.so.1
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libthread_db-1.0.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libthread_db.so.1
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libutil-2.15.so
    /var/lib/pacman/local/glibc-2.15-12/files:lib/libutil.so.1
    /var/lib/pacman/local/hal-0.5.14-6/files:lib/
    /var/lib/pacman/local/hal-0.5.14-6/files:lib/udev/
    /var/lib/pacman/local/hal-0.5.14-6/files:lib/udev/rules.d/
    /var/lib/pacman/local/hal-0.5.14-6/files:lib/udev/rules.d/90-hal.rules
    [root@myhost wrc
    Quote on issue 2 from the wiki page:
    Issue 2: The final "pacman -Su" still has conflicts in /lib
    This means that you have files or folders still in /lib or pacman thinks a package apart from glibc still own /lib. You can see which package own files in /lib by using:
    find /lib -exec pacman -Qo -- '{}' \+
    If any package apart from glibc is listed as owning a file, that package needs to be updated to install its files in /usr/lib. Any files unowned by a package should be moved to /usr/lib and any directories within /lib need deleted (after they are empty...).
    If after this the "pacman -Su" still has conflicts with /lib, this is because a package on your system other than glibc thinks it owns the /lib folder. Such packages can be detected using:
    grep -R --include files "^lib/" /var/lib/pacman/local/
    These packages need rebuilding so as not to include the /lib directory. Then the final "pacman -Su" will successfully install glibc.
    You can confirm the update is complete by looking in your root directory to see that lib is a symlink to usr/lib.
    > ls -ld /lib
    lrwxrwxrwx   1 root root     7 Jul 11 21:10 lib -> usr/lib
    Last edited by wrc1944 (2012-07-13 21:06:54)

  • Problem with kernel-headers

    Hi,
    When I run this
    [root@localhost Server]# yum install kernel-headers
    I have got
    file /usr/include/linux/types.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/udf_fs_i.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/udp.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/uinput.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/uio.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/ultrasound.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/unistd.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/usbdevice_fs.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/utime.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/utsname.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/version.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/videodev.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/videodev2.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/videotext.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/virtio_blk.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/virtio_net.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/virtio_pci.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/virtio_ring.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/vt.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/wireless.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/xattr.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/linux/xfrm.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/mtd/inftl-user.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/mtd/mtd-abi.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/mtd/mtd-user.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/mtd/nftl-user.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/sound/asequencer.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/sound/asound.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/sound/asound_fm.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/sound/emu10k1.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/sound/hdsp.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/sound/hdspm.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/sound/sfnt_info.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    file /usr/include/video/sisfb.h from install of kernel-headers-2.6.18-308.1.1.0.1.el5.i386 conflicts with file from package kernel-uek-headers-2.6.32-200.13.1.el5uek.i686
    Error Summary
    But why do I see nothing by this?
    [root@localhost Server]# rpm -qa| grep kernel-headers
    [root@localhost Server]#
    Here is what I get
    [root@localhost ~]# cat /etc/redhat-release
    Red Hat Enterprise Linux Server release 5.8 (Tikanga)

    Thanks. I ran it and I got this confirmation
    =================================================================================================
    Package Arch Version Repository Size
    =================================================================================================
    Removing:
    kernel-uek-headers i686 2.6.32-200.13.1.el5uek installed 2.2 M
    Removing for dependencies:
    compat-glibc i386 1:2.3.4-2.26 installed 3.4 M
    compat-glibc-headers i386 1:2.3.4-2.26 installed 1.9 M
    gcc i386 4.1.2-52.el5 installed 9.6 M
    gcc-c++ i386 4.1.2-52.el5 installed 6.5 M
    gcc-gfortran i386 4.1.2-52.el5 installed 6.9 M
    gcc-gnat i386 4.1.2-52.el5 installed 33 M
    gcc-java i386 4.1.2-52.el5 installed 5.9 M
    gcc-objc i386 4.1.2-52.el5 installed 5.5 M
    gcc-objc++ i386 4.1.2-52.el5 installed 5.8 M
    gcc44 i386 4.4.6-3.el5.1 installed 17 M
    gcc44-c++ i386 4.4.6-3.el5.1 installed 10 M
    gcc44-gfortran i386 4.4.6-3.el5.1 installed 11 M
    glibc-devel i386 2.5-81.el5_8.1 installed 4.9 M
    glibc-headers i386 2.5-81.el5_8.1 installed 2.0 M
    systemtap i386 1.6-7.el5_8 installed 8.0 M
    Transaction Summary
    =================================================================================================
    Remove 16 Package(s)
    Reinstall 0 Package(s)
    Downgrade 0 Package(s)
    Is this ok [y/N]:
    But the items like the below
    compat-glibc i386 1:2.3.4-2.26 installed 3.4 M
    compat-glibc-headers i386 1:2.3.4-2.26 installed 1.9 M
    gcc i386 4.1.2-52.el5 installed 9.6 M
    gcc-c++ i386 4.1.2-52.el5 installed 6.5 M
    glibc-devel i386 2.5-81.el5_8.1 installed 4.9 M
    glibc-headers i386 2.5-81.el5_8.1 installed 2.0 M
    are really needed for my R12. What should be done next?
    Edited by: HuaMin on Apr 13, 2012 5:15 PM

  • Nvidia 173 and kernel 2.6.28 compile failure & nvidia 180 crashes

    **please if this the wrong place to post this tell me or transfer so i can know**
    Hey , im having troubles with my Nvidia driver for long time now i hope you can help me solve it out so theres the deal :
    my computer is : NVidia Geforce 9600 GT , intel E8400 core duo , rest aint important i think
    I used ubuntu with this computer on drivers 173 and 177 (nvidia) and its worked just fine. someday ubuntu upgrades it to the 180 series and from then X never started. so i used my Windows XP some where the 180 drivers wasnt so well functional and crashed pretty much alot. then i downloaded opensuse 11 where i hoped my problems will be solved but instead all i got is :
    [images]
    http://img18.imageshack.us/img18/9379/dsaf.png
    http://img516.imageshack.us/img516/9462/dsaa.png
    [images]
    **this problem occur randomly after X amount of time**
    **when this happen on gnome in arch its or im realy lucky to hit the "alt + F2" and execute "metacity --replace" in time so i will have approx 40 seconds before its happen again to save all my things and restart X , if im not lucky X freeze and computer freeze and i must hard reset**
    i moved from opensuse because its was very slow boot time and because of the graphic drivers in this stage i got myself Arch x86_64 CD , followed the wiki configured network and xorg and everything also installed the "nvidia" package via packman its worked for some time (1 day ?) and then very same problem of opensuse occur . so i tried every driver after the 180.22 , EVERY of them up to the latest beta 185 . ALL of them result the same thing , (expect 185 which there the GPU wont produce red singals).
    for the record : my opensuse was x86_64 , my ubuntu was x86 , and with arch i used x86_64 first and now im using x86. same problem occur in both x86 and x86_64
    i wrote all this to give you a better idea of my problem so maybe anyone will have a soulation. and maybe someone else will find it usefull will help anyone in the future.
    all i want to do is to downgrage back to 173 drivers where i know its worked with ubuntu without any problems at all but i cant theres the actual problem :
    when trying to install from the package itsself (sh NVIDIA-Linux-x86-173.14.12-pkg0.run ) i get this :
    ERROR: If you are using a Linux 2.4 kernel, please make sure
    you either have configured kernel sources matching your
    kernel or the correct set of kernel headers installed
    on your system.
    If you are using a Linux 2.6 kernel, please make sure
    you have configured kernel sources matching your kernel
    installed on your system. If you specified a separate
    output directory using either the "KBUILD_OUTPUT" or
    the "O" KBUILD parameter, make sure to specify this
    directory with the SYSOUT environment variable or with
    the equivalent nvidia-installer command line option.
    Depending on where and how the kernel sources (or the
    kernel headers) were installed, you may need to specify
    their location with the SYSSRC environment variable or
    the equivalent nvidia-installer command line option.
    so i went and tried to use the package build i fetch the PKGBUILD and nvidia.install files from here :
    http://repos.archlinux.org/viewvc.cgi/n … iew=markup
    http://repos.archlinux.org/viewvc.cgi/n … iew=markup
    and then i changed the kernel requirement (my kernel : 2.6.28-ARCH)
    so both of my files looks like this :
    PKGBUILD :
    pkgname=nvidia
    pkgver=173.14.12
    _kernver='2.6.28-ARCH'
    pkgrel=1
    pkgdesc="NVIDIA drivers for kernel26."
    arch=('i686' 'x86_64')
    [ "$CARCH" = "i686" ] && ARCH=x86
    [ "$CARCH" = "x86_64" ] && ARCH=x86_64
    url="http://www.nvidia.com/"
    depends=('kernel26>=2.6.27' 'kernel26<2.6.29' 'nvidia-utils')
    conflicts=('nvidia-96xx' 'nvidia-71xx' 'nvidia-legacy')
    license=('custom')
    install=nvidia.install
    source=(http://us.download.nvidia.com/XFree86/Linux-$ARCH/${pkgver}/NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run)
    md5sums=('76b8eba1b14fc273a1a4044705b0aa56')
    [ "$CARCH" = "x86_64" ] && md5sums=('8675e4ca65033b343c8c77b2ce82e71d')
    build()
    # Extract
    cd $startdir/src/
    sh NVIDIA-Linux-$ARCH-${pkgver}-pkg0.run --extract-only
    cd NVIDIA-Linux-$ARCH-${pkgver}-pkg0
    # Any extra patches are applied in here...
    cd usr/src/nv/
    ln -s Makefile.kbuild Makefile
    make SYSSRC=/lib/modules/${_kernver}/build module || return 1
    # install kernel module
    mkdir -p $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
    install -m644 nvidia.ko $startdir/pkg/lib/modules/${_kernver}/kernel/drivers/video/
    sed -i -e "s/KERNEL_VERSION='.*'/KERNEL_VERSION='${_kernver}'/" $startdir/*.install
    nvidia.install
    # arg 1: the new package version
    post_install() {
    KERNEL_VERSION='2.6.28-ARCH'
    depmod -v $KERNEL_VERSION > /dev/null 2>&1
    # arg 1: the new package version
    # arg 2: the old package version
    post_upgrade() {
    post_install $1
    rmmod nvidia || echo 'In order to use the new nvidia module, exit Xserver and unload it manually.'
    # arg 1: the old package version
    post_remove() {
    KERNEL_VERSION='2.6.28-ARCH'
    depmod -v $KERNEL_VERSION > /dev/null 2>&1
    op=$1
    shift
    $op $*
    installed deps : pacman -S nvidia-utils
    and now i built the package hopefully its will work ,
    bash-3.2# makepkg -c --asroot
    ==> Making package: nvidia 173.14.12-1 i686 (Sat Mar 28 11:08:28 IDT 2009)
    ==> WARNING: Running makepkg as root...
    ==> Checking Runtime Dependencies...
    ==> Checking Buildtime Dependencies...
    ==> Retrieving Sources...
    -> Downloading NVIDIA-Linux-x86-173.14.12-pkg0.run...
    --2009-03-28 11:08:28-- http://us.download.nvidia.com/XFree86/Linux-x86/173.14.12/NVIDIA-Linux-x86-173.14.12-pkg0.run
    Resolving us.download.nvidia.com... 212.199.205.201, 212.199.205.216
    Connecting to us.download.nvidia.com|212.199.205.201|:80... connected.
    HTTP request sent, awaiting response... 200 OK
    Length: 11587505 (11M) [application/octet-stream]
    Saving to: `NVIDIA-Linux-x86-173.14.12-pkg0.run.part'
    100%[======================================>] 11,587,505 304K/s in 39s
    2009-03-28 11:09:08 (287 KB/s) - `NVIDIA-Linux-x86-173.14.12-pkg0.run.part' saved [11587505/11587505]
    ==> Validating source files with md5sums...
    NVIDIA-Linux-x86-173.14.12-pkg0.run ... Passed
    ==> Extracting Sources...
    ==> Starting build()...
    Creating directory NVIDIA-Linux-x86-173.14.12-pkg0
    Verifying archive integrity... OK
    Uncompressing NVIDIA Accelerated Graphics Driver for Linux-x86 173.14.12....................................................................................................................................
    If you are using a Linux 2.4 kernel, please make sure
    you either have configured kernel sources matching your
    kernel or the correct set of kernel headers installed
    on your system.
    If you are using a Linux 2.6 kernel, please make sure
    you have configured kernel sources matching your kernel
    installed on your system. If you specified a separate
    output directory using either the "KBUILD_OUTPUT" or
    the "O" KBUILD parameter, make sure to specify this
    directory with the SYSOUT environment variable or with
    the equivalent nvidia-installer command line option.
    Depending on where and how the kernel sources (or the
    kernel headers) were installed, you may need to specify
    their location with the SYSSRC environment variable or
    the equivalent nvidia-installer command line option.
    *** Unable to determine the target kernel version. ***
    make: *** [select_makefile] Error 1
    ==> ERROR: Build Failed.
    Aborting...
    bash-3.2#
    after a little search on google i understood that my kernel sources are missing (using the -e (expert) on nvidia installer let you set location but its no success on normal /lib/modules/2.6.28-ARCH/build)
    so how can i solve this and compile & install the 173 drivers on my i686 , arch , 2.6.28 ?
    thanks in advance for reading.

    After posting this message to the IRC channel , i was told that i can install the nvidia-173xx drivers , its seems to work but i can assure the problem would not occur again so ill just have to watch out, if you have any other fix for this please post.

  • [SOLVED] Missing Kernel Headers for Catalyst

    Hello Everyone,
    I am a new Arch guy! I am from the ubuntu world.  Love the new arch install, I have installed my own DE.
    I use a Radeon HD 68xx so I need the catalyst drivers.
    I have tried installing them via: sudo pacman -S catalyst-dkms catalyst-utils    (per the wiki)
    It gets to the end and gives me this message:
    DKMS: add completed.
    Error! echo
    Your kernel headers for kernel 3.6.2-1-ARCH cannot be found at
    /usr/lib/modules/3.6.2-1-ARCH/build or /usr/lib/modules/3.6.2-1-ARCH/source.
    error: command failed to execute correctly
    Can anybody assist on how I get the kernel headers?  As far as I understood, they should be included in Arch.
    Last edited by luis84 (2012-10-19 03:08:17)

    drewofdoom wrote:
    do this:
    sudo pacman -Sy linux-headers
    Don't use 'pacman -Sy foo' - it may lead to breakage https://bbs.archlinux.org/viewtopic.php?id=89328

  • [SOLVED] kernel-headers & VirtualBox. Still same problems! (

    Hi guys, i'm new to this forum, but i didn't found an answer anywhere! I'm trying to install VirtualBox 4.2.10 from terminal on my x86 Oracle Linux.
    Half year ago, when i tried first, i couldn't resolv the problem and still the same problem today - NO KERNEL HEADERS for ORACLE Linux in REPO! What did wrong after update? I can found headers only for RHEL original kernel, but i don't want to use 2.6.32 kernel version.
    Can someone help me and describe true and complete installation VirtualBox for Oracle Linux??? Thanks ahead!
    Edited by: 996048 on 25.03.2013 13:26
    Edited by: 996048 on 25.03.2013 13:30

    996048 wrote:
    Hi guys, i'm new to this forum, but i didn't found an answer anywhere! I'm trying to install VirtualBox 2.4.10 from terminal on my x86 Oracle Linux.
    Half year ago, when i tried first, i couldn't resolv the problem and still the same problem today - NO KERNEL HEADERS for ORACLE Linux in REPO! What did wrong after update? I can found headers only for RHEL original kernel, but i don't want to use 2.6.32 kernel version.
    Can someone help me and describe true and complete installation VirtualBox for Oracle Linux??? Thanks ahead!In spite of Rukbat's response, I don't see that we are dealing with a vbox issue .... yet.
    We can't know what you did wrong until you know what you did.
    Exactly What command did you issue? *Exactly what response did you get?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Download kernel-headers-2.6.18-8.el5.x86_64

    Hi
    please help me How to down load the kernel-headers-2.6.18-8.el5.x86_64 RPM
    please provide me the link
    Thanks
    simha

    Hi
    I download the soft ware and i taken form the DUMP and i try to install it showing the error like
    please suggest me to install the package..............
    rpm -Uvh kernel-headers-2.6.18-194.el5.x86_64.rpm
    Preparing... ########################################### [100%]
    file /usr/include/asm-generic/fcntl.h from install of kernel-headers-2.6.18-194.el5.x86_64 conflicts with file from package kernel-uek-headers-2.6.32-100.35.1.el5uek.x86_64
    file /usr/include/asm-generic/ioctl.h from install of kernel-headers-2.6.18-194.el5.x86_64 conflicts with file from package kernel-uek-headers-2.6.32-100.35.1.el5uek.x86_64
    file /usr/include/asm-generic/mman.h from install of kernel-headers-2.6.18-194.el5.x86_64 conflicts with file from package kernel-uek-headers-2.6.32-100.35.1.el5uek.x86_64
    file /usr/include/asm-generic/resource.h from install of kernel-headers-2.6.18-194.el5.x86_64 conflicts with file from package kernel-uek-headers-2.6.32-100.35.1.el5uek.x86_64
    Thanks
    simha

  • [solved] building the kernel headers for custom kernels

    well, ive been building several different kernels for my laptop, so that i can test stuff. but ive got a problem with the kernel headers.
    ive mirrored the arch kernel's PKGBUILD and modified some naming to get a custom kernel. but when i try to build a custmo module, it complains the headers are broken. (example, vbox_build_module).
    im pasting the pkgbuild here for future reference...if someone sees something thats plain wrong, please say so.
    thanks
    # $Id: PKGBUILD 60382 2009-12-04 15:31:11Z tpowa $
    # Maintainer: Tobias Powalowski <[email protected]>
    # Maintainer: Thomas Baechler <[email protected]>
    pkgbase="kernel26"
    #pkgname=('kernel26' 'kernel26-firmware' 'kernel26-headers') # Build stock -ARCH kernel
    pkgname=('kernel26-git' 'kernel26-git-headers') # Build kernel with a different name
    _kernelname=${pkgname#kernel26}
    pkgver=2.6.34
    pkgrel=1
    _patchname=""
    _branch="linux-2.6"
    _gittag="v2.6.34-rc3"
    #_gittag="origin"
    arch=(i686 x86_64)
    license=('GPL2')
    groups=('base')
    url="http://www.kernel.org"
    source=(config
    # standard config files for mkinitcpio ramdisk
    kernel26.preset
    ${_patchname})
    build() {
    cd ${srcdir}/$_branch
    msg "Fetching branch ${_branch}"
    ## FOR BISECT, Comment these lines
    git reset --hard
    git clean -d -f
    git fetch
    msg "Cheking out tag ${_gittag}"
    git checkout $_gittag
    ### a patch
    if [ "${_patchname}" != "" ]; then
    patch -Np1 -i ${srcdir}/$_patchname || return 1
    fi
    # if [ "$CARCH" = "x86_64" ]; then
    cat ../config.x86_64 >./.config
    # else
    cat ../config >./.config
    # fi
    if [ "${_kernelname}" != "" ]; then
    sed -i "s|CONFIG_LOCALVERSION=.*|CONFIG_LOCALVERSION=\"${_kernelname}\"|g" ./.config
    fi
    # get kernel version
    make prepare
    # load configuration
    # Configure the kernel. Replace the line below with one of your choice.
    make menuconfig # CLI menu for configuration
    #make xconfig # X-based configuration
    #make oldconfig # using old config from previous kernel version
    # ... or manually edit .config
    # stop here
    # this is useful to configure the kernel
    #msg "Stopping build"
    #return 1
    yes "" | make config
    # build!
    make bzImage modules || return 1
    package_kernel26-git() {
    pkgdesc="The Linux Kernel and modules"
    backup=(etc/mkinitcpio.d/${pkgname}.preset)
    depends=('coreutils' 'kernel26-firmware>=2.6.32' 'module-init-tools' 'mkinitcpio>=0.5.20')
    # pwc, ieee80211 and hostap-driver26 modules are included in kernel26 now
    # nforce package support was abandoned by nvidia, kernel modules should cover everything now.
    # kernel24 support is dropped since glibc24
    replaces=('kernel24' 'kernel24-scsi' 'kernel26-scsi'
    'alsa-driver' 'ieee80211' 'hostap-driver26'
    'pwc' 'nforce' 'squashfs' 'unionfs' 'ivtv'
    'zd1211' 'kvm-modules' 'iwlwifi' 'rt2x00-cvs'
    'gspcav1' 'atl2' 'wlan-ng26' 'rt2500')
    install=kernel26.install
    optdepends=('crda: to set the correct wireless channels of your country')
    KARCH=x86
    cd ${srcdir}/$_branch
    _kernver="$(make kernelrelease)"
    mkdir -p ${pkgdir}/{lib/modules,boot}
    make INSTALL_MOD_PATH=${pkgdir} modules_install || return 1
    cp System.map ${pkgdir}/boot/System.map26${_kernelname}
    cp arch/$KARCH/boot/bzImage ${pkgdir}/boot/vmlinuz26${_kernelname}
    # # add vmlinux
    install -m644 -D vmlinux ${pkgdir}/usr/src/linux-${_kernver}/vmlinux
    # install fallback mkinitcpio.conf file and preset file for kernel
    install -m644 -D ${srcdir}/kernel26.preset ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset || return 1
    # set correct depmod command for install
    sed \
    -e "s/KERNEL_NAME=.*/KERNEL_NAME=${_kernelname}/g" \
    -e "s/KERNEL_VERSION=.*/KERNEL_VERSION=${_kernver}/g" \
    -i $startdir/kernel26.install
    sed \
    -e "s|source .*|source /etc/mkinitcpio.d/kernel26${_kernelname}.kver|g" \
    -e "s|default_image=.*|default_image=\"/boot/${pkgname}.img\"|g" \
    -e "s|fallback_image=.*|fallback_image=\"/boot/${pkgname}-fallback.img\"|g" \
    -i ${pkgdir}/etc/mkinitcpio.d/${pkgname}.preset
    echo -e "# DO NOT EDIT THIS FILE\nALL_kver='${_kernver}'" > ${pkgdir}/etc/mkinitcpio.d/${pkgname}.kver
    # remove build and source links
    rm -f ${pkgdir}/lib/modules/${_kernver}/{source,build}
    # remove the firmware
    rm -rf ${pkgdir}/lib/firmware
    package_kernel26-git-headers() {
    pkgdesc="Header files and scripts for building modules for kernel26"
    mkdir -p ${pkgdir}/lib/modules/${_kernver}
    cd ${pkgdir}/lib/modules/${_kernver}
    ln -sf ../../../usr/src/linux-${_kernver} build
    cd ${srcdir}/$_branch
    install -D -m644 Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Makefile
    install -D -m644 kernel/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/kernel/Makefile
    install -D -m644 .config \
    ${pkgdir}/usr/src/linux-${_kernver}/.config
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include
    for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound trace video; do
    cp -a include/$i ${pkgdir}/usr/src/linux-${_kernver}/include/
    done
    # copy arch includes for external modules
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/x86
    cp -a arch/x86/include ${pkgdir}/usr/src/linux-${_kernver}/arch/x86/
    # copy files necessary for later builds, like nvidia and vmware
    cp Module.symvers ${pkgdir}/usr/src/linux-${_kernver}
    cp -a scripts ${pkgdir}/usr/src/linux-${_kernver}
    # fix permissions on scripts dir
    chmod og-w -R ${pkgdir}/usr/src/linux-${_kernver}/scripts
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/.tmp_versions
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel
    cp arch/$KARCH/Makefile ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    if [ "$CARCH" = "i686" ]; then
    cp arch/$KARCH/Makefile_32.cpu ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/
    fi
    cp arch/$KARCH/kernel/asm-offsets.s ${pkgdir}/usr/src/linux-${_kernver}/arch/$KARCH/kernel/
    # add headers for lirc package
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video
    cp drivers/media/video/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/
    for i in bt8xx cpia2 cx25840 cx88 em28xx et61x251 pwc saa7134 sn9c102 usbvideo zc0301; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    cp -a drivers/media/video/$i/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/video/$i
    done
    # add docbook makefile
    install -D -m644 Documentation/DocBook/Makefile \
    ${pkgdir}/usr/src/linux-${_kernver}/Documentation/DocBook/Makefile
    # add dm headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    cp drivers/md/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/md
    # add inotify.h
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/linux
    cp include/linux/inotify.h ${pkgdir}/usr/src/linux-${_kernver}/include/linux/
    # add wireless headers
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    cp net/mac80211/*.h ${pkgdir}/usr/src/linux-${_kernver}/net/mac80211/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/9912
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core
    cp drivers/media/dvb/dvb-core/*.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/dvb-core/
    # add dvb headers for external modules
    # in reference to:
    # http://bugs.archlinux.org/task/11194
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    cp include/config/dvb/*.h ${pkgdir}/usr/src/linux-${_kernver}/include/config/dvb/
    # add dvb headers for http://mcentral.de/hg/~mrec/em28xx-new
    # in reference to:
    # http://bugs.archlinux.org/task/13146
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/dvb/frontends/lgdt330x.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    cp drivers/media/video/msp3400-driver.h ${pkgdir}/usr/src/linux-${_kernver}/drivers/media/dvb/frontends/
    # add xfs and shmem for aufs building
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/mm
    cp fs/xfs/xfs_sb.h ${pkgdir}/usr/src/linux-${_kernver}/fs/xfs/xfs_sb.h
    # add headers vor virtualbox
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/drm $pkgdir/usr/src/linux-${_kernver}/include/
    # add headers for broadcom wl
    # in reference to:
    # http://bugs.archlinux.org/task/14568
    cp -a include/trace $pkgdir/usr/src/linux-${_kernver}/include/
    # copy in Kconfig files
    for i in `find . -name "Kconfig*"`; do
    mkdir -p ${pkgdir}/usr/src/linux-${_kernver}/`echo $i | sed 's|/Kconfig.*||'`
    cp $i ${pkgdir}/usr/src/linux-${_kernver}/$i
    done
    cd ${pkgdir}/usr/src/linux-${_kernver}/include && ln -s asm-$KARCH asm
    # add header for aufs2-util
    cp -a ${srcdir}/$_branch/include/asm-generic/bitsperlong.h ${pkgdir}/usr/src/linux-${_kernver}/include/asm/
    chown -R root.root ${pkgdir}/usr/src/linux-${_kernver}
    find ${pkgdir}/usr/src/linux-${_kernver} -type d -exec chmod 755 {} \;
    # remove unneeded architectures
    rm -rf ${pkgdir}/usr/src/linux-${_kernver}/arch/{alpha,arm,arm26,avr32,blackfin,cris,frv,h8300,ia64,m32r,m68k,m68knommu,mips,microblaze,mn10300,parisc,powerpc,ppc,s390,sh,sh64,sparc,sparc64,um,v850,xtensa}
    package_kernel26-firmware() {
    pkgdesc="The included firmware files of the Linux Kernel"
    groups=('base')
    cd ${srcdir}/$_branch
    make firmware || return 1
    make INSTALL_MOD_PATH=${pkgdir} firmware_install || return 1
    Last edited by eldragon (2010-04-04 14:58:16)

    ngoonee wrote:
    Check out this line
    for i in acpi asm-{generic,x86} config linux math-emu media net pcmcia scsi sound trace video; do
    for anything that might be missing. The error message when compiling would give you more of a clue. Off-hand, you may need to add 'generated', as I recall I needed that when the kernel moved to 2.6.33.
    Problem with vbox_build_module after Kernel update.
    Would you care to elaborate for us less versed in "Linux Geek" skills?
    Thanks.......
    [root@Arch2009p2 jeff]# vbox_build_module
    Building vboxdrv for Linux 2.6.33-ARCH
    make[1]: Entering directory `/opt/VirtualBox/src/vboxdrv'
    for f in . linux r0drv r0drv/generic r0drv/linux VBox common/err common/string common/log generic math/gcc; \
    do rm -f $f/*.o $f/.*.cmd $f/.*.flags; done
    rm -rf .vboxdrv* .tmp_ver* vboxdrv.* Module.symvers Modules.symvers modules.order
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxdrv'
    make[1]: Entering directory `/opt/VirtualBox/src/vboxnetflt'
    for f in . linux r0drv r0drv/linux VBox common/err common/string common/log generic math/gcc; \
    do rm -f $f/*.o $f/.*.cmd $f/.*.flags; done
    rm -rf .vboxnetflt* .tmp_ver* vboxnetflt.* Modules.symvers modules.order
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxnetflt'
    make[1]: Entering directory `/opt/VirtualBox/src/vboxnetadp'
    for f in . linux r0drv r0drv/linux VBox common/err common/string common/log generic math/gcc; \
    do rm -f $f/*.o $f/.*.cmd $f/.*.flags; done
    rm -rf .vboxnetadp* .tmp_ver* vboxnetadp.* Modules.symvers modules.order
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxnetadp'
    rm -f vboxdrv.ko vboxnetflt.ko vboxnetadp.ko
    *** Building 'vboxdrv' module ***
    make[1]: Entering directory `/opt/VirtualBox/src/vboxdrv'
    make KBUILD_VERBOSE= -C /lib/modules/2.6.33-ARCH/build SUBDIRS=/opt/VirtualBox/src/vboxdrv SRCROOT=/opt/VirtualBox/src/vboxdrv modules
    make[2]: Entering directory `/usr/src/linux-2.6.33-ARCH'
    CC [M] /opt/VirtualBox/src/vboxdrv/linux/SUPDrv-linux.o
    In file included from /opt/VirtualBox/src/vboxdrv/include/VBox/types.h:34,
    from /opt/VirtualBox/src/vboxdrv/linux/../SUPDrvInternal.h:39,
    from /opt/VirtualBox/src/vboxdrv/linux/SUPDrv-linux.c:37:
    /opt/VirtualBox/src/vboxdrv/include/iprt/types.h:100:30: error: linux/autoconf.h: No such file or directory
    make[3]: *** [/opt/VirtualBox/src/vboxdrv/linux/SUPDrv-linux.o] Error 1
    make[2]: *** [_module_/opt/VirtualBox/src/vboxdrv] Error 2
    make[2]: Leaving directory `/usr/src/linux-2.6.33-ARCH'
    make[1]: *** [vboxdrv] Error 2
    make[1]: Leaving directory `/opt/VirtualBox/src/vboxdrv'
    make: *** [all] Error 2

  • Arch 0.7.1 pre1 kernel headers

    i have read that the kernel headers are included with the kernel packages, which is very nice because i have a sagem fast 800 modem and i need to compile drivers for it. Except for when i installed arch a few days ago i tried to compile my module and just got kernel-sources cannot be found. Was there something with the headers in that packages or are they in a weird place? Can someone help i would really like to use arch linux.

    Probably, for your module, the kernel headers are not enough; it needs the sources. You can get them on kernel.org. Make sure you grab the right version.  I'm guessing that you need to put them in /usr/src/linux-$(uname -r). I've never messed much with  kernel/modules stuff.

  • Where are the kernel-headers?

    I'm trying to compile a gamepad driver but I don't know what directory to put into the makefile for the KERNEL_DIR section.  The guide I'm following is for Ubuntu and it has it in /usr/src but I can't seem to find a "kernel-headers" file.
    Thanks,
    Nathan

    Make sure that you have the kernel-headers package installed. Then you'll find them in /usr/src/linux-2.6.24-ARCH.

Maybe you are looking for