Page 1 of 2 12 LastLast
Results 1 to 10 of 13

Thread: Problem with kernel 2.6.7 compile

  1. #1
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93

    Problem with kernel 2.6.7 compile

    root@reno:/usr/src/linux# make oldconfig
    HOSTCC scripts/basic/fixdep
    In file included from /usr/include/sys/socket.h:35,
    from /usr/include/netinet/in.h:24,
    from scripts/basic/fixdep.c:107:
    /usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
    make[1]: *** [scripts/basic/fixdep] Error 1
    make: *** [scripts_basic] Error 2
    root@reno:/usr/src/linux# make menuconfig
    HOSTCC scripts/basic/fixdep
    In file included from /usr/include/sys/socket.h:35,
    from /usr/include/netinet/in.h:24,
    from scripts/basic/fixdep.c:107:
    /usr/include/bits/socket.h:305:24: asm/socket.h: No such file or directory
    make[1]: *** [scripts/basic/fixdep] Error 1
    make: *** [scripts_basic] Error 2
    root@reno:/usr/src/linux#

    Any idea what I am missing?

  2. #2
    Member registered user
    Join Date
    Aug 2003
    Posts
    52
    ln -sf /usr/src/linux/include/asm-i386 /usr/include/asm

  3. #3
    Senior Member registered user
    Join Date
    Jun 2004
    Posts
    788
    rm -f linux
    ln -s linux-2.6.7 linux
    cd linux/include
    ln -s asm-i386 asm
    cd ..
    make oldconfig
    cd /usr/src
    make

  4. #4
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93

    New Problem

    drivers/scsi/cpqfcTScontrol.c:610:2: #error This is too much stack
    drivers/scsi/cpqfcTScontrol.c:722:2: #error This is too much stack
    make[2]: *** [drivers/scsi/cpqfcTScontrol.o] Error 1
    make[1]: *** [drivers/scsi] Error 2

  5. #5
    Member registered user
    Join Date
    May 2004
    Location
    England
    Posts
    30
    You ought to be compiling the kernel in its own dedicated directory, such as

    /home/knoppix/linux-2.6.7

    The /usr/src/linux area is not for compiling the kernel, as Linus himself writes on this page:

    http://www.linuxmafia.com/faq/Kernel...x-symlink.html

    It's handy not to delete the source directory once you've finished, in case you want to compile things like linux-wlan-ng in the future.

  6. #6
    Member registered user
    Join Date
    Dec 2002
    Location
    The Hague, The Netherlands
    Posts
    93

    You can't argue with that!!

    From the man!

    If this fails again I'll give that a go.

  7. #7
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    900
    Your problem seems to be with the Knoppix kernel as it makes no difference whatsoever if you use a symlink or not. Do yourself a favor and install a distro that was meant to be installed. (like Kanotix) Knoppix certainly was not meant for such duty as it is a live cd only and makes for a very hard to upgrade system not to mention the many threads just like this where users suddenly cannot do something as simple as compile a kernel! It just makes no sense.

  8. #8
    Member registered user
    Join Date
    May 2004
    Location
    England
    Posts
    30
    In my experience compiling a (stock, from kernel.org) kernel under Knoppix has always been perfect.

    What I find annoying after having Knoppix on the hard drive for a while is that it inherits Debian's difficulty of configuration (at least with the Debian-style install) and the packages are a mish-mash from stable/testing/sid. This makes adding hardware tricky and apt-get upgrade an uncertain thing. Of course that's all rather necessary and I'm not complaining.

    > ... where users suddenly cannot do something as simple as compile a kernel!

    I remember the first time I did it: With great care and not a lot of confidence. Perhaps new users get the two feelings mixed up.

  9. #9
    Senior Member registered user
    Join Date
    Mar 2004
    Posts
    900
    Quote Originally Posted by gruntbuggly
    In my experience compiling a (stock, from kernel.org) kernel under Knoppix has always been perfect.

    What I find annoying after having Knoppix on the hard drive for a while is that it inherits Debian's difficulty of configuration (at least with the Debian-style install) and the packages are a mish-mash from stable/testing/sid.
    That is exactly what I'm referring to but please see it for what it really is. This is not a Debian problem. Debian SID does not have the upgrade problems.

    This makes adding hardware tricky and apt-get upgrade an uncertain thing. Of course that's all rather necessary and I'm not complaining.
    Not necessary? Well I suppose no not technically except for security issues. But it is NOT a problem to do an upgrade every day. I'll show you.

    Code:
    ~$ date
    Mon Jul 26 21:31:07 MDT 2004
    Code:
    cat /etc/debian_version 
    testing/unstable
    Code:
    ~$ sudo apt-get upgrade
    Reading Package Lists... Done
    Building Dependency Tree... Done
    The following packages have been kept back:
      gucharmap
    The following packages will be upgraded:
      aptitude athcool atsar base-config bash cdda2wav cdrecord configure-debian
      cpp-3.3 cupsys cupsys-bsd cupsys-client cvs dbus-1 dbus-1-dev dbus-1-utils
      dbus-glib-1 debconf debconf-i18n debconf-utils debhelper deborphan debsums
      dhcp3-client dhcp3-common dialog discover1-data dpkg dpkg-dev dselect
      dvd+rw-tools eject exim4 exim4-base exim4-config exim4-daemon-light flex
      fluxbox g++-3.3 gcc-3.3 gcc-3.3-base grub gtk-engines-industrial
      gtk2-engines-industrial gzip intltool-debian kdelibs-bin kdelibs-data
      kdelibs4 kernel-package libart-2.0-2 libbonobo2-0 libbonobo2-common
      libcupsimage2 libcupsys2-gnutls10 libcurl2 libgcc1 libgcrypt1 libgd2-noxpm
      libgnutls7 libnspr4 libnss3 libpaper1 libsmbclient libstdc++5
      libstdc++5-3.3-dev libtimedate-perl libxml2 libxml2-dev libxslt1.1 login
      make makedev man-db mkisofs module-init-tools mozilla mozilla-browser
      mozilla-mailnews mozilla-psm passwd python2.3-dbus skype-static ssh sudo
      x11vnc xprt-common xprt-xprintorg
    88 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    Need to get 64.0MB of archives.
    After unpacking 248kB of additional disk space will be used.
    Do you want to continue? [Y/n] y
    /snip/
    Code:
    Installing new version of config file /etc/init.d/xprint ...
    /etc/init.d/xprint: Old server registry found, cleaning-up...
    Stopping Xprint servers: Xprt.
    Starting Xprint servers: Xprt.
    
    glenn@cromag:~
    Code:
    $ sudo apt-get -f install
    Reading Package Lists... Done
    Building Dependency Tree... Done
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    You can even build a new kernel on it!
    Code:
    uname -a
    Linux cromag 2.6.8-rc2 #2 Thu Jul 22 16:13:51 MDT 2004 i686 GNU/Linux
    Soooooo easy...... You should try it. As luck would have it, Bug Hunter 07 is out too.
    Enjoy!

  10. #10
    Member registered user
    Join Date
    May 2004
    Location
    England
    Posts
    30
    Maybe you can tell me how to get keramik back into my list of styles for kde - after an uprade a couple of weeks ago it disappeared and only the ordinary qt styles are left. Google suggests this is something to do with binary incompatibility between kde and qt packages, also it appears this issue is not Knoppix-specific. Hence my comment about apt-get upgrade.

    root@walter:~# cat /etc/debian_version
    testing/unstable

    root@walter:~# apt-get -f install
    Reading Package Lists... Done
    Building Dependency Tree... Done
    0 upgraded, 0 newly installed, 0 to remove and 104 not upgraded.

Page 1 of 2 12 LastLast

Similar Threads

  1. How do I install kernel source and config/compile kernel??
    By cfish in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 04-25-2005, 07:31 AM
  2. How to compile the kernel ?
    By davidwahlstedt in forum Customising & Remastering
    Replies: 0
    Last Post: 03-17-2005, 05:42 PM
  3. Kernel compile problem
    By Worm in forum General Support
    Replies: 0
    Last Post: 02-01-2004, 07:42 PM
  4. Kernel compile problem - first Knoppix kernel compile
    By Nigel_Tufnel in forum Hdd Install / Debian / Apt
    Replies: 2
    Last Post: 10-20-2003, 01:09 PM
  5. how to compile kernel ?
    By nhoxanh in forum General Support
    Replies: 0
    Last Post: 07-28-2003, 04:23 AM

Posting Permissions

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


Atari 1200XL Computer with Power Supply and BASIC - Tested 100% Working picture

Atari 1200XL Computer with Power Supply and BASIC - Tested 100% Working

$325.00



Atari 800XL Retro Computer Vintage Computing Gaming - Untested - No Power Supply picture

Atari 800XL Retro Computer Vintage Computing Gaming - Untested - No Power Supply

$119.99



Atari 1050 5.25

Atari 1050 5.25" Floppy Disk Drive w/ CO17945 Power Adaptor - Powers On

$49.99



Atari 130xe Computer Case (no keyboard, no motheboard) picture

Atari 130xe Computer Case (no keyboard, no motheboard)

$40.00



Atari 400/800/XL/XE Computer SIO2PC - PC/Mac Disk Drive Emulator Adapter/Device picture

Atari 400/800/XL/XE Computer SIO2PC - PC/Mac Disk Drive Emulator Adapter/Device

$15.25



Vintage Atari 400 Computer System w/ Atari 410 Program Recorder picture

Vintage Atari 400 Computer System w/ Atari 410 Program Recorder

$100.00



Lot of Atari 400 & 800XL Computers, 1050 Floppy Disk Drive, Joysticks, & Games picture

Lot of Atari 400 & 800XL Computers, 1050 Floppy Disk Drive, Joysticks, & Games

$350.00



Atari 600XL Computer, Pwr Supply & Video Cable, Tested & Working picture

Atari 600XL Computer, Pwr Supply & Video Cable, Tested & Working

$150.00



A8picoCart Atari 130 / 65 XE 800 / 1200 XL XEGS multicart UnoCart clone game picture

A8picoCart Atari 130 / 65 XE 800 / 1200 XL XEGS multicart UnoCart clone game

$32.95



Atari 800xl  E X C E L L E N T  condition.  Atarimax with Games picture

Atari 800xl E X C E L L E N T condition. Atarimax with Games

$250.00