linc: FTBFS (amd64/gcc-4.0): static declaration of 'in6addr_any' follows non-static declaration

Bug #15334 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
Debian
Fix Released
Unknown
Ubuntu
Fix Released
High
Charles Majola

Bug Description

Automatically imported from Debian bug report #287457 http://bugs.debian.org/287457

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #287457 http://bugs.debian.org/287457

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Mon, 27 Dec 2004 21:51:08 +0100
From: Andreas Jochens <email address hidden>
To: Debian Bug Tracking System <email address hidden>
Subject: linc: FTBFS (amd64/gcc-4.0): static declaration of 'in6addr_any' follows non-static
 declaration

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/linc-1.0.3/src/linc-protocols.c ./src/linc-protocols.c
--- ../tmp-orig/linc-1.0.3/src/linc-protocols.c 2003-06-20 13:31:13.000000000 +0200
+++ ./src/linc-protocols.c 2004-12-27 21:37:17.102249624 +0100
@@ -606,12 +606,6 @@
  */
 #ifdef AF_INET6

-/* FIXME: is IN6ADDR_ANY_INIT exported on Mac OS X ? */
-/* 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_get_sockinfo_ipv6 (const LINCProtocolInfo *proto,
      const struct sockaddr *saddr,

Revision history for this message
In , Martin Michlmayr (tbm) wrote : removed

linc has been removed from Debian because it's now included in orbit2.
--
Martin Michlmayr
http://www.cyrius.com/

Revision history for this message
Charles Majola (chmj) wrote :

This package has been removed from Ubuntu and Debian
------------------- Reason -------------------
RoM; included in orbit2
----------------------------------------------
(from http://ftp-master.debian.org/removals.txt)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.