i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src -I../../src/core -I../../src/fe-common/core -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -DSCRIPTDIR=\"/usr/share/irssi/scripts\" -DPERL_USE_LIB=\"/usr/lib/perl5/5.8.6/i686-linux\" -DPERL_STATIC_LIBS=0 -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl5/5.8.6/i686-linux/CORE -O2 -march=athlon-xp -pipe -Wall -c perl-core.c -fPIC -DPIC -o .libs/perl-core.o In file included from module.h:19, from perl-core.c:22: ../../src/common.h:66:4: error: #error uoff_t size not set In file included from perl-core.c:26: ../../src/core/misc.h:79: error: syntax error before 'str_to_uofft' ../../src/core/misc.h:79: warning: type defaults to 'int' in declaration of 'str_to_uofft' ../../src/core/misc.h:79: warning: data definition has no type or storage class perl-core.c: In function 'perl_script_eval': perl-core.c:254: error: 'sv_undef' undeclared (first use in this function) perl-core.c:254: error: (Each undeclared identifier is reported only once perl-core.c:254: error: for each function it appears in.) make[3]: *** [perl-core.lo] Error 1 make[3]: Leaving directory `/buildroot/portage/irssi-0.8.10_rc5-r1/work/irssi-0.8.10-rc5/src/perl' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/buildroot/portage/irssi-0.8.10_rc5-r1/work/irssi-0.8.10-rc5/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/buildroot/portage/irssi-0.8.10_rc5-r1/work/irssi-0.8.10-rc5' make: *** [all-recursive-am] Error 2 A patch is attached.
Created attachment 59120 [details, diff] irssi-0.8.10_rc5-gcc4.patch
I comited a different fix from upstream svn: Index: src/common.h =================================================================== --- src/common.h (revision 3725) +++ src/common.h (revision 3726) @@ -14,7 +14,7 @@ #define DEFAULT_SERVER_ADD_PORT 6667 #ifdef HAVE_CONFIG_H -#include "config.h" +#include "../config.h" #endif #include <stdio.h>