speech-tools: FTBFS on 64 bit arches: error: cast from 'EST_Val (*)(EST_Item*)' to 'int' loses precision

Bug #28088 reported by Debian Bug Importer
4
Affects Status Importance Assigned to Milestone
speech-tools (Debian)
Fix Released
Unknown
speech-tools (Ubuntu)
Fix Released
High
Unassigned

Bug Description

Automatically imported from Debian bug report #346264 http://bugs.debian.org/346264

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Fri, 6 Jan 2006 19:16:58 +0100
From: Kurt Roeckx <email address hidden>
To: <email address hidden>
Cc: Luk Claes <email address hidden>
Subject: speech-tools: FTBFS on 64 bit arches: error: cast from 'EST_Val (*)(EST_Item*)' to 'int'
 loses precision

Package: speech-tools
Version: 1:1.2.3-9.1
Severity: serious

Hi,

Your package is failing to build on 64 bit arches with the
following error:
g++ -c -g -O3 -fPIC -fno-shared-data -Wall -Wno-non-template-friend -I../include-DINSTANTIATE_TEMPLATES item_feats.cc item_feats.cc: In function 'EST_String get_featname(EST_Val (*)(EST_Item*))':
item_feats.cc:81: error: cast from 'EST_Val (*)(EST_Item*)' to 'int' loses precision
make[2]: *** [item_feats.o] Error 1

Kurt

Revision history for this message
Stephan Rügamer (sruegamer) wrote :

Fixed in ubuntu with the latest upload (all amd64 issues included)
Fix for this for debian is in the dbts (smurf is alarmed :))

Regards,

\sh

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Fri, 6 Jan 2006 21:40:41 +0100
From: Stephan Hermann <email address hidden>
To: <email address hidden>
Subject: Bugfix for amd64 issues

--nextPart2034793.qdgjhOjjKh
Content-Type: multipart/mixed;
  boundary="Boundary-01=_JXtvDRyhkr4kBFF"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

--Boundary-01=_JXtvDRyhkr4kBFF
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: inline

Hi Matthias,

this is the debdiff we spoke about on irc.
=46or ubuntu the fix is already uploaded....for your debian package I creat=
ed=20
this debdiff against the version in sid (it's numbered as NMU, means -9.2)

Regards,

\sh

--Boundary-01=_JXtvDRyhkr4kBFF
Content-Type: text/x-diff;
  charset="us-ascii";
  name="speech-tools_1.2.3-9.2.debdiff"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
 filename="speech-tools_1.2.3-9.2.debdiff"

diff -u speech-tools-1.2.3/stats/EST_DProbDist.cc speech-tools-1.2.3/stats/=
EST_DProbDist.cc
=2D-- speech-tools-1.2.3/stats/EST_DProbDist.cc
+++ speech-tools-1.2.3/stats/EST_DProbDist.cc
@@ -310,7 +310,7 @@
     if (type =3D=3D tprob_discrete)
  return 0;
     else
=2D return (int)scounts.list.head();
+ return (long)scounts.list.head();
 }
=20
 int EST_DiscreteProbDistribution::item_end(int idx) const
@@ -326,7 +326,7 @@
     if (type =3D=3D tprob_discrete)
  return ++idx;
     else
=2D return (int)next((EST_Litem *)idx);
+ return (long)next((EST_Litem *)idx);
 }
=20
 const EST_String &EST_DiscreteProbDistribution::item_name(int idx) const
diff -u speech-tools-1.2.3/ling_class/item_feats.cc speech-tools-1.2.3/ling=
_class/item_feats.cc
=2D-- speech-tools-1.2.3/ling_class/item_feats.cc
+++ speech-tools-1.2.3/ling_class/item_feats.cc
@@ -78,7 +78,7 @@
    EST_String name =3D EST_FeatureFunctionContext::global->get_featfunc_na=
me(func, found);
=20
    if (!found)
=2D EST_error("featfunc 0x%x has no name", (int)func);
+ EST_error("featfunc 0x%x has no name", (long)func);
=20
     return name;
 }
diff -u speech-tools-1.2.3/debian/changelog speech-tools-1.2.3/debian/chang=
elog
=2D-- speech-tools-1.2.3/debian/changelog
+++ speech-tools-1.2.3/debian/changelog
@@ -1,3 +1,11 @@
+speech-tools (1:1.2.3-9.2) unstable; urgency=3Dlow
+
+ * Fixed amd64 bugs:
+ + in ling_class/item_feats.cc (Closes: dbts #346264)
+ + in stats/EST_DProbDist.cc
+
+ -- Stephan Hermann <email address hidden> Fri, 6 Jan 2006 21:21:10 +0100
+
 speech-tools (1:1.2.3-9.1) unstable; urgency=3Dhigh
=20
   * Non-maintainer upload.

--Boundary-01=_JXtvDRyhkr4kBFF--

--nextPart2034793.qdgjhOjjKh
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQBDvtXMwYnnM8CY76gRAs/JAJ0Raa1946mW21fbxwNqi4CrNQaQlQCeKB9R
h/IbUdo4JNxcKlnXXB3zt/I=
=RFLn
-----END PGP SIGNATURE-----

--nextPart2034793.qdgjhOjjKh--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-Id: <email address hidden>
Date: Sat, 07 Jan 2006 11:32:40 -0800
From: Luk Claes <email address hidden>
To: <email address hidden>
Cc: Luk Claes <email address hidden>, Matthias Urlichs <email address hidden>
Subject: Fixed in NMU of speech-tools 1:1.2.3-9.2

tag 346264 + fixed

quit

This message was generated automatically in response to a
non-maintainer upload. The .changes file follows.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Sat, 7 Jan 2006 19:16:21 +0100
Source: speech-tools
Binary: libestools1.2 speech-tools libestools1.2-dev
Architecture: source i386
Version: 1:1.2.3-9.2
Distribution: unstable
Urgency: high
Maintainer: Matthias Urlichs <email address hidden>
Changed-By: Luk Claes <email address hidden>
Description:
 libestools1.2 - Edinburgh Speech Tools Library
 libestools1.2-dev - Edinburgh Speech Tools Library - developer's libraries and docs
 speech-tools - Edinburgh Speech Tools - user binaries
Closes: 346264
Changes:
 speech-tools (1:1.2.3-9.2) unstable; urgency=high
 .
   * Non-maintainer upload.
   * Fix FTBFS on 64 bit arches (Closes: #346264)
Files:
 cda7edf13191fdd336da01e55c908cf9 663 sound optional speech-tools_1.2.3-9.2.dsc
 e01d2359d214b2a76fb4099ecb3cda11 43637 sound optional speech-tools_1.2.3-9.2.diff.gz
 089054e0a706c5a2607d532afe6f7752 1282004 libs optional libestools1.2_1.2.3-9.2_i386.deb
 6a39d815aff381098e492dc6297772a4 2105020 libdevel optional libestools1.2-dev_1.2.3-9.2_i386.deb
 a05e471baba29383f7c9ff49681557fe 234146 sound optional speech-tools_1.2.3-9.2_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDwA5d5UTeB5t8Mo0RAomsAJ9FzxRXGXuAV8etrHBFjwJLEggQKwCbB8iF
IH1Z4LYxAoA4lZRfQ+N4SoM=
=U/EQ
-----END PGP SIGNATURE-----

Changed in speech-tools:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.