When building 'linc' on amd64 with gcc-4.0,
I get the following error:
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -pthread -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wall -Wunused -Wmissing-prototypes -Wmissing-declarations -DG_DISABLE_DEPRECATED -D_GNU_SOURCE -g -Wall -O2 -c linc-protocols.c -fPIC -DPIC -o .libs/linc-protocols.o
In file included from linc-protocols.c:15:
../include/linc/linc-protocol.h:67: warning: type qualifiers ignored on function return type
./include/linc/linc-protocol.h:68: warning: type qualifiers ignored on function return type
./include/linc/linc-protocol.h:69: warning: type qualifiers ignored on function return type
linc-protocols.c: In function 'linc_protocol_is_local_ipv46':
linc-protocols.c:227: warning: pointer targets in passing argument 2 of 'ipv4_addr_from_addr' differ in signedness
linc-protocols.c: At top level:
linc-protocols.c:621: error: static declaration of 'in6addr_any' follows non-static declaration
/usr/include/netinet/in.h:206: error: previous declaration of 'in6addr_any' was here
linc-protocols.c:1125: warning: type qualifiers ignored on function return type
linc-protocols.c:1140: warning: type qualifiers ignored on function return type
linc-protocols.c:1162: warning: type qualifiers ignored on function return type
make[3]: *** [linc-protocols.lo] Error 1
make[3]: Leaving directory `/linc-1.0.3/src'
With the attached patch 'linc' can be compiled
on amd64 using gcc-4.0.
Package: linc
Severity: normal
Tags: patch
When building 'linc' on amd64 with gcc-4.0,
I get the following error:
cc -DHAVE_CONFIG_H -I. -I. -I.. -I../include -I../include -pthread -I/usr/ include/ glib-2. 0 -I/usr/ lib/glib- 2.0/include -Wall -Wunused -Wmissing- prototypes -Wmissing- declarations -DG_DISABLE_ DEPRECATED -D_GNU_SOURCE -g -Wall -O2 -c linc-protocols.c -fPIC -DPIC -o .libs/linc- protocols. o c:15: linc/linc- protocol. h:67: warning: type qualifiers ignored on function return type linc/linc- protocol. h:68: warning: type qualifiers ignored on function return type linc/linc- protocol. h:69: warning: type qualifiers ignored on function return type is_local_ ipv46': c:227: warning: pointer targets in passing argument 2 of 'ipv4_addr_ from_addr' differ in signedness c:621: error: static declaration of 'in6addr_any' follows non-static declaration netinet/ in.h:206: error: previous declaration of 'in6addr_any' was here c:1125: warning: type qualifiers ignored on function return type c:1140: warning: type qualifiers ignored on function return type c:1162: warning: type qualifiers ignored on function return type
In file included from linc-protocols.
../include/
./include/
./include/
linc-protocols.c: In function 'linc_protocol_
linc-protocols.
linc-protocols.c: At top level:
linc-protocols.
/usr/include/
linc-protocols.
linc-protocols.
linc-protocols.
make[3]: *** [linc-protocols.lo] Error 1
make[3]: Leaving directory `/linc-1.0.3/src'
With the attached patch 'linc' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp- orig/linc- 1.0.3/src/ linc-protocols. c ./src/linc- protocols. c orig/linc- 1.0.3/src/ linc-protocols. c 2003-06-20 13:31:13.000000000 +0200 protocols. c 2004-12-27 21:37:17.102249624 +0100
--- ../tmp-
+++ ./src/linc-
@@ -606,12 +606,6 @@
*/
#ifdef AF_INET6
-/* FIXME: is IN6ADDR_ANY_INIT exported on Mac OS X ? */ get_sockinfo_ ipv6 (const LINCProtocolInfo *proto,
-/* on Mac OS X 10.1 inaddr6_any isn't exported by libc */
-#ifndef in6addr_any
- static const struct in6_addr in6addr_any = { { { 0 } } };
-#endif
-
static gboolean
linc_protocol_
const struct sockaddr *saddr,