bugGnome Chemistry Utils - Bugs: bug #31602, Possibly a problematic type cast...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #31602: Possibly a problematic type cast with 0.12.4 for 64bit version

Submitted by:  Karl-Michael Schindler <mischi>
Submitted on:  Tue 09 Nov 2010 04:19:55 PM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Invalid
Privacy: PublicAssigned to: None
Open/Closed: Closed

Thu 24 Feb 2011 07:00:06 AM UTC, comment #3:

After setting up all dependent libraries in 64bit, the build process runs without problems. Sorry, my fault. The bug issue can be closed as resolved.

Karl-Michael Schindler <mischi>
Wed 10 Nov 2010 05:12:38 PM UTC, comment #2:

I'd like to know what are the sizes of the following types in your architecture: gpointer, gint, glong.

Jean Bréfort <jean_brefort>
Project Administrator
Tue 09 Nov 2010 06:12:49 PM UTC, comment #1:

Looks like your compile does not like the GPOINTER_TO_INT and GINT_TO_POINTER macros. These are defined in glib-2. They work fine on my amd64 machine, using debian linux and gcc-4.4.

Jean Bréfort <jean_brefort>
Project Administrator
Tue 09 Nov 2010 04:19:55 PM UTC, original submission:

on Mac OS X ./configure, make fails with this message:

libtool: compile: g++ -DHAVE_CONFIG_H -DDATADIR=\"/usr/local/share\" -DLOCALEDIR=\"/usr/local/share/locale\" -DPKGDATADIR=\"/usr/local/share/gchemutils/0.12\" -DUIDIR=\"/usr/local/share/gchemutils/0.12/ui/libgcu\" -DGCU_PLUGINS_DIR=\"/usr/local/lib/gchemutils/0.12/plugins\" -I. -I../.. -I../.. -I../../libs -I/sw/include/libgoffice-0.8 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/libgsf-1 -I/sw/include/libxml2 -I/sw/include -I/sw/include/gtk-2.0 -I/sw/include/libglade-2.0 -I/sw/include/cairo -I/sw/include/pango-1.0 -I/sw/include/gconf/2 -I/sw/lib/gtk-2.0/include -I/sw/include/atk-1.0 -I/sw/include/freetype2 -I/usr/X11R6/include -I/usr/X11/include -I/sw/include/gtkglext-1.0 -I/sw/lib/gtkglext-1.0/include -I/sw/include/gtk-2.0 -I/sw/lib/gtk-2.0/include -I/sw/include/pango-1.0 -I/sw/include/glib-2.0 -I/sw/lib/glib-2.0/include -I/sw/include/cairo -I/sw/include/freetype2 -I/sw/include -I/sw/include/atk-1.0 -I/usr/X11R6/include -I/usr/X11/include -I/sw/include/openbabel-2.0 -Wall -Wextra -g -O2 -MT print-setup-dlg.lo -MD -MP -MF .deps/print-setup-dlg.Tpo -c print-setup-dlg.cc -fno-common -DPIC -o .libs/print-setup-dlg.o
print-setup-dlg.cc: In function ‘void gcu::on_orientation_changed(GtkToggleButton, gcu::PrintSetupDlg)’:
print-setup-dlg.cc:60: error: cast from ‘void*’ to ‘gint’ loses precision
print-setup-dlg.cc: In function ‘void gcu::on_scale_type_changed(GtkToggleButton, gcu::PrintSetupDlg)’:
print-setup-dlg.cc:66: error: cast from ‘void*’ to ‘gint’ loses precision

./configure CPPFLAGS='-arch i386' CFLAGS='-arch i386' CPPFLAGS='-arch i386'

i.e. enforcing 32bit resolves it, but this typecast might be a problem for a 64bit version. no real idea, how to fix it.

Karl-Michael Schindler <mischi>

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by mischi (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 24 Feb 2011 10:02:40 AM UTCjean_brefortStatusNeed Info=>Invalid
      Open/ClosedOpen=>Closed
    Mon 21 Feb 2011 08:48:18 AM UTCjean_brefortStatusNone=>Need Info

    Back to the top


    Powered by Savane 3.1-cleanup1