Bug#323321: FTBFS: Unable to define uoff_t
tags 323321 patch thanks Hi David, I am uploading a 0-day NMU for this bug as part of this (Labor Day in the US :) weekend's BSP. Please find the short patch attached. Cheers, -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. [EMAIL PROTECTED] http://www.debian.org/ diff -u irssi-text-0.8.9/config.guess irssi-text-0.8.9/config.guess --- irssi-text-0.8.9/config.guess +++ irssi-text-0.8.9/config.guess @@ -1,9 +1,9 @@ #! /bin/sh # Attempt to guess a canonical system name. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, -# 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. +# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. -timestamp='2004-11-12' +timestamp='2005-08-03' # This file is free software; you can redistribute it and/or modify it # under the terms of the GNU General Public License as published by @@ -17,13 +17,15 @@ # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA +# 02110-1301, USA. # # As a special exception to the GNU General Public License, if you # distribute this file as part of a program that contains a # configuration script generated by Autoconf, you may include it under # the same distribution terms that you use for the rest of that program. + # Originally written by Per Bothner <[EMAIL PROTECTED]>. # Please send patches to <[EMAIL PROTECTED]>. Submit a context # diff and a properly formatted ChangeLog entry. @@ -53,7 +55,7 @@ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO @@ -66,11 +68,11 @@ while test $# -gt 0 ; do case $1 in --time-stamp | --time* | -t ) - echo "$timestamp" ; exit 0 ;; + echo "$timestamp" ; exit ;; --version | -v ) - echo "$version" ; exit 0 ;; + echo "$version" ; exit ;; --help | --h* | -h ) - echo "$usage"; exit 0 ;; + echo "$usage"; exit ;; -- ) # Stop option processing shift; break ;; - )# Use stdin as input. @@ -123,7 +125,7 @@ ;; ,,*) CC_FOR_BUILD=$CC ;; ,*,*) CC_FOR_BUILD=$HOST_CC ;; -esac ;' +esac ; set_cc_for_build= ;' # This is needed to find uname on a Pyramid OSx when run in the BSD universe. # ([EMAIL PROTECTED] 1994-08-24) @@ -196,55 +198,20 @@ # contains redundant information, the shorter form: # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used. echo "${machine}-${os}${release}" - exit 0 ;; -amd64:OpenBSD:*:*) - echo x86_64-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; -amiga:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; -cats:OpenBSD:*:*) - echo arm-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; -hp300:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; -luna88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; -mac68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; -macppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; -mvme68k:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; -mvme88k:OpenBSD:*:*) - echo m88k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; -mvmeppc:OpenBSD:*:*) - echo powerpc-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; -sgi:OpenBSD:*:*) - echo mips64-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; -sun3:OpenBSD:*:*) - echo m68k-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; *:OpenBSD:*:*) - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE} - exit 0 ;; + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE} + exit ;; *:ekkoBSD:*:*) echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} - exit 0 ;; + exit ;; macppc:MirBSD:*:*) echo powerppc-unknown-mirbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; *:MirBSD:*:*) echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} - exit 0 ;; + exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) @@ -297,40 +264,43 @@ # A Xn.n version is an unreleased experimental baselevel. # 1.2 uses "1.2" for uname -r. echo ${U
Bug#323321: FTBFS: Unable to define uoff_t
I fixed it in irssi svn a few months ago (r3726): gcc 4 uses the wrong config.h. Fixed it by replacing "config.h" with "../config.h" in common.h ( See also http://bugs.irssi.org/index.php?do=details&id=219 ) Wouter. pgpo4sd0whDTT.pgp Description: PGP signature
Bug#323321: FTBFS: Unable to define uoff_t
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]
Bug#323321: FTBFS: Unable to define uoff_t
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. -- Matt signature.asc Description: Digital signature