Results 1 to 4 of 4
  1. #1
    Legend
    Points: 197,786, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 1.0%
    Achievements:
    Veteran50000 Experience Points
    jbhtexas's Avatar
    Join Date
    Oct 2006
    Location
    Arlington, TX
    Posts
    10,677
    Points
    197,786
    Level
    100
    Thumbs Up
    Received: 98
    Given: 72

    Help needed with Linux network software compile error

    Well, I know there are alot of computer gurus out there on CF, so maybe one of you can shed some light on this problem. It seems to be stumping those on the other forums I've posted to.

    I'm trying to compile the Basilisk II 1.0 JIT Macintosh 680x0 emulator on Ubuntu 8.04 (uname -r reports 2.6.24-23-generic). I've also tried on Fedora, but am ending up with the same errors...

    I have the basic emulator program working fine, but for networking in the emulator, I need to get a driver called sheep_net compiled. When trying to do that I get the following errors:

    make -C /lib/modules/2.6.24-23-generic/build M=$PWD modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.24-23-generic'
    sheep_net.c:283: error: ‘struct sk_buff’ has no member named ‘mac’
    sheep_net.c:400: error: ‘struct sk_buff’ has no member named ‘nh’
    sheep_net.c:400: error: ‘struct sk_buff’ has no member named ‘h’
    sheep_net.c:487: warning: passing argument 1
    sheep_net.c:487: error: too few arguments to function ‘dev_get_by_name’

    After searching the web, there are many, many pages where these these same errors with sk_buff and dev_get_by_name are reported when trying to compile network-related code. However, I haven't really found a good explanation of what the problem is. Some of the posts suggest that something has changed in the kernel header files along the way, or there may be some out of date headers, or that the code needs to be rewritten.

    Supposedly, the code has been compiled in the past and is working in Linux installations, so I am just looking for some hints as to what might be wrong.

    Thanks!


    "Don't worry Boss...they can't do nothin' 'til they're through sparklin'..."

    Avatar - America's new superhero...Cenex Guy

  2. #2
    All-Star
    Points: 23,197, Level: 46
    Level completed: 65%, Points required for next Level: 353
    Overall activity: 1.0%
    Achievements:
    SocialVeteran10000 Experience Points
    cloneluke80's Avatar
    Join Date
    Apr 2006
    Location
    West Des Moines, IA
    Posts
    1,611
    Points
    23,197
    Level
    46
    Thumbs Up
    Received: 5
    Given: 2

    Re: Help needed with Linux network software compile error

    Quote Originally Posted by jbhtexas View Post
    Well, I know there are alot of computer gurus out there on CF, so maybe one of you can shed some light on this problem. It seems to be stumping those on the other forums I've posted to.

    I'm trying to compile the Basilisk II 1.0 JIT Macintosh 680x0 emulator on Ubuntu 8.04 (uname -r reports 2.6.24-23-generic). I've also tried on Fedora, but am ending up with the same errors...

    I have the basic emulator program working fine, but for networking in the emulator, I need to get a driver called sheep_net compiled. When trying to do that I get the following errors:

    make -C /lib/modules/2.6.24-23-generic/build M=$PWD modules
    make[1]: Entering directory `/usr/src/linux-headers-2.6.24-23-generic'
    sheep_net.c:283: error: ‘struct sk_buff’ has no member named ‘mac’
    sheep_net.c:400: error: ‘struct sk_buff’ has no member named ‘nh’
    sheep_net.c:400: error: ‘struct sk_buff’ has no member named ‘h’
    sheep_net.c:487: warning: passing argument 1
    sheep_net.c:487: error: too few arguments to function ‘dev_get_by_name’

    After searching the web, there are many, many pages where these these same errors with sk_buff and dev_get_by_name are reported when trying to compile network-related code. However, I haven't really found a good explanation of what the problem is. Some of the posts suggest that something has changed in the kernel header files along the way, or there may be some out of date headers, or that the code needs to be rewritten.

    Supposedly, the code has been compiled in the past and is working in Linux installations, so I am just looking for some hints as to what might be wrong.

    Thanks!

    Looks like you need a new version of sheep_net.c

    http://launchpadlibrarian.net/20302137/sheep_net.c

    https://bugs.launchpad.net/ubuntu/+s...k2/+bug/210876



  3. #3
    Legend
    Points: 197,786, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Overall activity: 1.0%
    Achievements:
    Veteran50000 Experience Points
    jbhtexas's Avatar
    Join Date
    Oct 2006
    Location
    Arlington, TX
    Posts
    10,677
    Points
    197,786
    Level
    100
    Thumbs Up
    Received: 98
    Given: 72

    Re: Help needed with Linux network software compile error

    Quote Originally Posted by cloneluke80 View Post
    Thank you!!!

    I got the compile to work...unfortunately the sheep_net driver crashes the emulator, which I kind of expected might happen, since it was reported in the link you posted that networking changes again occurred again in the later kernel I am using. But, I did make some progress and now have another source for info on getting this thing to work.


    "Don't worry Boss...they can't do nothin' 'til they're through sparklin'..."

    Avatar - America's new superhero...Cenex Guy

  4. #4
    All-Star
    Points: 23,197, Level: 46
    Level completed: 65%, Points required for next Level: 353
    Overall activity: 1.0%
    Achievements:
    SocialVeteran10000 Experience Points
    cloneluke80's Avatar
    Join Date
    Apr 2006
    Location
    West Des Moines, IA
    Posts
    1,611
    Points
    23,197
    Level
    46
    Thumbs Up
    Received: 5
    Given: 2

    Re: Help needed with Linux network software compile error

    Quote Originally Posted by jbhtexas View Post
    Thank you!!!

    I got the compile to work...unfortunately the sheep_net driver crashes the emulator, which I kind of expected might happen, since it was reported in the link you posted that networking changes again occurred again in the later kernel I am using. But, I did make some progress and now have another source for info on getting this thing to work.

    Glad to hear!

    By the way Linux rules! Windows is garbage.



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
  • Football
  • Iowa State vs. North Dakota State
  • August 30, 2014
  • 11:00 AM