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 120619 - gnome-vfsmm-1.3.3 does not compile
gnome-vfsmm-1.3.3 does not compile
Status: RESOLVED FIXED
Product: gnome-vfsmm
Classification: Deprecated
Component: general
git master
Other other
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2003-08-24 21:07 UTC by Mike Castle
Modified: 2011-01-16 23:36 UTC
See Also:
GNOME target: ---
GNOME version: 2.3/2.4


Attachments
static_cast -> plain cast for gcc 2.95.4 (19.42 KB, patch)
2003-08-26 05:16 UTC, Mike Castle
none Details | Review

Description Mike Castle 2003-08-24 21:07:16 UTC
gcc version 2.95.4 20020723 (prerelease)

 g++ -DHAVE_CONFIG_H -DG_LOG_DOMAIN=\"libgnomevfsmm\" -I../../libgnomevfs -
I../../../gnome-vfsmm-1.3.3/libgnomevfs -pthread -DORBIT2=1 -
I/usr/include/gtkmm-2.0 -I/usr/lib/gtkmm-2.0/include -I/usr/include/gtk-
2.0 -I/usr/lib/sigc++-1.2/include -I/usr/include/sigc++-1.2 -
I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/lib/gtk-
2.0/include -I/usr/include/pango-1.0 -I/usr/include/freetype2 -
I/usr/X11R6/include -I/usr/include/atk-1.0 -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/orbit-2.0 -I/usr/include/gnome-vfs-module-2.0 -g -O2 -
c ../../../gnome-vfsmm-1.3.3/libgnomevfs/libgnomevfsmm/file-info.cc -Wp,-
MD,.deps/file-info.TPlo  -fPIC -DPIC -o .libs/file-info.o
../../../gnome-vfsmm-1.3.3/libgnomevfs/libgnomevfsmm/file-info.cc: In 
method `enum Gnome::Vfs::FileType Gnome::Vfs::FileInfo::get_type() const':
../../../gnome-vfsmm-1.3.3/libgnomevfs/libgnomevfsmm/file-info.cc:157: 
static_cast from `const GnomeVFSFileType' to `Gnome::Vfs::FileType'
../../../gnome-vfsmm-1.3.3/libgnomevfs/libgnomevfsmm/file-info.cc: In 
method `enum Gnome::Vfs::FilePermissions 
Gnome::Vfs::FileInfo::get_permissions() const':
../../../gnome-vfsmm-1.3.3/libgnomevfs/libgnomevfsmm/file-info.cc:162: 
static_cast from `const GnomeVFSFilePermissions' to 
`Gnome::Vfs::FilePermissions'
../../../gnome-vfsmm-1.3.3/libgnomevfs/libgnomevfsmm/file-info.cc: In 
method `enum Gnome::Vfs::FileFlags Gnome::Vfs::FileInfo::get_flags() 
const':
../../../gnome-vfsmm-1.3.3/libgnomevfs/libgnomevfsmm/file-info.cc:167: 
static_cast from `const GnomeVFSFileFlags' to `Gnome::Vfs::FileFlags'
make[1]: *** [file-info.lo] Error 1
make[1]: Leaving directory `/usr/src/gnome-vfsmm/gnome-vfsmm-1.3.3-
build/libgnomevfs/libgnomevfsmm'

This was first reported back in May:
http://mail.gnome.org/archives/gnomemm-list/2003-May/msg00021.html

If a newer version of GCC is required, then please, document it.

The last version to work with this version of gcc was gnome-vfsmm-1.3.0.
Comment 1 Murray Cumming 2003-08-25 13:37:14 UTC
Could you please try a normal cast there or a reinterpret_cast<>.
Comment 2 Mike Castle 2003-08-26 05:16:41 UTC
Created attachment 19506 [details] [review]
static_cast -> plain cast for gcc 2.95.4
Comment 3 Mike Castle 2003-08-26 05:20:56 UTC
Anyway, that was an ugly patch.  I'm hoping that it will provide a 
pointer as to what is wrong with gcc.  I mean, there are still some 
static_cast's left, so it's not just that.  Something this version of 
gcc simply doesn't like about those.
Comment 4 Murray Cumming 2003-08-26 14:22:24 UTC
Thanks, I will try to make it generate that code for the broken compiler.

Please see the patch advice here in future:
http://www.gtkmm.org/bugs.shtml



Comment 5 Mike Castle 2003-08-26 16:03:13 UTC
I didn't create a ChangeLog entry because it's not a patch I expect 
to be integrated, but rather as a hint used to determine what may be 
the root cause.

As far as cvs goes, too many issues with autoconf incompatibilities 
(I mean, looking at the fact that you're still using configure.in 
rather than configure.ac suggests you're using an older version than 
I am).  It took enough time to do the above.
Comment 6 Murray Cumming 2003-08-27 05:53:18 UTC
I have committed the workaround fix to the .m4 conversions file to 
cvs. Thanks.

> configure.in rather than configure.ac 
configure.ac is relatively new. Not many people have changed to it 
yet. We generally work with very latest autotools, and try to work 
with the old ones too.