[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Ltib] Strace fails to build with newer GCC toolchains
From: |
Peter Barada |
Subject: |
[Ltib] Strace fails to build with newer GCC toolchains |
Date: |
Mon, 27 Feb 2012 14:56:43 -0500 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.27) Gecko/20120216 Lightning/1.0b2 Thunderbird/3.1.19 |
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))...
--
Peter Barada
address@hidden
strace-4.5.14-sys_socket.patch
Description: Text Data
- [Ltib] Strace fails to build with newer GCC toolchains,
Peter Barada <=