Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 16
on a regular emerge, today, glib-2.32.4-r1 was pulled (as reinstall) from portage. However, the update complained about a missing makefile in the source directory. please help me resolve this. Code: ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Oct 2012
    Posts
    15

    Lightbulb kernel problem - help


    on a regular emerge, today, glib-2.32.4-r1 was pulled (as reinstall) from portage. However, the update complained about a missing makefile in the source directory. please help me resolve this.
    Code:
    Found kernel source directory:
     *     /usr/src/linux
     * Could not find a Makefile in the kernel source directory.
     * Please ensure that /usr/src/linux points to a complete set of Linux sources
     * Unable to calculate Linux Kernel version for build, attempting to use running version
     * Checking for suitable kernel configuration options...
    Code:
    ~ # equery b glib
     * Searching for glib ...
    dev-libs/glib-1.2.10-r5 (/usr/lib/glib)
    dev-libs/glib-2.32.4-r1 (/usr/include/glib-2.0/glib)
    dev-libs/glib-2.32.4-r1 (/usr/share/gtk-doc/html/glib)
    More info could be found here, thanks.
    pastebin.com/N1XiC9nm
    Last edited by midway; 10-11-2012 at 11:08 AM. Reason: more info

  2. #2
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Do you have more than one kernel? Have you set the kernel yet?
    Code:
    eselect kernel list
    Code:
    eselect kernel set kernel#
    Where kernel# is one of the kernels listed in the first command.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  3. #3
    Just Joined!
    Join Date
    Oct 2012
    Posts
    15
    Code:
    src # ls -la /usr/src/
    total 8
    drwxr-xr-x  4 root root   92 Apr 12  2010 .
    drwxr-xr-x 13 root root 4096 Nov  1  2005 ..
    -rw-r--r--  1 root root    0 Aug 31  2005 .keep
    lrwxrwxrwx  1 root root   24 Apr 12  2010 linux -> linux-2.6.28-hardened-r9
    drwxr-xr-x  4 root root   84 Apr 12  2010 linux-2.6.28-hardened-r7
    drwxr-xr-x 22 root root 4096 Jul 28 18:21 linux-2.6.28-hardened-r9
    Code:
    # eselect kernel list
    Available kernel symlink targets:
      [1]   linux-2.6.28-hardened-r7
      [2]   linux-2.6.28-hardened-r9 *
    
    ~ # ls -al /usr/src/linux-2.6.28-hardened-r9/.config
    -rw-r--r-- 1 root root 88835 Apr 12  2010 /usr/src/linux-2.6.28-hardened-r9/.config
    I have tried upgrading to kernel 3.3.8 last month but the update didn't go through (because of some vmware issue with old ati drivers). So I set the old kernel back. Not sure if this information helps?

  4. $spacer_open
    $spacer_close
  5. #4
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Well, there should be a Makefile in the /usr/src/linux directory no matter which kernel it's pointing at. Do you have a Makefile in your kernel directory? If not then something is wrong and you might need to re-download it.
    Here is what my /usr/src/linux looks like.
    ls /usr/src/linux
    Code:
    arch     crypto         include  kernel       modules.builtin  REPORTING-BUGS  System.map  vmlinux.o
    b        Documentation  init     lib          modules.order    samples         tools
    block    drivers        ipc      MAINTAINERS  Module.symvers   scripts         usr
    COPYING  firmware       Kbuild   Makefile     net              security        virt
    CREDITS  fs             Kconfig  mm           README           sound           vmlinux
    Yours may be different because it's so old. Unless you have a good reason for not updating them you really need to find a way to update those kernels, it would make life easier in the long run. Latest Gentoo kernel is 3.6.0.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  6. #5
    Just Joined!
    Join Date
    Oct 2012
    Posts
    15
    hmm i seem to have a lot less and the makefile is missing, not sure but last depclean might have unmerged it?
    Code:
    ~ # ls /usr/src/linux
    Module.markers  System.map  block   drivers   fs          include  ipc     lib  modules.order  scripts   sound  virt     vmlinux.o
    Module.symvers  arch        crypto  firmware  grsecurity  init     kernel  mm   net            security  usr    vmlinux
    AFAIR, last time whilst upgrading to gentoo 3.3.8, it complained saying /dev/sda1 (special device doesnt exist).


    I have 2 other servers which have different entries to above:
    Code:
     server 1 ~ # ls /usr/src/linux    [this is on 3.3.8 and fully updated]
    COPYING        Kconfig         README          block     fs       kernel           modules.order  security  virt
    CREDITS        MAINTAINERS     REPORTING-BUGS  crypto    include  lib              net            sound     vmlinux
    Documentation  Makefile        System.map      drivers   init     mm               samples        tools     vmlinux.o
    Kbuild         Module.symvers  arch            firmware  ipc      modules.builtin  scripts        usr
    
    
     server 2~ # ls /usr/src/linux     [this is on linux-2.6.28-hardened-r9]
    COPYING  Documentation  MAINTAINERS  README          arch   crypto   firmware  grsecurity  init  kernel  mm   samples  security  usr
    CREDITS  Kbuild         Makefile     REPORTING-BUGS  block  drivers  fs        include     ipc   lib     net  scripts  sound     virt
    Last edited by midway; 10-11-2012 at 01:35 PM.

  7. #6
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Quote Originally Posted by midway View Post
    hmm i seem to have a lot less and the makefile is missing, not sure but last depclean might have unmerged it?
    Code:
    ~ # ls /usr/src/linux
    Module.markers  System.map  block   drivers   fs          include  ipc     lib  modules.order  scripts   sound  virt     vmlinux.o
    Module.symvers  arch        crypto  firmware  grsecurity  init     kernel  mm   net            security  usr    vmlinux
    AFAIR, last time whilst upgrading to gentoo 3.3.8, it complained saying /dev/sda1 (special device doesnt exist).


    I have 2 other servers which have different entries to above:
    Code:
     server 1 ~ # ls /usr/src/linux    [this is on 3.3.8 and fully updated]
    COPYING        Kconfig         README          block     fs       kernel           modules.order  security  virt
    CREDITS        MAINTAINERS     REPORTING-BUGS  crypto    include  lib              net            sound     vmlinux
    Documentation  Makefile        System.map      drivers   init     mm               samples        tools     vmlinux.o
    Kbuild         Module.symvers  arch            firmware  ipc      modules.builtin  scripts        usr
    
    
     server 2~ # ls /usr/src/linux     [this is on linux-2.6.28-hardened-r9]
    COPYING  Documentation  MAINTAINERS  README          arch   crypto   firmware  grsecurity  init  kernel  mm   samples  security  usr
    CREDITS  Kbuild         Makefile     REPORTING-BUGS  block  drivers  fs        include     ipc   lib     net  scripts  sound     virt
    If you did do a --depclean only the latest kernels are kept, the rest are unmerged. This could be your whole problem.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  8. #7
    Just Joined!
    Join Date
    Oct 2012
    Posts
    15
    sounds more like it.
    please guide me how to safely resolve this situation.

  9. #8
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Quote Originally Posted by midway View Post
    sounds more like it.
    please guide me how to safely resolve this situation.
    Which kernel are you using right now? The command below will tell you
    Code:
    uname -a
    You have -r7 and -r9. -r7 should have been removed, leaving you with only -r9. If you are still using -r9 you might be able to just
    Code:
    emerge kernel-sources
    Last edited by MikeTbob; 10-11-2012 at 02:06 PM. Reason: added code tags
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

  10. #9
    Just Joined!
    Join Date
    Oct 2012
    Posts
    15
    Code:
    ~ # eselect kernel list
    Available kernel symlink targets:
      [1]   linux-2.6.28-hardened-r7
      [2]   linux-2.6.28-hardened-r9 *
    
    ~ # uname -a
    Linux servername 2.6.28-hardened-r9 #1 SMP Mon Apr 12 17:02:47 BST 2010 i686 Intel(R) Xeon(R) CPU X5450 @ 3.00GHz GenuineIntel GNU/Linux
    Would this work? or i need to re-emerge the 2.6.28-r9?
    Code:
     
    
    ~ # emerge -av hardened-sources
    
    These are the packages that would be merged, in order:
    Calculating dependencies... done!
    [ebuild  N     ] sys-kernel/hardened-sources-3.5.4-r1  USE="symlink -build -deblob" 79,782 kB
    
    Total: 1 package (1 new), Size of downloads: 79,782 kB
    Would you like to merge these packages? [Yes/No] No
    Quitting.
    Last edited by midway; 10-11-2012 at 02:32 PM.

  11. #10
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    Quote Originally Posted by midway View Post
    Code:
    ~ # eselect kernel list
    Available kernel symlink targets:
      [1]   linux-2.6.28-hardened-r7
      [2]   linux-2.6.28-hardened-r9 *
    
    ~ # uname -a
    Linux servername 2.6.28-hardened-r9 #1 SMP Mon Apr 12 17:02:47 BST 2010 i686 Intel(R) Xeon(R) CPU X5450 @ 3.00GHz GenuineIntel GNU/Linux
    Would this work? or i need to re-emerge the 2.6.28-r9?
    Code:
     
    
    ~ # emerge -av hardened-sources
    
    These are the packages that would be merged, in order:
    Calculating dependencies... done!
    [ebuild  N     ] sys-kernel/hardened-sources-3.5.4-r1  USE="symlink -build -deblob" 79,782 kB
    
    Total: 1 package (1 new), Size of downloads: 79,782 kB
    Would you like to merge these packages? [Yes/No] No
    Quitting.
    It wants to update your kernel to the latest available. If you MUST keep this older kernel....I guess you could download it manually from kernel.org and go from there.
    I do not respond to private messages asking for Linux help, Please keep it on the forums only.
    All new users please read this.** Forum FAQS. ** Adopt an unanswered post.

    I'd rather be lost at the lake than found at home.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •