SCTP Discussions

Text archives Help


Re: [SCTP-Discussion] RE: Help required please


Chronological Thread 
  • From: Andreas Jungmaier <ajung AT exp-math.uni-essen.de>
  • To: "'Venkateswarlu, KP'" <kp.venkateswarlu AT digital.com>
  • Cc: "'discussion AT sctp.de'" <discussion AT sctp.de>
  • Subject: Re: [SCTP-Discussion] RE: Help required please
  • Date: Tue Jul 24 17:11:01 2001
  • List-id: SCTP Discussions <discussion.sctp.de>
  • Organization: University of Essen, Germany

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

Dear all,

when using older versions of Linux, (such as RedHat 6.1 and older)
the declaration of the struct in_pktinfo is unknown, since it is
not yet declared in the respective header files.
This has been reported before. In later versions of Linux it is
declared.
The next sctplib-release will have a flag that is set by the configure
script checking whether this struct is known, and add the
following declaration to adaptation.c if it is not:

struct in_pktinfo
{
int ipi_ifindex; /* Interface index */
struct in_addr ipi_spec_dst; /* Routing destination address */
struct in_addr ipi_addr; /* Header destination address */
};

In your case you should simply add this to the file
adaptation.c, and recompile. This is a hack for the
time being.

Best regards,

> What version of Linux are you using?
>
> > -----Original Message-----
> > From: Venkateswarlu, KP
> > [SMTP:kp.venkateswarlu AT digital.com]
> > Sent: Tuesday, July 24, 2001 7:25 AM
> > To: 'Tuexen Michael'
> > Subject: RE: Help required please
> >
> > Hello,
> >
> > Thanks for giving information.
> > I have downloaded the latest SCTP source ( sctplib-1.0.0-pre13.tar ).
> >
> > I am getting following compilation errors.
> >
> > gcc -DHAVE_CONFIG_H -I. -I. -I../.. -O2 -Wall -DLINUX
> > -I/usr/lib/glib/include -c adaptation.c
> > In file included from adaptation.c:57:
> > /usr/include/sys/param.h:56: warning: `MIN' redefined
> > /usr/include/glib.h:126: warning: this is the location of the previous
> > definition
> > /usr/include/sys/param.h:57: warning: `MAX' redefined
> > /usr/include/glib.h:123: warning: this is the location of the previous
> > definition
> > adaptation.c: In function `adl_receive_message':
> > adaptation.c:649: sizeof applied to an incomplete type
> > adaptation.c:674: sizeof applied to an incomplete type
> > adaptation.c:693: dereferencing pointer to incomplete type
> > make: *** [adaptation.o] Error 1
> >
> > Kindly help me to resolve these compilation erros.
> >

Well, that should do it.... :-)

- --

Andreas Jungmaier

- ----------------------------------------------------------------------------
\|/ _____ \|/ Andreas Jungmaier, Dipl.-Ing.
"@'/ , . \`@" University of Essen
ajung AT exp-math.uni-essen.de
/_| \___/ |__\ -> Computer Networking Tel. : +49 (0201) 183-7636
\___U_/ Technology Group <-
- ----------------------------------------------------------------------------
PGP Public Key and Fingerprint: see http://www.exp-math.uni-essen.de/~ajung
- ----------------------------------------------------------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE7XeQnd2Uw+xBvGUIRAuzFAKCOFY9Tj0jaGEH4ko7i9EZbxiX6cACeLmAk
xEKPf/MqkkeKaHDVWYGctmk=
=wHcF
-----END PGP SIGNATURE-----




Archive powered by MHonArc 2.6.19+.

Top of page