Skip to contentSkip to conversation

reiser4progs: FTBFS (amd64/gcc-4.0): static declaration of 'oid40_plug' follows non-static declaration

PATCH Domenico Andreoli 1 participant 1 message Jan 3, 2005

lore
Share & tools
lore
#0 lore raw

hi all,

i've just received the following bug report for reiser4progs debian
package version 1.03-1.

is this a known problem? what about the proposed patch?

thanks
domenico

ps: happy new year :)

----- Forwarded message from Andreas Jochens <[email protected]> -----

Date: Mon, 03 Jan 2005 17:55:02 +0100
From: Andreas Jochens <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: Bug#288414: reiser4progs: FTBFS (amd64/gcc-4.0): static declaration of 'oid40_plug' follows non-static declaration

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

x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../../.. -I../../../include -D_REENTRANT -D_FILE_OFFSET_BITS=no -DENABLE_SYMLINKS -DENABLE_SPECIAL -DENABLE_R5_HASH -DENABLE_FNV1_HASH -DENABLE_RUPASOV_HASH -DENABLE_TEA_HASH -DENABLE_DEG_HASH -DENABLE_LARGE_KEYS -DENABLE_SHORT_KEYS -DENABLE_DOT_O_FIBRE -DENABLE_EXT_1_FIBRE -DENABLE_EXT_3_FIBRE -DENABLE_LEXIC_FIBRE -O3 -Wall -g -O2 -W -Wall -Wuninitialized -Wno-unused-parameter -Wredundant-decls -MT liboid40_static_la-oid40.lo -MD -MP -MF .deps/liboid40_static_la-oid40.Tpo -c oid40.c -o liboid40_static_la-oid40.o
oid40.c:206: error: static declaration of 'oid40_plug' follows non-static declaration
oid40.c:11: error: previous declaration of 'oid40_plug' was here
make[5]: *** [liboid40_static_la-oid40.lo] Error 1
make[5]: Leaving directory `/reiser4progs-1.0.3/plugin/oid/oid40'

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

Regards
Andreas Jochens

plugin/key/key_large/key_large.c renamed from tmp-orig/reiser4progs-1.0.3/plugin/key/key_large/key_large.c +1 -1
diff -urN ../tmp-orig/reiser4progs-1.0.3/plugin/key/key_large/key_large.c ./plugin/key/key_large/key_large.c
@@ -6,7 +6,7 @@
 #ifdef ENABLE_LARGE_KEYS
 #include "key_large.h"
 
-extern reiser4_plug_t key_large_plug;
+static reiser4_plug_t key_large_plug;
 
 /* Returns minimal key */
 static reiser4_key_t *key_large_minimal(void) {
plugin/key/key_short/key_short.c renamed from tmp-orig/reiser4progs-1.0.3/plugin/key/key_short/key_short.c +1 -1
diff -urN ../tmp-orig/reiser4progs-1.0.3/plugin/key/key_short/key_short.c ./plugin/key/key_short/key_short.c
@@ -6,7 +6,7 @@
 #ifdef ENABLE_SHORT_KEYS
 #include "key_short.h"
 
-extern reiser4_plug_t key_short_plug;
+static reiser4_plug_t key_short_plug;
 
 /* Returns minimal key */
 static reiser4_key_t *key_short_minimal(void) {
plugin/oid/oid40/oid40.c renamed from tmp-orig/reiser4progs-1.0.3/plugin/oid/oid40/oid40.c +1 -1
diff -urN ../tmp-orig/reiser4progs-1.0.3/plugin/oid/oid40/oid40.c ./plugin/oid/oid40/oid40.c
@@ -8,7 +8,7 @@
 #include "oid40.h"
 #include "oid40_repair.h"
 
-extern reiser4_plug_t oid40_plug;
+static reiser4_plug_t oid40_plug;
 
 static uint32_t oid40_get_state(generic_entity_t *entity) {
 	aal_assert("umka-2088", entity != NULL);

----- End forwarded message -----

-----[ Domenico Andreoli, aka cavok
--[ http://people.debian.org/~cavok/gpgkey.asc
---[ 3A0F 2F80 F79C 678A 8936 4FEE 0677 9033 A20E BC50