Package: pork
Severity: normal
Tags: patch

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

if x86_64-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I.. -I. -I../.. 
-I../missing    -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN 
-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE 
-D_FILE_OFFSET_BITS=64  -I/usr/lib/perl/5.8/CORE  -g -O2 -MT pork_irc.o -MD -MP 
-MF ".deps/pork_irc.Tpo" \
  -c -o pork_irc.o `test -f 'pork_irc.c' || echo './'`pork_irc.c; \
then mv -f ".deps/pork_irc.Tpo" ".deps/pork_irc.Po"; \
else rm -f ".deps/pork_irc.Tpo"; exit 1; \
fi
In file included from ../pork_imwindow.h:18,
                 from pork_irc.c:34:
../pork_set.h:150: error: array type has incomplete element type
make[4]: *** [pork_irc.o] Error 1
make[4]: Leaving directory `/pork-0.99.7/src/irc'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/pork-0.99.7/src/pork_set.h ./src/pork_set.h
--- ../tmp-orig/pork-0.99.7/src/pork_set.h      2004-12-05 08:58:29.000000000 
+0100
+++ ./src/pork_set.h    2005-03-18 21:07:38.970589133 +0100
@@ -147,8 +147,6 @@
 
 #define OPT_FORMAT_OFFSET OPT_FORMAT_ACTION_RECV
 
-extern struct global_var global_var[OPT_NUM_OPTS];
-
 /*
 ** Per-window options.
 */
@@ -184,6 +182,8 @@
        } val;
 };
 
+extern struct global_var global_var[OPT_NUM_OPTS];
+
 struct window_opts {
        union {
                u_int32_t i;


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to