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))...


_______________________________________________
LTIB home page: http://ltib.org

Ltib mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/ltib

Reply via email to