[email protected]
[Top] [All Lists]

Bug#284347: marked as forwarded (poedit: FTBFS (amd64/gcc-4.0): cast fro

Subject: Bug#284347: marked as forwarded poedit: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses precision
From: Debian Bug Tracking System
Date: Mon, 06 Dec 2004 00:18:09 -0800
Your message dated Mon, 6 Dec 2004 08:22:40 +0100
with message-id <[email protected]>
has caused the Debian Bug report #284347,
regarding poedit: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses 
to be marked as having been forwarded to the upstream software
author(s) [email protected]

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

Received: (at 284347-forwarded) by bugs.debian.org; 6 Dec 2004 08:10:59 +0000
>From [email protected] Mon Dec 06 00:10:59 2004
Return-path: <[email protected]>
Received: from onera.onera.fr [] 
        by spohr.debian.org with esmtp (Exim 3.35 1 (Debian))
        id 1CbDxT-00045q-00; Mon, 06 Dec 2004 00:10:59 -0800
Received: from cc-mykerinos.onera (localhost [])
        by onera.onera.fr  with ESMTP id iB68ArXU006833;
        Mon, 6 Dec 2004 09:10:55 +0100 (MET)
Received: by mykerinos.kheops.frmug.org (Postfix, from userid 7426)
        id A5A332329D; Mon,  6 Dec 2004 08:22:41 +0100 (CET)
Date: Mon, 6 Dec 2004 08:22:40 +0100
From: Christian Perrier <[email protected]>
To: [email protected]
Cc: Vaclav Slavik <[email protected]>, Andreas Jochens <[email protected]>
Subject: Re: Bug#284347: poedit: FTBFS (amd64/gcc-4.0): cast from 'void*' to 
'int' loses precision
Message-ID: <[email protected]>
References: <[email protected]>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="3MMMIZFJzhAsRj/+"
Content-Disposition: inline
In-Reply-To: <[email protected]>
X-message-flag: Outlook is a good virus spreading tool. It can send mail, too.
X-pot_a_miel: [email protected]
User-Agent: Mutt/1.5.6+20040907i
Delivered-To: [email protected]
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2004_03_25 
        (1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
        autolearn=no version=2.60-bugs.debian.org_2004_03_25

Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Quoting Andreas Jochens ([email protected]):
> Package: poedit
> Severity: normal
> Tags: patch
> When building 'poedit' on amd64 with gcc-4.0,
> I get the following error:
> if g++ -DPACKAGE_NAME=\"poedit\" -DPACKAGE_TARNAME=\"poedit\" 
> -DPACKAGE_VERSION=\"1.3.1\" -DPACKAGE_STRING=\"poedit\ 1.3.1\" 
> -DPACKAGE_BUGREPORT=\"[email protected]\" -DPACKAGE=\"poedit\" 
> -DVERSION=\"1.3.1\"  -I. -I. -I../extras/wx-contrib/include    -ggdb 
> -I/usr/lib/wx/include/gtk-2.4 -DGTK_NO_CHECK_CASTS -D__WXGTK__ 
> manager.o -MD -MP -MF ".deps/manager.Tpo" \
>   -c -o manager.o `test -f 'manager.cpp' || echo './'`manager.cpp; \
> then mv -f ".deps/manager.Tpo" ".deps/manager.Po"; \
> else rm -f ".deps/manager.Tpo"; exit 1; \
> fi
> manager.cpp: In member function 'void 
> ManagerFrame::OnEditProject(wxCommandEvent&)':
> manager.cpp:369: error: cast from 'void*' to 'int' loses precision
> manager.cpp: In member function 'void 
> ManagerFrame::OnDeleteProject(wxCommandEvent&)':
> manager.cpp:379: error: cast from 'void*' to 'int' loses precision
> manager.cpp: In member function 'void 
> ManagerFrame::OnSelectProject(wxCommandEvent&)':
> manager.cpp:387: error: cast from 'void*' to 'int' loses precision
> make[3]: *** [manager.o] Error 1
> make[3]: Leaving directory `/poedit-1.3.1/src'
> With the attached patch 'poedit' can be compiled
> on amd64 using gcc-4.0.

Vaclav, could you consider including this patch for compilation with
gcc 4.0 in further releases of poedit? 

Andreas, thanks for reporting and providing this patch. I will make my
best for including it in next poedit Debian package release.

Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="poedit.patch"

--- ../tmp-orig/poedit-1.3.1/src/manager.cpp    2004-09-04 12:21:39.000000000 
+++ ./src/manager.cpp   2004-12-05 13:48:03.290959880 +0000
@@ -366,7 +366,7 @@
        int sel = m_listPrj->GetSelection();
        if (sel == -1) return;
-    EditProject((int)m_listPrj->GetClientData(sel));
+    EditProject((long)m_listPrj->GetClientData(sel));
@@ -376,7 +376,7 @@
        if (sel == -1) return;
     if (wxMessageBox(_("Do you want to delete the project?"),
                _("Confirmation"), wxYES_NO | wxICON_QUESTION, this) == wxYES)
-        DeleteProject((int)m_listPrj->GetClientData(sel));
+        DeleteProject((long)m_listPrj->GetClientData(sel));
@@ -384,7 +384,7 @@
        int sel = m_listPrj->GetSelection();
        if (sel == -1) return;
-    m_curPrj = (int)m_listPrj->GetClientData(sel);
+    m_curPrj = (long)m_listPrj->GetClientData(sel);


To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

<Prev in Thread] Current Thread [Next in Thread>
  • Bug#284347: marked as forwarded (poedit: FTBFS (amd64/gcc-4.0): cast from 'void*' to 'int' loses precision), Debian Bug Tracking System <=