dhclient fails after kernel recompilation

Ask a Question related to Debian, Design and Development.

  1. #1

    Default dhclient fails after kernel recompilation

    Hi *,
    this is my problem:
    1) if I use the kernel which comes with debian dhclient works perfectly
    2) I recompile the kernel with dhcp support but dhclient fails.

    I used strace to understand why and I discovered that:

    setsockopt(8, SOL_SOCKET, 0x1a /* SO_??? */, [1074921483], 8) = -1
    ENOPROTOOPT (Protocol not available)

    then I checked the symbols exported by the kernel having something to do
    with setsockopt in System.map
    and I found that in the official version and in my version
    they are the same but
    nf_setsockopt
    which is associated with NAT.

    Any clue? Suggestions?

    Igor

    PS The same happens with vanilla kernels from kernel.org

    __________________________________________________
    Please no word attachments
    See [url]http://www.fsf.org/philosophy/no-word-attachments.html[/url]
    --------------------------------------------------------------------------------
    fatti non foste a viver come bruti,
    ma per seguire virtute e canoscenza.
    Dante, Inf. XXVI 119-120

    Ye were not made to live like unto brutes,
    But for pursuit of virtue and of knowledge.
    (Trans. Longfellow at iltweb.columbia.edu/projects/dante/comedy/index.html)

    I skabtes ikke for Dyr at leve, |I blev ej skabte til som dyr at leve,
    men at I Dyd og Kundskab skulle foelge.|men til at foelge dys og vinde kundskab.
    (C.K.F. Molbech 1851) |(K.H. Andersen 1963)


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Igor Pesando - Dep. Th. Phys. Turin University Guest

  2. Similar Questions and Discussions

    1. Dhclient
      Hi, I have a problem with Kubuntu: I have a Intel WIFI card that Linux has recognized without problem. When i Launch dhclient an IP is assigned to...
    2. How to tell if recompilation occured?
      How can we tell if the form was recompiled or not. I've tried to time a form load between when I simply reload a form and when I reload a form...
    3. configuring DHCLIENT-2.2.x
      I have a vanilla Debian Woody, no X, I'd like to configure DHCLIENT to query the broadband DHCP server to get itself up and running, I can do this...
    4. using the debianlogo kernel patch fails. (sollution provided)
      Hello, I have built some kernels before and now i wanted once to experiment with a kernel patch.Therefore i choose to try and install the...
    5. disabling recompilation
      I have a script that I run that executes a series of dynamic 'select into' queries. Sometimes the script generates a "Server: Msg 8630, Level 16,...
  3. #2

    Default Re: dhclient fails after kernel recompilation

    Did u set CONFIG_PACKET and CONFIG_SOCKET in your kernel?
    (i am not 100% sure if these are the correct keywords, but i had a problem
    with DHCP earlier this week after install of a new kernel. turned out to
    be the problem that these 2 were not set in my kernelconfig..)

    Pim

    ---------------------------------------------
    PingWings - Where do you want to go tomorrow?
    - - - - - - - - - - - - - - - - - - - - - - -
    M: 06-28474259
    E: [email]bliekp@pingwings.nl[/email]
    I: [url]www.pingwings.nl[/url]
    ---------------------------------------------
    > Hi *,
    > this is my problem:
    > 1) if I use the kernel which comes with debian dhclient works perfectly
    > 2) I recompile the kernel with dhcp support but dhclient fails.
    >
    > I used strace to understand why and I discovered that:
    >
    > setsockopt(8, SOL_SOCKET, 0x1a /* SO_??? */, [1074921483], 8) = -1
    > ENOPROTOOPT (Protocol not available)
    >
    > then I checked the symbols exported by the kernel having something to do
    > with setsockopt in System.map
    > and I found that in the official version and in my version
    > they are the same but
    > nf_setsockopt
    > which is associated with NAT.
    >
    > Any clue? Suggestions?
    >
    > Igor
    >
    > PS The same happens with vanilla kernels from kernel.org
    >
    > __________________________________________________
    > Please no word attachments
    > See [url]http://www.fsf.org/philosophy/no-word-attachments.html[/url]
    > --------------------------------------------------------------------------------
    > fatti non foste a viver come bruti,
    > ma per seguire virtute e canoscenza.
    > Dante, Inf. XXVI 119-120
    >
    > Ye were not made to live like unto brutes,
    > But for pursuit of virtue and of knowledge.
    > (Trans. Longfellow at
    > iltweb.columbia.edu/projects/dante/comedy/index.html)
    >
    > I skabtes ikke for Dyr at leve, |I blev ej skabte til som dyr at
    > leve,
    > men at I Dyd og Kundskab skulle foelge.|men til at foelge dys og vinde
    > kundskab.
    > (C.K.F. Molbech 1851) |(K.H. Andersen 1963)
    >
    >
    > --
    > To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    > with a subject of "unsubscribe". Trouble? Contact
    > [email]listmaster@lists.debian.org[/email]
    >
    >

    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Pim Bliek | PingWings.nl Guest

  4. #3

    Default Re: dhclient fails after kernel recompilation

    -----BEGIN PGP SIGNED MESSAGE-----
    Hash: SHA1

    On Tue, Aug 05, 2003 at 04:50:00PM +0200, Igor Pesando - Dep. Th. Phys. Turin University wrote:
    > 1) if I use the kernel which comes with debian dhclient works perfectly
    > 2) I recompile the kernel with dhcp support but dhclient fails.
    You need to say Y or M (and remember to load the modules) for
    CONFIG_PACKET and CONFIG_SOCKET.

    - --
    .''`. Paul Johnson <baloo@ursine.ca>
    : :' : proud Debian admin and user
    `. `'`
    `- Debian - when you have better things to do than fix a system
    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v1.2.2 (GNU/Linux)

    iD8DBQE/L82cJ5vLSqVpK2kRAlt0AJ9EdT7k3ecegSfriZbEbMRdQKEfEA Cgpq8x
    flWbzC36nYxXkHNtDB4yfh4=
    =Ljrw
    -----END PGP SIGNATURE-----


    --
    To UNSUBSCRIBE, email to [email]debian-user-request@lists.debian.org[/email]
    with a subject of "unsubscribe". Trouble? Contact [email]listmaster@lists.debian.org[/email]
    Paul Johnson Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139