On Aug 15, 2005 at 18:47, Matt Kraai praised the llamas by saying: > Package: irssi-text > Version: 0.8.9-3 > Severity: serious > > irssi-text fails to build because it cannot define uoff_t: > > > /bin/sh ../../libtool --mode=compile 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/perl/5.8"\" -DPERL_STATIC_LIBS=0 > > -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN > > -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE > > -D_FILE_OFFSET_BITS=64 -I/usr/lib/perl/5.8/CORE -O2 -Wall -c > > perl-core.c > > mkdir .libs > > 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/perl/5.8\" -DPERL_STATIC_LIBS=0 -D_REENTRANT > > -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe > > -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 > > -I/usr/lib/perl/5.8/CORE -O2 -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 > > In file included from perl-core.c:31: > > perl-common.h:31:1: warning: "PL_sv_undef" redefined > > In file included from /usr/lib/perl/5.8/CORE/perl.h:3821, > > from module.h:6, > > from perl-core.c:22: > > /usr/lib/perl/5.8/CORE/embedvar.h:758:1: warning: this is the location of > > the previous definition > > In file included from perl-core.c:31: > > perl-common.h:32: error: syntax error before '->' token > > perl-core.c:40:1: warning: "PL_perl_destruct_level" redefined > > In file included from /usr/lib/perl/5.8/CORE/XSUB.h:320, > > from perl-core.c:35: > > /usr/lib/perl/5.8/CORE/perlapi.h:477:1: warning: this is the location of > > the previous definition > > I don't understand why this doesn't work, though. config.h defines > UOFF_T_LONG_LONG, which should allow common.h to define uoff_t. > The problem is that perl includes a common.h which gets included in preference to the local common.h due to a change in the header search order. I believe this is due to GCC 4.0, possibly caching header locations.
The fix is to move the #include "common.h" earlier in module.h header. -- David Pashley [EMAIL PROTECTED] Nihil curo de ista tua stulta superstitione. -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]