Mailinglist Archive: opensuse-buildservice (227 mails)

< Previous Next >
Re: [opensuse-buildservice] [Solved] Build error struct udphdr' missing 'uh_dport' for sipp on BS
  • From: Richard Bos <ml@xxxxxxxxxx>
  • Date: Wed, 31 Jan 2007 22:35:22 +0100
  • Message-id: <200701312235.22946.ml@xxxxxxxxxx>
Robert and Michael,

thanks you for your fast replies :))
I continue below...

Op woensdag 31 januari 2007 21:39, schreef Michael Schroeder:
> On Wed, Jan 31, 2007 at 09:25:54PM +0100, Richard Bos wrote:
> > It looks to me that the structure is provided by:
> > /usr/include/netinet/udp.h
> > /* UDP header as specified by RFC 768, August 1980. */
> >
> > struct udphdr
> > {
> > u_int16_t uh_sport; /* source port */
> > u_int16_t uh_dport; /* destination port */
> > u_int16_t uh_ulen; /* udp length */
> > u_int16_t uh_sum; /* udp checksum */
> > };
>
> On my system struct udphdr is defined as
>
> struct udphdr
> {
> u_int16_t source;
> u_int16_t dest;
> u_int16_t len;
> u_int16_t check;
> };
>
> See the #ifdef in udp.h. I don't know why your local builds have
> _BSD_SOURCE defined.


Ah, I see the #if #else construct now, I did not notice it before. May the
difference be in the used compiler? With the local build gcc is used and on
the BS 'cc' is used, although gcc, gcc-c++ are installed

What determines the compiler to be used?

To Robert: I have no idea how to make the code POSIX compliant.

[some time later]
I found the solution: when I add -D__LINUX to the CFLAGS build option the
build completes succesfully :))

--
Richard Bos
We are borroing the world of our chlidren,
We don't inherit her from our parents.
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups