[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-users] Compile errors with lwip 0.7.0 and contrib-20040122
From: |
Nick Plant |
Subject: |
[lwip-users] Compile errors with lwip 0.7.0 and contrib-20040122 |
Date: |
Tue, 27 Jan 2004 14:40:51 +0000 |
I am trying to build the unixsim program under Windows 95 using Cygwin. I am
doing this to get familiar with lwIP before porting it to our ARM7 boards. I am
surprised to find that when I build unixsim I get many compiler warnings and an
error. I wonder if something is mis-configured on my system, or is there a
problem compiling contrib-20040122 under Cygwin?
Some of the warnings are caused by the redefinition of the types u_long, u_int,
u_short and u_char. They are defined in lwip/src/netif/ppp/ppp.h and also in
/usr/include/sys/types.h The definition in ppp.h is like this:
# ifndef __u_char_defined
/* Type definitions for BSD code. */
typedef unsigned long u_long;
typedef unsigned int u_int;
typedef unsigned short u_short;
typedef unsigned char u_char;
#endif
The definition is /usr/include/sys/types.h looks like this:
#ifndef _BSDTYPES_DEFINED/* also defined in mingw/gmon.h and in
w32api/winsock[2].h */typedef unsigned char u_char;typedef unsigned short
u_short;typedef unsigned int u_int;typedef unsigned long u_long;#define
_BSDTYPES_DEFINED#endifSo I can stop the re-definition in ppp.h by changing
#ifndef __u_char_defined to #ifndef _BSDTYPES_DEFINED
Is this the correct way to fix it?
I get several other warnings from various lwip modules:
../../../../../lwip/src/api/sockets.c: In function
`lwip_setsockopt':../../../../../lwip/src/api/sockets.c:1309: warning: unsigned
int format, u32_t arg (arg 3)../../../../../lwip/src/netif/ppp/auth.c: In
function `get_secret':../../../../../lwip/src/netif/ppp/auth.c:613: warning:
suggest parentheses around && within ||../../../../../lwip/src/netif/ppp/vj.c:
In function `vj_compress_tcp':../../../../../lwip/src/netif/ppp/vj.c:148:
warning: `deltaA' might be used uninitialized in this
function../../../../ports/unix/perf.c: In function
`perf_print':../../../../ports/unix/perf.c:44: warning: ISO C90 does not
support `long long'../../../../ports/unix/perf.c:44: warning: ISO C90 does not
support `long long'../../../../ports/unix/perf.c:46: warning: ISO C90 does not
support `long long'../../../../ports/unix/perf.c:47: warning: ISO C90 does not
support `long long'../../../../ports/unix/perf.c:48: warning: ISO C90 does not
support the `ll' printf length modifierapps/shell.c:67: warning: string length
`838' is greater than the length `509' ISO C89 compilers are required to
supportsimhost.c: In function `ping_recv':simhost.c:248: warning: unsigned int
format, u32_t arg (arg 3)
And finally:
gcc: unrecognized option `-pthread'
I am using version gcc version 3.3.1, the version that came with cygwin. I
would welcome any suggestions, please.
Nick
This email and any files transmitted with it are confidential and intended
solely for the use of the individual or entity to whom they are addressed. If
an addressing or transmission error has misdirected this e-mail, please notify
the author by replying to this e-mail. If you are not the intended recipient
you must not use, disclose, copy, print or rely on this e-mail.
Joy Mining Machinery Limited/P&H Minepro Services aims to prevent the
propagation of viruses, but cannot guarantee that this email is virus free.
You are advised to scan all attachments and open them at your own risk.
Joy Mining Machinery Limited/P&H Minepro Services may monitor outgoing and
incoming e-mails and other telecommunications on its e-mail and
telecommunication systems.
- [lwip-users] Compile errors with lwip 0.7.0 and contrib-20040122,
Nick Plant <=
- Re: [lwip-users] Compile errors with lwip 0.7.0 and contrib-20040122, Peter Graf, 2004/01/27
- Re: [lwip-users] Compile errors with lwip 0.7.0 and contrib-20040122, Jani Monoses, 2004/01/28
- Re: [lwip-users] Compile errors with lwip 0.7.0 and contrib-20040122, Peter Graf, 2004/01/28
- RE: [lwip-users] Compile errors with lwip 0.7.0 and contrib-20040122, John Taylor, 2004/01/28
- Re: [lwip-users] Compile errors with lwip 0.7.0 and contrib-20040122, Peter Graf, 2004/01/28
- RE: [lwip-users] Compile errors with lwip 0.7.0 and contrib-20040122, John Taylor, 2004/01/28
- RE: [lwip-users] Compile errors with lwip 0.7.0 and contrib-20040122, Peter Graf, 2004/01/28
Re: [lwip-users] Compile errors with lwip 0.7.0 and contrib-20040122, christiaan . simons, 2004/01/28