public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* sys/socket.h problem
@ 1999-11-30 13:12 Mark Schoenberg
  1999-11-30 13:39 ` Cygnus - Admin
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Mark Schoenberg @ 1999-11-30 13:12 UTC (permalink / raw)
  To: cygwin

What is wrong with my setup or the following 5-line program 
******************************************
#  include <sys/socket.h>
int main (int argc, char **argv)
{
   exit (0);
}
***************************************************************************
which produced the following output in response to gcc -v -mno-cygwin ...
***************************************************************************

Reading specs from C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/specs
gcc version egcs-2.91.66 19990314 (egcs-1.1.2 release)
 C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/cpp.exe -lang-c -v -iprefix C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/ -undef -D__GNUC__=2 -D__GNUC_MINOR__=91 -Di386 -D_WIN32 -DWINNT -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386__ -D_WIN32 -D__WINNT__ -D_X86_=1 -D__STDC__=1 -D__stdcall=__attribute__((__stdcall__)) -D__cdecl=__attribute__((__cdecl__)) -D__declspec(x)=__attribute__((x)) -D__i386 -D__WINNT -Asystem(winnt) -Acpu(i386) -Amachine(i386) -D__OPTIMIZE__ -remap -Asystem(unix) -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586 -D__i586__ -D__pentium -D__pentium__ -iwithprefixbefore ../../../../i586-cygwin32/include/mingw32 -D__MINGW32__=0.2 mtest.c c:\windows\TEMP/cc1nGhch.i
GNU CPP version egcs-2.91.66 19990314 (egcs-1.1.2 release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include/mingw32
 C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include
 C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include
 C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/include
 /cygnus/cygwin-b20/H-i586-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../../include
 /cygnus/cygwin-b20/H-i586-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include
 /cygnus/cygwin-b20/H-i586-cygwin32/lib/gcc-lib/i586-cygwin32/egcs-2.91.66/include
End of search list.
 C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/cc1.exe c:\windows\TEMP/cc1nGhch.i -quiet -dumpbase mtest.c -mno-cygwin -O2 -version -o c:\windows\TEMP/ccvIlFqu.s
GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release) (i586-cygwin32) compiled by GNU C version egcs-2.91.66 19990314 (egcs-1.1.2 release).
In file included from C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include/asm/socket.h:4,
                 from C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include/cygwin/socket.h:13,
                 from C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include/sys/socket.h:5,
                 from mtest.c:1:
C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include/cygwin/if.h:63: parse error before `caddr_t'
C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include/cygwin/if.h:63: warning: no semicolon at end of struct or union
C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include/cygwin/if.h:63: warning: no semicolon at end of struct or union
C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include/cygwin/if.h:65: parse error before `}'
C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include/cygwin/if.h:65: warning: data definition has no type or storage class
C:/CYGNUS/CYGWIN~1/H-I586~1/BIN/../lib/gcc-lib/i586-cygwin32/egcs-2.91.66/../../../../i586-cygwin32/include/cygwin/if.h:66: parse error before `}'
***************************************************************************

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 9+ messages in thread
* sys/socket.h problem
@ 2000-09-22  9:21 Steve Kenton
  0 siblings, 0 replies; 9+ messages in thread
From: Steve Kenton @ 2000-09-22  9:21 UTC (permalink / raw)
  To: cygwin

I think there is a minor problem in sys/socket.h

The 3rd parameter to accept() is normally declared to be of type socklen_t which
ultimately
ought to cast to some unsigned type rather than signed int.  As is, gcc
complains about the
sign changing and refused to build some socket code from a previously working
package.  Changing
the definition from int to uint works around my problem, but it makes we wonder
how all of the
network application included in cygwin were built.

Steve Kenton

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2000-09-22  9:21 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-11-30 13:12 sys/socket.h problem Mark Schoenberg
1999-11-30 13:39 ` Cygnus - Admin
1999-11-30 23:39   ` Cygnus - Admin
1999-11-30 13:56 ` Corinna Vinschen
1999-11-30 23:39   ` Corinna Vinschen
1999-12-01 16:30   ` sys/socket.h problemp Mumit Khan
1999-12-31 13:28     ` Mumit Khan
1999-11-30 23:39 ` sys/socket.h problem Mark Schoenberg
2000-09-22  9:21 Steve Kenton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).