libgii: FTBFS (amd64/gcc-4.0): static declaration of 'linux_joy_devinfo' follows non-static declaration

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

Bug Description

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

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

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

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

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

Package: libgii
Severity: normal
Tags: patch

When building 'libgii' on amd64 with gcc-4.0,
I get the following error:

x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../include -I../../include -g -Wall -O6 -D_REENTRANT -D_THREAD_SAFE -DDEBUG -g -Wall -MT input.lo -MD -MP -MF .deps/input.Tpo -c input.c -fPIC -DPIC -o input.lo
input.c:285: error: static declaration of 'linux_joy_devinfo' follows non-static declaration
input.c:70: error: previous declaration of 'linux_joy_devinfo' was here
make[4]: *** [input.lo] Error 1
make[4]: Leaving directory `/libgii-0.8.5/input/linux_joy'

With the attached patch 'libgii' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/libgii-0.8.5/input/linux_joy/input.c ./input/linux_joy/input.c
--- ../tmp-orig/libgii-0.8.5/input/linux_joy/input.c 2004-05-21 20:51:36.000000000 +0200
+++ ./input/linux_joy/input.c 2004-12-27 15:25:28.362693536 +0100
@@ -67,7 +67,7 @@

 /* ---------------------------------------------------------------------- */

-extern gii_cmddata_getdevinfo linux_joy_devinfo;
+static gii_cmddata_getdevinfo linux_joy_devinfo;

 static int GII_joystick_init(gii_input *inp, char *filename)
 {

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

fixed in libgii_0.8.5-2ubuntu1

Revision history for this message
In , Aurelien Jarno (aurelien-aurel32) wrote : This bug is RC

severity 287397 serious
thanks

gcc-4.0 is now the default compiler, so this bug is RC.

--
  .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
 : :' : Debian GNU/Linux developer | Electrical Engineer
 `. `' <email address hidden> | <email address hidden>
   `- people.debian.org/~aurel32 | www.aurel32.net

Revision history for this message
In , Aurelien Jarno (aurel32) wrote : Fixed in NMU of libgii 1:0.9.1-0.1

tag 287397 + fixed
tag 307418 + fixed

quit

This message was generated automatically in response to a
non-maintainer upload. The .changes file follows.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 13 Jul 2005 22:41:54 +0200
Source: libgii
Binary: libgii0 libgii0-target-x libgii0-dev
Architecture: source i386
Version: 1:0.9.1-0.1
Distribution: unstable
Urgency: low
Maintainer: Martin Albert <email address hidden>
Changed-By: Aurelien Jarno <email address hidden>
Description:
 libgii0 - General Input Interface runtime libraries
 libgii0-dev - General Input Interface development package
 libgii0-target-x - General Input Interface X input target
Closes: 287397 307418
Changes:
 libgii (1:0.9.1-0.1) unstable; urgency=low
 .
   * NMU.
   * New upstream version (closes: bug#307418).
     - Fixes build with gcc-4.0 (closes: bug#287397).
   * Fixed libtool for GNU/kFreeBSD.
Files:
 35f766d8a80812110ae86d5431de3658 612 libs optional libgii_0.9.1-0.1.dsc
 b40b8d82f6958b8697d9c36645dbaa43 736136 libs optional libgii_0.9.1.orig.tar.gz
 0ec94d231219e09146c72dedce501683 11128 libs optional libgii_0.9.1-0.1.diff.gz
 ae36ee276a851572a9f26b9b441694a2 148152 libs optional libgii0_0.9.1-0.1_i386.deb
 5d132653974d789efc6a5537a0da76b7 36232 libs optional libgii0-target-x_0.9.1-0.1_i386.deb
 d9894707d25f300cf4979e5a814946d1 70746 libdevel optional libgii0-dev_0.9.1-0.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC1X4Bw3ao2vG823MRAi0qAJwKLw6A1S9xrO70HIZyXZwbkb6gnACfQbbY
FXKCNCKeNzYs12Zo+Xxk5jE=
=j95X
-----END PGP SIGNATURE-----

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

Message-ID: <email address hidden>
Date: Wed, 13 Jul 2005 22:02:39 +0200
From: Aurelien Jarno <email address hidden>
To: <email address hidden>
Subject: This bug is RC

severity 287397 serious
thanks

gcc-4.0 is now the default compiler, so this bug is RC.

--
  .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73
 : :' : Debian GNU/Linux developer | Electrical Engineer
 `. `' <email address hidden> | <email address hidden>
   `- people.debian.org/~aurel32 | www.aurel32.net

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

Message-Id: <email address hidden>
Date: Wed, 13 Jul 2005 17:17:32 -0400
From: Aurelien Jarno <email address hidden>
To: <email address hidden>
Cc: Aurelien Jarno <email address hidden>, Martin Albert <email address hidden>
Subject: Fixed in NMU of libgii 1:0.9.1-0.1

tag 287397 + fixed
tag 307418 + fixed

quit

This message was generated automatically in response to a
non-maintainer upload. The .changes file follows.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Wed, 13 Jul 2005 22:41:54 +0200
Source: libgii
Binary: libgii0 libgii0-target-x libgii0-dev
Architecture: source i386
Version: 1:0.9.1-0.1
Distribution: unstable
Urgency: low
Maintainer: Martin Albert <email address hidden>
Changed-By: Aurelien Jarno <email address hidden>
Description:
 libgii0 - General Input Interface runtime libraries
 libgii0-dev - General Input Interface development package
 libgii0-target-x - General Input Interface X input target
Closes: 287397 307418
Changes:
 libgii (1:0.9.1-0.1) unstable; urgency=low
 .
   * NMU.
   * New upstream version (closes: bug#307418).
     - Fixes build with gcc-4.0 (closes: bug#287397).
   * Fixed libtool for GNU/kFreeBSD.
Files:
 35f766d8a80812110ae86d5431de3658 612 libs optional libgii_0.9.1-0.1.dsc
 b40b8d82f6958b8697d9c36645dbaa43 736136 libs optional libgii_0.9.1.orig.tar.gz
 0ec94d231219e09146c72dedce501683 11128 libs optional libgii_0.9.1-0.1.diff.gz
 ae36ee276a851572a9f26b9b441694a2 148152 libs optional libgii0_0.9.1-0.1_i386.deb
 5d132653974d789efc6a5537a0da76b7 36232 libs optional libgii0-target-x_0.9.1-0.1_i386.deb
 d9894707d25f300cf4979e5a814946d1 70746 libdevel optional libgii0-dev_0.9.1-0.1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFC1X4Bw3ao2vG823MRAi0qAJwKLw6A1S9xrO70HIZyXZwbkb6gnACfQbbY
FXKCNCKeNzYs12Zo+Xxk5jE=
=j95X
-----END PGP SIGNATURE-----

Revision history for this message
In , Anibal Monsalve Salazar (anibal) wrote : Bug#287397: fixed in libgii 1:1.0.1-1

Source: libgii
Source-Version: 1:1.0.1-1

We believe that the bug you reported is fixed in the latest version of
libgii, which is due to be installed in the Debian FTP archive:

libgii1-dev_1.0.1-1_i386.deb
  to pool/main/libg/libgii/libgii1-dev_1.0.1-1_i386.deb
libgii1-target-x_1.0.1-1_i386.deb
  to pool/main/libg/libgii/libgii1-target-x_1.0.1-1_i386.deb
libgii1_1.0.1-1_i386.deb
  to pool/main/libg/libgii/libgii1_1.0.1-1_i386.deb
libgii_1.0.1-1.diff.gz
  to pool/main/libg/libgii/libgii_1.0.1-1.diff.gz
libgii_1.0.1-1.dsc
  to pool/main/libg/libgii/libgii_1.0.1-1.dsc
libgii_1.0.1.orig.tar.gz
  to pool/main/libg/libgii/libgii_1.0.1.orig.tar.gz

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Anibal Monsalve Salazar <email address hidden> (supplier of updated libgii package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Mon, 24 Jul 2006 21:40:52 +1000
Source: libgii
Binary: libgii1-dev libgii1-target-x libgii1
Architecture: source i386
Version: 1:1.0.1-1
Distribution: unstable
Urgency: low
Maintainer: Debian QA Group <email address hidden>
Changed-By: Anibal Monsalve Salazar <email address hidden>
Description:
 libgii1 - General Input Interface runtime libraries
 libgii1-dev - General Input Interface development package
 libgii1-target-x - General Input Interface X input target
Closes: 287397 307418 339807 367832
Changes:
 libgii (1:1.0.1-1) unstable; urgency=low
 .
   * QA upload.
   * Set QA as maitainer.
   * New upstream release. Closes: #339807.
   * Set Standards-Version to 3.7.2.
   * Set DH_COMPAT to 5.
   * Added homepage to description.
   * Added watch file.
   * ACK NMUs. Closes: #367832, #307418, #287397.
Files:
 c4edc82aa2c977a0db34d4971ab9e2d6 627 libs optional libgii_1.0.1-1.dsc
 6d19ef8723bd4b49baa37fa5f4d429b6 1023831 libs optional libgii_1.0.1.orig.tar.gz
 73e1682662dfedaa25791359baff2973 11292 libs optional libgii_1.0.1-1.diff.gz
 5a2d85021ede509a90fc0bbdb55f6039 233106 libs optional libgii1_1.0.1-1_i386.deb
 a44f8387a765b36b733dfb3d08a0dfea 15896 libs optional libgii1-target-x_1.0.1-1_i386.deb
 4148338666491712858b8022fd37c7b0 192812 libdevel optional libgii1-dev_1.0.1-1_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFExMJeipBneRiAKDwRAibqAJ4vSCMxsWMA/jZsuEIQvs8jM/4jwgCePHFW
5rbuZK4lBe0Qr68rndXSwDI=
=2egX
-----END PGP SIGNATURE-----

Changed in libgii:
status: Fix Committed → Fix Released
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.