ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Ltib] Strace fails to build with newer GCC toolchains


From: Stuart Hughes
Subject: Re: [Ltib] Strace fails to build with newer GCC toolchains
Date: Tue, 28 Feb 2012 08:40:53 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.27) Gecko/20120216 Lightning/1.0b2 Thunderbird/3.1.19

Hi Peter,

Thanks for the patch, I'll get this added as soon as I get time.

Regards, Stuart


On 27/02/12 19:56, Peter Barada wrote:
When building strace-4.5.14 using CodeSourcery 2011.06-70 for ARM
(gcc-4.6.1) it fails with:

if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ilinux/arm -I./linux/arm -Ilinux
-I./linux   -Wall -g -O2 -MT net.o -MD -MP -MF ".deps/net.Tpo" -c -o
net.o net.c; \
     then mv -f ".deps/net.Tpo" ".deps/net.Po"; else rm -f
".deps/net.Tpo"; exit 1; fi
if gcc -DHAVE_CONFIG_H -I. -I. -I. -Ilinux/arm -I./linux/arm -Ilinux
-I./linux   -Wall -g -O2 -MT process.o -MD -MP -MF ".deps/process.Tpo"
-c -o process.o process.c; \
     then mv -f ".deps/process.Tpo" ".deps/process.Po"; else rm -f
".deps/process.Tpo"; exit 1; fi
net.c: In function 'printsock':
net.c:957:22: error: field 'nl' has incomplete type
make[1]: *** [net.o] Error 1
make[1]: *** Waiting for unfinished jobs....

This is due to configured errantly using<linux/socket.h>  instead of
<sys/socket.h>; details at:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560516

The attached patch fixes this issue (and still builds on CodeSourcery
2009q1-203 (gcc-4.3.3))...




reply via email to

[Prev in Thread] Current Thread [Next in Thread]