After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 589093 - error: cast from 'void*' to 'W32::HDC' loses precision
error: cast from 'void*' to 'W32::HDC' loses precision
Status: RESOLVED DUPLICATE of bug 589037
Product: dia
Classification: Other
Component: install
0.97
Other All
: Normal normal
: ---
Assigned To: Dia maintainers
Dia maintainers
Depends on:
Blocks:
 
 
Reported: 2009-07-20 08:28 UTC by Nigel Kukard
Modified: 2009-07-26 14:19 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Nigel Kukard 2009-07-20 08:28:30 UTC
Please describe the problem:
Compiler error when building dia 0.97 on x86_64.

Odd thing is it compiles on i586 fine.


wmf.cpp: In function 'void export_data(DiagramData*, const gchar*, const gchar*, void*)':
wmf.cpp:1283: error: cast from 'void*' to 'W32::HDC' loses precision
wmf.cpp: In function 'PluginInitResult dia_plugin_init(PluginInfo*)':
wmf.cpp:1411: warning: deprecated conversion from string constant to 'gchar*'
make[3]: *** [wmf.lo] Error 1
make[3]: Leaving directory `/var/tmp/nkukard-dia_x86_64-build/dia-0.97/plug-ins/wmf'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/nkukard-dia_x86_64-build/dia-0.97/plug-ins'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/nkukard-dia_x86_64-build/dia-0.97'
make: *** [all] Error 2


Steps to reproduce:
1. Configure on a x86_64 platform with:

  ./configure --host=x86_64-pc-linux --build=x86_64-pc-linux \
        --target=x86_64-pc-linux-gnu \
        --program-prefix= \
        --prefix=/usr \
        --exec-prefix=/usr \
        --bindir=/usr/bin \
        --sbindir=/usr/sbin \
        --sysconfdir=/etc \
        --datadir=/usr/share \
        --includedir=/usr/include \
        --libdir=/usr/lib \
        --libexecdir=/usr/libexec \
        --localstatedir=/var \
        --sharedstatedir=/usr/com \
        --mandir=/usr/share/man \
        --infodir=/usr/share/info --enable-gnome --enable-db2html --with-python


2. Make
make



Actual results:
Generates compiler error.

Expected results:
Compile to succeed.

Does this happen every time?
Yes

Other information:
If any other info is required, please let me know.
Comment 1 Hans Breuer 2009-07-26 14:19:33 UTC
Odd thing is it does not compile _for you_ on 64 bit; works just fine for me on 32 and 64 bit. But beware: if you have installed libemf, which does not not compile on x64, you may have an issue with bug #589037
See also http://bugs.gentoo.org/show_bug.cgi?id=276148

*** This bug has been marked as a duplicate of 589037 ***