[SCIM] scim: FTBFS (amd64/gcc-4.0): non-local variable 'scim::<anonymous struct> scim::__half_full_table []' uses anonymous type

Osamu Aoki osamu@debian.org
Mon Jan 3 15:47:50 PST 2005


Hi,

For your reference, I am forwarding this bug report.

For Debian, I will ask maintainer to include this patch for next
release after his checks.

This may be of your interest.

FTBFS=Fails to build from source

----- Forwarded message from Andreas Jochens <aj@andaco.de> -----

From: Andreas Jochens <aj@andaco.de>
Subject: Bug#288470: scim: FTBFS (amd64/gcc-4.0): non-local variable
    'scim::<anonymous struct> scim::__half_full_table []' uses anonymous type
To: Debian Bug Tracking System <submit@bugs.debian.org>
Date: Tue, 04 Jan 2005 00:00:29 +0100
X-CRM114-Status: Good  ( pR: 46.6199 )

Package: scim
Severity: normal
Tags: patch

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

 x86_64-linux-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I../src -I../intl -DSCIM_LIBDIR=\"/usr/lib\" -DSCIM_DATADIR=\"/usr/share\" -DSCIM_LOCALEDIR=\"/usr/share/locale\" -DSCIM_SYSCONFDIR=\"/etc\" -DSCIM_LIBEXECDIR=\"/usr/lib/scim-1.0\" -DSCIM_ICONDIR=\"/usr/share/scim/icons\" -DSCIM_MODULE_PATH=\"/usr/lib/scim-1.0/\" -DSCIM_LAUNCHER=\"/usr/lib/scim-1.0/scim-launcher\" -W -g -O2 -MT scim_socket_transaction.lo -MD -MP -MF .deps/scim_socket_transaction.Tpo -c scim_socket_transaction.cpp -o scim_socket_transaction.o >/dev/null 2>&1
if /bin/sh ../libtool --mode=compile x86_64-linux-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I../src -I../intl -DSCIM_LIBDIR=\"/usr/lib\" -DSCIM_DATADIR=\"/usr/share\" -DSCIM_LOCALEDIR=\"/usr/share/locale\" -DSCIM_SYSCONFDIR=\"/etc\" -DSCIM_LIBEXECDIR=\"/usr/lib/scim-1.0\" -DSCIM_ICONDIR=\"/usr/share/scim/icons\" -DSCIM_MODULE_PATH=\"/usr/lib/scim-1.0/\" -DSCIM_LAUNCHER=\"/usr/lib/scim-1.0/scim-launcher\"    -W -g -O2 -MT scim_utility.lo -MD -MP -MF ".deps/scim_utility.Tpo" -c -o scim_utility.lo scim_utility.cpp; \
then mv -f ".deps/scim_utility.Tpo" ".deps/scim_utility.Plo"; else rm -f ".deps/scim_utility.Tpo"; exit 1; fi
 x86_64-linux-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -I../src -I../intl -DSCIM_LIBDIR=\"/usr/lib\" -DSCIM_DATADIR=\"/usr/share\" -DSCIM_LOCALEDIR=\"/usr/share/locale\" -DSCIM_SYSCONFDIR=\"/etc\" -DSCIM_LIBEXECDIR=\"/usr/lib/scim-1.0\" -DSCIM_ICONDIR=\"/usr/share/scim/icons\" -DSCIM_MODULE_PATH=\"/usr/lib/scim-1.0/\" -DSCIM_LAUNCHER=\"/usr/lib/scim-1.0/scim-launcher\" -W -g -O2 -MT scim_utility.lo -MD -MP -MF .deps/scim_utility.Tpo -c scim_utility.cpp  -fPIC -DPIC -o .libs/scim_utility.o
scim_utility.cpp: In function 'scim::WideString scim::utf8_mbstowcs(const char*, int)':
scim_utility.cpp:242: warning: comparison between signed and unsigned integer expressions
scim_utility.cpp: In function 'scim::String scim::utf8_wcstombs(const scim::ucs4_t*, int)':
scim_utility.cpp:276: warning: statement has no effect
scim_utility.cpp: At global scope:
scim_utility.cpp:440: error: non-local variable 'scim::<anonymous struct> scim::__half_full_table []' uses anonymous type
scim_utility.cpp:773: warning: missing initializer for member 'scim::__Language::locale_suffix'
make[3]: *** [scim_utility.lo] Error 1
make[3]: Leaving directory `/scim-1.0.1/src'

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

Regards
Andreas Jochens

diff -urN ../tmp-orig/scim-1.0.1/src/scim_utility.cpp ./src/scim_utility.cpp
--- ../tmp-orig/scim-1.0.1/src/scim_utility.cpp	2004-08-06 09:22:52.000000000 +0200
+++ ./src/scim_utility.cpp	2005-01-03 22:33:37.982702248 +0100
@@ -433,7 +433,7 @@
     return false;
 }
 
-struct {
+static struct {
     ucs4_t half;
     ucs4_t full;
     ucs4_t size;





----- End forwarded message -----


More information about the scim mailing list