Mailinglist Archive: opensuse-buildservice (227 mails)

< Previous Next >
Re: [opensuse-buildservice] Build error struct udphdr' missing 'uh_dport' for sipp on BS
  • From: Robert Schiele <rschiele@xxxxxxxxx>
  • Date: Wed, 31 Jan 2007 21:47:40 +0100
  • Message-id: <20070131204739.GN3767@xxxxxxxxxxxxxxxxxx>
On Wed, Jan 31, 2007 at 09:25:54PM +0100, Richard Bos wrote:
> Hi,
>
> hopefully someone on the list knows the root cause of the underneath problem.
> The root cause is probably a missing pkg, but I have no idea which one.
> The build fails when executing 'osc build ....sipp.spec', but the build is
> succesfull in my local environment. I assume some more pkgs are available
> there.
>
> cc -march=i586 -mtune=i686 -fmessage-length=0 -D_FORTIFY_SOURCE=2 -O2 -I. -I/opt/openssl/include -c -o send_packets.o send_packets.c
> send_packets.c: In function 'send_packets':
> send_packets.c:177: error: 'struct udphdr' has no member named 'uh_dport'
> send_packets.c:179: error: 'struct udphdr' has no member named 'uh_sport'
> send_packets.c:180: error: 'struct udphdr' has no member named 'uh_dport'
> send_packets.c:183: error: 'struct udphdr' has no member named 'uh_sport'
> send_packets.c:186: error: 'struct udphdr' has no member named 'uh_sport'
> send_packets.c:193: error: 'struct udphdr' has no member named 'uh_sum'
> make[1]: *** [send_packets.o] Error 1
> make[1]: Leaving directory `/usr/src/packages/BUILD/sipp-1.1rc8.src'
> make: *** [pcapplay_ossl] Error 2

Either make your code POSIX compliant or add -D_BSD_SOURCE to the compiler
command line.

Robert

--
Robert Schiele
Dipl.-Wirtsch.informatiker mailto:rschiele@xxxxxxxxx

"Quidquid latine dictum sit, altum sonatur."
< Previous Next >
References