SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] typedef conflicts in sctptftp program compilation


Chronological Thread 
  • From: Thomas Dreibholz <dreibh AT exp-math.uni-essen.de>
  • To: Vaishali Athale <avaishali AT yahoo.com>, discussion AT sctp.de
  • Subject: Re: [SCTP-Discussion] typedef conflicts in sctptftp program compilation
  • Date: Mon Dec 9 09:57:01 2002
  • List-id: SCTP Discussions <discussion.sctp.de>
  • Organization: University of Essen, Institute for Experimental Mathematics

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

Am Montag, 9. Dezember 2002 02:09 schrieb Vaishali Athale:
> Hi,
>
> I tried to compile "sctptftp" sample program in the
> directory socket/cppsocket_programs and it started
> giving me following error:
>
> In file included from sctptftp.cc:44:
> /home/socketapi-1.0.1/socketapi/tdsystem.h:94:
> conflicting types for `
> typedef int socklen_t'
> /usr/include/unistd.h:248: previous declaration as
> `typedef __socklen_t
> socklen_t'
>
> I could not change either of typedef, if I do then,gcc
> compiler gives lot of compilation errors. I am just
> wondering if anybody had encountered such problem
> before.

What operating system are you using? Some OSs (like Linux and FreeBSD) define
a type socklen_t while others do not (e.g. Darwin). Therefore, tdsystem.h
defines this type if HAVE_SOCKLEN_T is undefined.

#ifndef HAVE_SOCKLEN_T
typedef int socklen_t;
#define HAVE_SOCKLEN_T
#endif

HAVE_SOCKLEN_T is defined if the configure script's check for the type
socklen_t is successful. It seems that the file configure.in has to be
updated for your operating system.


Best regards
- --
=======================================================================
Dipl.-Inform. Thomas Dreibholz

University of Essen, Room ES210
Inst. for Experimental Mathematics Ellernstraße 29
Computer Networking Technology Group D-45326 Essen/Germany
- -----------------------------------------------------------------------
E-Mail:
dreibh AT exp-math.uni-essen.de
Homepage: http://www.exp-math.uni-essen.de/~dreibh
=======================================================================
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE99FpR32BbsHYPLWURAoDdAKCYUVIv8KeRGy/X6+f5jZB4/gd19wCgk8ur
6M+YfmCA8sTxOYEFnG8TsjY=
=qEad
-----END PGP SIGNATURE-----





Archive powered by MHonArc 2.6.19+.

Top of page