Find the answer to your Linux question:
Results 1 to 7 of 7
I hope to compile kernel (linux-2.6. under SUSE Linux 10.1 Code: make menuconfig But the error occured as follows: Code: HOSTCC scripts/kconfig/mconf.o scripts/kconfig/mconf.c:91: error: static declaration of ‘current_menu’ follows non-static ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    May 2008
    Posts
    9

    "make menuconfig" problem?


    I hope to compile kernel (linux-2.6. under SUSE Linux 10.1
    Code:
    make menuconfig
    But the error occured as follows:
    Code:
      HOSTCC  scripts/kconfig/mconf.o
    scripts/kconfig/mconf.c:91: error: static declaration of ‘current_menu’ follows non-static declaration
    scripts/kconfig/lkc.h:63: error: previous declaration of ‘current_menu’ was here
    make[1]: *** [scripts/kconfig/mconf.o] Error 1
    make: *** [menuconfig] Error 2
    Anyone can tell me why? and how can I using "make menuconfig" and compile the kernel?

    Thanks!

  2. #2
    Linux User dxqcanada's Avatar
    Join Date
    Sep 2006
    Location
    Canada
    Posts
    259
    Did you install all the required packages for kernel development ?



    Men occasionally stumble over the truth,
    but most of them pick themselves up
    and hurry off as if nothing had happened.

    Winston Churchill


    ... then the Unix-Gods created "man" ...

  3. #3
    Just Joined!
    Join Date
    May 2008
    Posts
    9
    I have already install all the packages for kernel development.

    When I use "make menuconfig" to make the kernel of SUSE Linux 10.1, there is no problem.
    But I make the kernel (linux-2.6., the problem occur.

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User dxqcanada's Avatar
    Join Date
    Sep 2006
    Location
    Canada
    Posts
    259
    What kernel are you compiling ?

    Could be problem with your kernel headers ... did you update that also ?



    Men occasionally stumble over the truth,
    but most of them pick themselves up
    and hurry off as if nothing had happened.

    Winston Churchill


    ... then the Unix-Gods created "man" ...

  6. #5
    Administrator MikeTbob's Avatar
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    7,864
    I saw a similar thread on another forum awhile back, these guys were discussing the same problem and thought that it might be related to the header files, he upgraded to a newer kernel and header files then everything worked just Dandy after that.
    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.

  7. #6
    Linux Guru
    Join Date
    Nov 2007
    Location
    Córdoba (Spain)
    Posts
    1,513
    Quote Originally Posted by jlam View Post
    I hope to compile kernel (linux-2.6. under SUSE Linux 10.1
    Code:
    make menuconfig
    But the error occured as follows:
    Code:
      HOSTCC  scripts/kconfig/mconf.o
    scripts/kconfig/mconf.c:91: error: static declaration of ‘current_menu’ follows non-static declaration
    scripts/kconfig/lkc.h:63: error: previous declaration of ‘current_menu’ was here
    make[1]: *** [scripts/kconfig/mconf.o] Error 1
    make: *** [menuconfig] Error 2
    Anyone can tell me why? and how can I using "make menuconfig" and compile the kernel?

    Thanks!
    Are you using custom patches or something? And, why do you want to use 2.6.8? It's quite old. Try a newer kernel.

    Quote Originally Posted by dxqcanada View Post
    What kernel are you compiling ?

    Could be problem with your kernel headers ... did you update that also ?
    No. The kernel headers package is what user land programs use when they need to know something about the kernel (at least that's the intended way, and what it should be).

    The kernel has it's own headers and don't need a external package to get them. That is, ... unless the SuSE packages are sooo weird.

  8. #7
    Linux Newbie
    Join Date
    Mar 2008
    Location
    Hyderabad
    Posts
    109
    Open SUSE 10.1 has a kernel version 2.6.16 i guess, an a new gcc compiler.
    2.6.0 is very old version,
    New kernels fix various bugs of the older on's so whenever you will compile an old kernel with a better gcc errors will be there.
    As suggested by many of the member above go for a new kernel and greater than what you are running will be a better option

Posting Permissions

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