1 |
On 19-10-2007 13:06:56 -0500, Jeremy O wrote: |
2 |
> Any ideas on what to make of this? Sorry for the vague post, I don't |
3 |
> know where to start debugging this one. |
4 |
> |
5 |
> if ia64-hp-hpux11.23-gcc -std=gnu99 -DHAVE_CONFIG_H |
6 |
> -DLIBDIR=\"/home/jolexa/portage/hpux-11.23/tmp/usr/lib\" -I. -I. -I.. |
7 |
> -I.. -I. -O2 -pipe -MT canon-host.o -MD -MP -MF |
8 |
> ".deps/canon-host.Tpo" -c -o canon-host.o canon-host.c; \ |
9 |
> then mv -f ".deps/canon-host.Tpo" ".deps/canon-host.Po"; else |
10 |
> rm -f ".deps/canon-host.Tpo"; exit 1; fi |
11 |
> In file included from getaddrinfo.h:28, |
12 |
> from canon-host.c:27: |
13 |
> /usr/include/sys/socket.h:205: error: two or more data types in |
14 |
> declaration specifiers |
15 |
> /usr/include/sys/socket.h:535: error: static declaration of 'sendfile' |
16 |
> follows non-static declaration |
17 |
|
18 |
Ehwwww... feels like horkened up system headers! I hope gcc's |
19 |
fixincludes fixes that. |
20 |
|
21 |
> /usr/include/sys/socket.h:506: error: previous declaration of |
22 |
> 'sendfile' was here |
23 |
> /usr/include/sys/socket.h:536: error: static declaration of 'sendpath' |
24 |
> follows non-static declaration |
25 |
> /usr/include/sys/socket.h:508: error: previous declaration of |
26 |
> 'sendpath' was here |
27 |
> In file included from canon-host.c:27: |
28 |
> getaddrinfo.h:35: error: redefinition of 'struct addrinfo' |
29 |
> getaddrinfo.h:107: error: conflicting types for 'gai_strerror' |
30 |
> /usr/include/netdb.h:353: error: previous declaration of 'gai_strerror' was here |
31 |
> make[3]: *** [canon-host.o] Error 1 |
32 |
|
33 |
I think gcc prior version 4 could cope with the static declaration |
34 |
follows non-static declaration. Not sure if there is a flag for four to |
35 |
ignore it. The conflicting redefinition, I'm not sure about. |
36 |
|
37 |
|
38 |
-- |
39 |
Fabian Groffen |
40 |
Gentoo on a different level |
41 |
-- |
42 |
gentoo-alt@g.o mailing list |