Kernel include files <sys/socket.h> and <linux/in.h>

Kernel include files <sys/socket.h> and <linux/in.h>

Post by Brian Mack » Wed, 21 Oct 1998 04:00:00



Okay, I'm at a loss. I heard somewhere before that the include files
distributed with the kernels have been broken since version *mumble,
mumble* or so. Well, I just grabbed the v2.1.125 source tree and got these
loverly errors:

/usr/include/sys/socket.h:146: warning: `struct msghdr' declared inside parameter list
/usr/include/sys/socket.h:146: warning: its scope is only this definition or declaration,
/usr/include/sys/socket.h:146: warning: which is probably not what you want.
/usr/include/sys/socket.h:150: warning: `struct msghdr' declared inside parameter list

and

/usr/include/linux/in.h:110: parse error before `sa_family_t'
/usr/include/linux/in.h:110: warning: no semicolon at end of struct or union
/usr/include/linux/in.h:117: parse error before `}'

...anyone got an update on if and when these gems will be hacked upon?
--

<http://www.avalon.net/~macke/>                               The Prophet
    "In order to get that which you wish for, you must first get that which
     builds it."                   -- Unknown

 
 
 

Kernel include files <sys/socket.h> and <linux/in.h>

Post by Simon 'tufty' Staplet » Thu, 22 Oct 1998 04:00:00



> Okay, I'm at a loss. I heard somewhere before that the include files
> distributed with the kernels have been broken since version *mumble,
> mumble* or so. Well, I just grabbed the v2.1.125 source tree and got these
> loverly errors:

> /usr/include/sys/socket.h:146: warning: `struct msghdr' declared inside parameter list
> /usr/include/sys/socket.h:146: warning: its scope is only this definition or declaration,
> /usr/include/sys/socket.h:146: warning: which is probably not what you want.
> /usr/include/sys/socket.h:150: warning: `struct msghdr' declared inside parameter list

> and

> /usr/include/linux/in.h:110: parse error before `sa_family_t'
> /usr/include/linux/in.h:110: warning: no semicolon at end of struct or union
> /usr/include/linux/in.h:117: parse error before `}'

> ...anyone got an update on if and when these gems will be hacked upon?

YES! It's not just me!  I was trying to compile enlightenment against the
2.1.122 sources last night and got these errors.  I figured it was something
to do with libc (I'm not entirely sure what version I'm using) or
possibly I need a newer version of egcs.  Anyway, I'm going to download
them (new egcs, glibc-2) and see what happens.

Simon
--
 _______  
| ----- |  Biased output from the demented brain of
||MacOS||  Simon Stapleton.
|| NOW ||
| ----- |  sstaple AT liffe DoT com
|   -+-.|  (if you can't figure it out...)
|???????|
 -------

 
 
 

Kernel include files <sys/socket.h> and <linux/in.h>

Post by Oliver Stenze » Thu, 22 Oct 1998 04:00:00


Quote:> > ...anyone got an update on if and when these gems will be hacked upon?

> YES! It's not just me!  I was trying to compile enlightenment against the
> 2.1.122 sources last night and got these errors.  I figured it was something
> to do with libc (I'm not entirely sure what version I'm using) or
> possibly I need a newer version of egcs.  Anyway, I'm going to download
> them (new egcs, glibc-2) and see what happens.

Not only you! I had the same with qt, AfterStep, enlightenment etc. I
have used the 2.1.24 kernel sources today and everything fas fine again!

Oliver

--

   Dipl.-Ing. Oliver Stenzel              Holstenhofweg 85
  Universitaet der Bundeswehr                22043 Hamburg
 Institut fuer Stroemungslehre      Tel.: +49-40-6541-2167
    und Stroemungsmaschinen          Fax: +49-40-6541-2743

     http://www.unibw-hamburg.de/MWEB/iss/fsl/fsl.html

 
 
 

1. include files <sys/ipc.h> and <sys/shm.h>

Hello,
        I'm in the process of getting linux up and going and have just
installed the SLS distrabution (from sunsite).  Anyways I have downloaded
the latest dosemu0.49 and am trying to compile it.  Unfortunately it
expects two files: <sys/ipc.h> and <sys/shm.h>, where can I get these and
any other misc include files that I may need? (They were not obviously
located at sunsite).
        Also I have X running with a microsoft 2 button mouse, how do I
emulate the thrid button?

Hoa Ton-That

PS.  LINUX is much more reliable than i'd hoped :)
--

2. Redhat 7.3 udf support: rw for DVD-RAM read only for cdrw. Win4Lin conflict?

3. #include <asm/bitops.h> -> #include <linux/bitops.h>

4. Installing on 1G drive w old BIOS

5. 1.3.98: <linux/if_arp.h> needs to include <linux/netdevice.h>

6. Comms between Linux & Windoze

7. Include <linux/stddef.h> in <linux/list.h>

8. how to automate remore id loouup?

9. #define NOERROR in <sys/stream.h> and <arpa/nameser.h>

10. C #include <sys/socket.h> SCO

11. Missing include file <sys/stdtypes.h>

12. [TRIVIAL] Add back in <asm/system.h> and <linux/linkage.h> to <linux/interrupt.h>

13. [RESEND] Add back in <asm/system.h> and <linux/linkage.h> to <linux/interrupt.h>