Mailinglist Archive: opensuse-buildservice (219 mails)

< Previous Next >
Re: [opensuse-buildservice] Build fails because unit tests runs daemon
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Fri, 29 Feb 2008 14:01:33 +0100
  • Message-id: <20080229130133.GB5007@xxxxxxx>
On Thu, Feb 28, 2008 at 02:25:25PM -0700, John Calcote wrote:
After analyzing this trace I can see by mapping the write(3, ...)
calls to my source code that this code is failing:

// cache our (primary?) ip address in binary and string format
if (getifaddrs(&ifa) == 0)
u_int setflags = IFF_UP | IFF_RUNNING;
u_int clrflags = IFF_LOOPBACK;
struct ifaddrs * ifcur = ifa;

// locate the first proper AF_NET address in our interface list
while (ifcur && (ifcur->ifa_addr->sa_family != AF_INET
|| (ifcur->ifa_flags & setflags) != setflags
|| (ifcur->ifa_flags & clrflags) != 0))
ifcur = ifcur->ifa_next;

if (ifcur)
// cache binary and presentation (string) versions of the ip address
iwlm->myipaddr = (unsigned long)
((struct sockaddr_in *)ifcur->ifa_addr)->sin_addr.s_addr;
&((struct sockaddr_in *)ifcur->ifa_addr)->sin_addr,
iwlm->myipaddrstr, sizeof iwlm->myipaddrstr);

Does this tell you guys anything? I can't really see why it would

It's looking your a network interface that is not loopback. We
don't have that on the build clients, we have just a single
loopback interface.


Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
Follow Ups