Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12
Hey guys, ok, here's my problem: I'm trying to compile my 2.6.10 kernel (which has worked many times in the past) but when I try and run "make xconfig" i ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2005
    Location
    St. Louis, Missouri, USA
    Posts
    21

    Make Xconfig error


    Hey guys, ok, here's my problem:
    I'm trying to compile my 2.6.10 kernel (which has worked many times in the past) but when I try and run "make xconfig" i get this error message:
    Code:
    root@Slackware:~/linux-2.6.10# make xconfig
      HOSTCC  scripts/basic/fixdep
    In file included from /usr/include/bits/posix1_lim.h:126,
                     from /usr/include/limits.h:144,
                     from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
                     from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
                     from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
                     from scripts/basic/fixdep.c:113:
    /usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
    In file included from /usr/include/netinet/in.h:212,
                     from /usr/include/arpa/inet.h:23,
                     from scripts/basic/fixdep.c:115:
    /usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
    scripts/basic/fixdep.c: In function `use_config':
    scripts/basic/fixdep.c:201: error: `PATH_MAX' undeclared (first use in this function)
    scripts/basic/fixdep.c:201: error: (Each undeclared identifier is reported only once
    scripts/basic/fixdep.c:201: error: for each function it appears in.)
    scripts/basic/fixdep.c:201: warning: unused variable `s'
    scripts/basic/fixdep.c: In function `parse_dep_file':
    scripts/basic/fixdep.c:297: error: `PATH_MAX' undeclared (first use in this function)
    scripts/basic/fixdep.c:297: warning: unused variable `s'
    make[1]: *** [scripts/basic/fixdep] Error 1
    make: *** [scripts_basic] Error 2
    Any idea what packages/libraries I need to reinstall to get it to work properly?

    -Mike

  2. #2
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    It might be a problem with the xconfig, but I'm not sure. What does running:
    Code:
    make menuconfig
    say?

  3. #3
    Just Joined!
    Join Date
    Feb 2005
    Location
    St. Louis, Missouri, USA
    Posts
    21
    The output of "make menuconfig" is as follows:

    Code:
    root@Slackware:~/linux-2.6.10# make menuconfig
      HOSTCC  scripts/basic/fixdep
    In file included from /usr/include/bits/posix1_lim.h:126,
                     from /usr/include/limits.h:144,
                     from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:122,
                     from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/syslimits.h:7,
                     from /usr/lib/gcc-lib/i486-slackware-linux/3.3.4/include/limits.h:11,
                     from scripts/basic/fixdep.c:113:
    /usr/include/bits/local_lim.h:36:26: linux/limits.h: No such file or directory
    In file included from /usr/include/netinet/in.h:212,
                     from /usr/include/arpa/inet.h:23,
                     from scripts/basic/fixdep.c:115:
    /usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
    scripts/basic/fixdep.c: In function `use_config':
    scripts/basic/fixdep.c:201: error: `PATH_MAX' undeclared (first use in this function)
    scripts/basic/fixdep.c:201: error: (Each undeclared identifier is reported only once
    scripts/basic/fixdep.c:201: error: for each function it appears in.)
    scripts/basic/fixdep.c:201: warning: unused variable `s'
    scripts/basic/fixdep.c: In function `parse_dep_file':
    scripts/basic/fixdep.c:297: error: `PATH_MAX' undeclared (first use in this function)
    scripts/basic/fixdep.c:297: warning: unused variable `s'
    make[1]: *** [scripts/basic/fixdep] Error 1
    make: *** [scripts_basic] Error 2
    I think i'm just going to use some of my Windows troubleshooting skills and do a reinstall

    Anyways, thanks or your help!!

  4. #4
    Linux Guru loft306's Avatar
    Join Date
    Oct 2003
    Location
    The DairyLand
    Posts
    1,666
    hmmm did u
    Code:
    make clean
    befor you tried to run make xconfig or make menucanfig?

    if so then i would sugest trying new kernel sources
    ~Mike ~~~ Forum Rules
    Testing? What's that? If it compiles, it is good, if it boots up, it is perfect. ~ Linus Torvalds
    http://loft306.org

  5. #5
    tek
    tek is offline
    Just Joined!
    Join Date
    Feb 2005
    Location
    Silicon Valley
    Posts
    1

    missing directory

    Ran into the same thing, while i havent finished compiling my kernel yet i can at least run make menuconfig. What i did was to grab the include/asm-i386 directory and copy it to include/asm and rerun the command, fired right up.
    HTH

  6. #6
    Linux Guru lakerdonald's Avatar
    Join Date
    Jun 2004
    Location
    St. Petersburg, FL
    Posts
    5,035
    perhaps you only have the kernel headers installed, not the kernel itself?

  7. #7
    Linux Engineer
    Join Date
    Sep 2003
    Location
    Knoxhell, TN
    Posts
    1,078
    actually, that's a problem with the headers not being installed. install the kernel headers and then try again.
    Their code will be beautiful, even if their desks are buried in 3 feet of crap. - esr

  8. #8
    Just Joined!
    Join Date
    Jul 2003
    Location
    Harare, Zimbabwe
    Posts
    11
    did u finally manage? I had the same prob and i solved it by creating the following link
    Code:
    /usr/include/asm -> /usr/src/linux-2.6.xx/include/asm-ppc
    where /usr/src/linux-2.6.xx is where u extracted your kernel source

  9. #9
    Just Joined!
    Join Date
    Apr 2005
    Location
    UK
    Posts
    2
    Hi,

    I stumbled on this thread as a result of searching for a solution to a similar problem via Google.

    I'm just starting a project at work which involves developing C++ code for a PC Linux target using the Rhapsody UML tool on a Windows NT4 machine. To facilitate this, I'm trying to build GCC as a cross-compiler using the Crosstool scripts from http://kegel.com/crosstool/

    As I'm a relative novice at Linux programming, it's all a bit daunting. Talk about 'in at the deep end'.

    Anyway, the build gets as far as trying to build 'fixdep' at falls over with the following:

    Code:
    <snipped&#58; downloading unpacking and patching of tarballs, etc.>
    Prepare kernel headers
    + cd /cygdrive/d/apps/crosstool-0.31/build/i686-unknown-linux-gnu/gcc-3.4.3-glibc-2.3.4/linux-2.6.8
    + test -f /cygdrive/d/apps/crosstool-0.31/i686.config
    + cp /cygdrive/d/apps/crosstool-0.31/i686.config .config
    + test -f .config
    + yes
    + make ARCH=i386 oldconfig
      HOSTCC  scripts/basic/fixdep
    fixdep&#58;
    &#58; No such file or directory
    As you can see, I'm using version 0.31 of Crosstool which uses the sources for gcc 3.4.3, glibc 2.3.4 and linux 2.6.8. It also uses binutils 2.14 glibc-linuxthreads 2.3.4

    Oh, and I'm running the latest version of Cygwin of which I've installed absolutely everything.

    Does this look like the same problem? I thought Croostool was just supposed to work.

    Quote Originally Posted by manulite
    did u finally manage? I had the same prob and i solved it by creating the following link
    Code:
    /usr/include/asm -> /usr/src/linux-2.6.xx/include/asm-ppc
    What does 'creating the link' involve? Remember, being a novice I'll need subtitles for the hard of thinking.

    Cheers,
    John.

  10. #10
    Just Joined!
    Join Date
    Jul 2003
    Location
    Harare, Zimbabwe
    Posts
    11
    What does 'creating the link' involve? Remember, being a novice I'll need subtitles for the hard of thinking.
    You use the ln command. On the console you do (as root)

    Code:
    ln -s /usr/include/asm /usr/src/linux-2.6.xx/include/asm-ppc
    where /usr/src/linux-2.6.xx is the path to your kernel source.

    This creates a symbolic link in /usr/include called asm which points to /usr/src/linux-x.x.x/include/asm-ppc. Don't know though if this will solve your problem. Not much of an expert myself, I rely heavily on what google suggests but i guess its worth a try

    you can always remove the link if its no help.

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
  •