GNOME Bugzilla – Bug 589093
error: cast from 'void*' to 'W32::HDC' loses precision
Last modified: 2009-07-26 14:19:33 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.
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 ***