Mailinglist Archive: opensuse-buildservice (227 mails)

< Previous Next >
[opensuse-buildservice] Build error struct udphdr' missing 'uh_dport' for sipp on BS
  • From: Richard Bos <ml@xxxxxxxxxx>
  • Date: Wed, 31 Jan 2007 21:25:54 +0100
  • Message-id: <>

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

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

It looks to me that the structure is provided by:
/* 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 */

This file is part of the osc build, see (the grep for dport):
Local osc build output:
+ cd sipp-1.1rc8.src
+ make clean
rm -f *.o sipp *~ *.log sipp.tgz *.csv *.exe
rm -rf cxx_repository
+ grep uh_dport /usr/include/netinet/udp.h
u_int16_t uh_dport; /* destination port */

Is something processes/installed in the wrong order? What's needed to
have sipp build succesfull on the BS?


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 >