Hello,

If you're gonna hi-jack a thread, could you at least have the courtesy to
change the Subject? ;-)

On Tuesday 08 Feb 2005 23:53, Edel SM wrote:
> helllo list,
>
> i am bootsraping hardened/uclibc, but failed on compiling on uclibc.
> how do i correct these errors?
>
> gcc  -Wall -Wstrict-prototypes -Wno-trigraphs -fno-strict-aliasing
> -mpreferred-stack-boundary=2 -falign-jumps=0 -falign-loops=0 -Os
> -fno-stack-protector-all -fstack-protector -fno-builtin -nostdinc
> -D_LIBC -I../../../../include -I.
> -I/usr/lib/gcc-lib/i386-pc-linux-uclibc/3.3.4/include -DNDEBUG -fPIC
> -c ssp.c -o ssp.o
> In file included from ../../../../include/bits/socket.h:305,
>                  from ../../../../include/sys/socket.h:35,
>                  from ssp.c:29:
> ../../../../include/asm/socket.h:53:1: warning: "SOCK_STREAM" redefined
> In file included from ../../../../include/sys/socket.h:35,
>                  from ssp.c:29:
> ../../../../include/bits/socket.h:45:1: warning: this is the location
> of the previous definition
> In file included from ../../../../include/bits/socket.h:305,
>                  from ../../../../include/sys/socket.h:35,
>                  from ssp.c:29:
> ../../../../include/asm/socket.h:54:1: warning: "SOCK_DGRAM" redefined
> In file included from ../../../../include/sys/socket.h:35,
>                  from ssp.c:29:
> ../../../../include/bits/socket.h:48:1: warning: this is the location
> of the previous definition
> In file included from ../../../../include/bits/socket.h:305,
>                  from ../../../../include/sys/socket.h:35,
>                  from ssp.c:29:
> ../../../../include/asm/socket.h:55:1: warning: "SOCK_RAW" redefined
> In file included from ../../../../include/sys/socket.h:35,
>                  from ssp.c:29:
> ../../../../include/bits/socket.h:50:1: warning: this is the location
> of the previous definition
> In file included from ../../../../include/bits/socket.h:305,
>                  from ../../../../include/sys/socket.h:35,
>                  from ssp.c:29:
> ../../../../include/asm/socket.h:56:1: warning: "SOCK_RDM" redefined
> In file included from ../../../../include/sys/socket.h:35,
>                  from ssp.c:29:
> ../../../../include/bits/socket.h:52:1: warning: this is the location
> of the previous definition
> In file included from ../../../../include/bits/socket.h:305,
>                  from ../../../../include/sys/socket.h:35,
>                  from ssp.c:29:
> ../../../../include/asm/socket.h:57:1: warning: "SOCK_SEQPACKET" redefined
> In file included from ../../../../include/sys/socket.h:35,
>                  from ssp.c:29:
> ../../../../include/bits/socket.h:55:1: warning: this is the location
> of the previous definition
> In file included from ../../../../include/bits/socket.h:305,
>                  from ../../../../include/sys/socket.h:35,
>                  from ssp.c:29:
> ../../../../include/asm/socket.h:58:1: warning: "SOCK_PACKET" redefined
> In file included from ../../../../include/sys/socket.h:35,
>                  from ssp.c:29:
> ../../../../include/bits/socket.h:59:1: warning: this is the location
> of the previous definition
> In file included from ../../../../include/linux/list.h:5,
>                  from ../../../../include/linux/sysctl.h:23,
>                  from ../../../../include/sys/sysctl.h:28,
>                  from ssp.c:33:
> ../../../../include/linux/prefetch.h: In function `prefetch_range':
> ../../../../include/linux/prefetch.h:63: warning: implicit declaration
> of function `__cast__'

There are warnings and should be safe to ignore.

> ../../../../include/linux/prefetch.h:63: error: syntax error before "char"
> ../../../../include/linux/prefetch.h:65: error: syntax error before "char"
> ../../../../include/linux/prefetch.h:65: error: syntax error before ')'

Can you check /usr/include/linux/prefetch.h, and see if lines 63-65, have an
axpression akin to '__cast__(char *) ...'?  If so, can you add
'#include <linux/compiler.h' to the top of prefetch.h, and see if that fixes
it?

Best,
Elfyn

--
Elfyn McBratney
beu on irc.freenode.net/savannah.[non]gnu.org

PGP Key ID: 0x69DF17AD
PGP Key Fingerprint:
  DBD3 B756 ED58 B1B4 47B9  B3BD 8D41 E597 69DF 17AD

Attachment: pgpN3UL2ylpwK.pgp
Description: PGP signature

Reply via email to