bugGnome Chemistry Utils - Bugs: bug #16680, compilation error on crystalview.cc

 
 

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

bug #16680: compilation error on crystalview.cc

Submitted by:  None
Submitted on:  Sun 28 May 2006 10:11:26 AM UTC  
 
Category: NoneSeverity: 5 - Blocker
Item Group: NoneStatus: Fixed
Privacy: PublicAssigned to: Jean Bréfort <jean_brefort>
Open/Closed: Closed

Sat 15 Jul 2006 06:21:32 AM UTC, comment #2:

Has been fixed for some time now.

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Sun 28 May 2006 02:46:40 PM UTC, comment #1:

It should be GnomeVFSFileSize. Fixed in cvs, release 0.7.2 soon.

Jean Bréfort <jean_brefort>
Project AdministratorIn charge of this item.
Sun 28 May 2006 10:11:26 AM UTC, original submission:

environment used :
gnome 2.14.1
Linux localhost.localdomain 2.6.16-1.2111_FC5 #1 Thu May 4 21:16:58 EDT 2006 i686 athlon i386 GNU/Linux
gcc (GCC) 4.1.0 20060304 (Red Hat 4.1.0-3)

Error :
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -pthread -DORBIT2=1
-I/usr/local/include/libgoffice-0.3 -I/usr/local/include/openbabel-2.0
-I/usr/include/libglade-2.0 -I/usr/include/gtk-2.0
-I/usr/include/libxml2 -I/usr/lib/gtk-2.0/include
-I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0
-I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
-I/usr/include/gtkglext-1.0 -I/usr/lib/gtkglext-1.0/include
-I/usr/include/libgnomeprintui-2.2 -I/usr/include/libgnomeprint-2.2
-I/usr/include/libgnomecanvas-2.0 -I/usr/include/libart-2.0
-I/usr/include/freetype2 -I/usr/include/gnome-vfs-2.0
-I/usr/lib/gnome-vfs-2.0/include -I/usr/include/bonobo-activation-2.0
-I/usr/include/libbonobo-2.0 -I/usr/include/gconf/2
-I/usr/include/orbit-2.0 -I/usr/include/libgsf-1
-DG_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -Wall -g -O2 -MT
crystalview.lo -MD -MP -MF .deps/crystalview.Tpo -c crystalview.cc
-fPIC -DPIC -o .libs/crystalview.o
crystalview.cc: In function 'gboolean do_save_image(const gchar*,
gsize, GError*, void)':
crystalview.cc:404: error: cannot convert 'gsize*' to
'GnomeVFSFileSize*' for argument '4' to 'GnomeVFSResult
gnome_vfs_write(GnomeVFSHandle, const void, GnomeVFSFileSize,
GnomeVFSFileSize*)'
make[2]: *** [crystalview.lo] Erreur 1
make[2]: Leaving directory `/usr/local/gchemutils/gcu'
make[1]: *** [all-recursive] Erreur 1
make[1]: Leaving directory `/usr/local/gchemutils'
make: *** [all] Erreur 2

I tried to replace gsize by GnomeVFSFileSise but it didn't work:
crystalview.cc:398: error: 'GnomeVFSFileSise' has not been declared
crystalview.cc: In function 'gboolean do_save_image(const gchar, int, GError, void)':
crystalview.cc:401: error: 'GnomeVFSFileSise' was not declared in this scope
crystalview.cc:401: error: expected `;' before 'written'
crystalview.cc:404: error: 'written' was not declared in this scope
crystalview.cc: In member function 'void gcu::CrystalView::SaveAsImage(const char, const char, std::map<std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::less<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<const std::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::basic_string<char, std::char_traits<char>, std::allocator<char> > > > >&)':
crystalview.cc:477: error: invalid conversion from 'gboolean ()(const gchar, int, GError*, void)' to 'gboolean ()(const gchar, gsize, GError*, void)'
crystalview.cc:477: error: initializing argument 2 of 'gboolean gdk_pixbuf_save_to_callbackv(GdkPixbuf, gboolean ()(const gchar, gsize, GError, void), void, const char, char*, char, GError*)'

Anonymous

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

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 5 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Sat 15 Jul 2006 06:21:32 AM UTCjean_brefortStatusConfirmed=>Fixed
  Open/ClosedOpen=>Closed
Sun 28 May 2006 02:47:19 PM UTCjean_brefortSeverity3 - Normal=>5 - Blocker
Sun 28 May 2006 02:46:40 PM UTCjean_brefortStatusNone=>Confirmed
  Assigned toNone=>jean_brefort

Back to the top


Powered by Savane 3.1-cleanup1