Hi,

This bug is easy to fix.

>From Jörg Frings-Fürst <debian@jff.email>;

,----
| To fix this, use extern in header files when declaring global variables
`----

Patch to fix this issue.

--- a/gamut/gamut.h
+++ b/gamut/gamut.h
@@ -36,7 +36,7 @@
 #define MAXGAMN 10				/* Maximum gamut point neighbors returned */
 #define NSLOTS 6				/* Number of maximum direction slots */
 
-struct _vrml *wrl;				/* Declared in vrml.h, which may be #included after this */
+extern struct _vrml *wrl;				/* Declared in vrml.h, which may be #included after this */
 
 /* ------------------------------------ */
 #define NODE_STRUCT							\
--- a/spectro/vinflate.c
+++ b/spectro/vinflate.c
@@ -92,7 +92,7 @@ int vinflate(void);
 */
 
 #define WSIZE 0x8000
-unsigned int wp;             /* current position in slide */
+extern unsigned int wp;             /* current position in slide */
 uch slide[32768];
 
 static int vflush_output(unsigned int w) {
@@ -160,8 +160,8 @@ static ush cpdext[] = {         /* Extra
    the stream.
  */
 
-ulg bb;                         /* bit buffer */
-unsigned bk;                    /* bits in bit buffer */
+extern ulg bb;                         /* bit buffer */
+extern unsigned bk;                    /* bits in bit buffer */
 
 ush vmask_bits[] = {
     0x0000,
@@ -239,7 +239,7 @@ int vdbits = 6;          /* bits in base
 #define N_MAX 288       /* maximum number of codes in any set */
 
 
-unsigned hufts;         /* track memory usage */
+extern unsigned hufts;         /* track memory usage */
 
 /* Given a list of code lengths and a maximum table size, make a set of
    tables to decode that set of codes.  Return zero on success, one if
Christian

Reply via email to