GNOME Bugzilla – Bug 342220
libgda should enable warnings with autogen.sh, but not with tarball builds.
Last modified: 2010-12-23 13:55:59 UTC
Hi, I'm trying to compile libgda, from garnome 2.14.1 package. libgda fails during compilation, with the following error. =========================== In file included from /nfs/skglnx/home/skg/Packages/Gcc-Packages/gcc-4.1.0/lib/gcc/i686-pc-linux-gnu/4.1.0/../../../../include/c++/4.1.0/backward/iostream.h:31, from /usr/include/xbase/xbstring.h:59, from /usr/include/xbase/xdate.h:68, from /usr/include/xbase/xbase.h:108, from gda-xbase-database.cpp:22: /nfs/skglnx/home/skg/Packages/Gcc-Packages/gcc-4.1.0/lib/gcc/i686-pc-linux-gnu/4.1.0/../../../../include/c++/4.1.0/backward/backward_warning.h:32:2: warning: #warning This file includes at least one deprecated or antiquated header. Please consider using one of the 32 headers found in section 17.4.1.2 of the C++ standard. Examples include substituting the <X> header for the <X.h> header for C++ includes, or <iostream> instead of the deprecated header <iostream.h>. To disable this warning use -Wno-deprecated. /usr/include/xbase/ntx.h:221: error: extra qualification 'xbNtx::' on member 'AllocKeyBufs' make: *** [gda-xbase-database.lo] Error 1 =========================== I'm using gcc-4.1.0 on SuSE 9.1
The Same build problem occurs with garnome 2.14.2 also. This time I'm using gcc-4.1.1. I'm unable to proceed further. Could somebody please let me know what am i doing wrong ?
This is reallt two bugs: 1. The warning should be fixed. 2. libgda should only enable warnings-as-errors when building from cvs, with autogen.sh.
libgda issue
Created attachment 176178 [details] [review] patch to enable compiler warnings This patch adds compiler warnings, with the severity selected at configure-time, as suggested in bug 631109.
Looks good to me. I guess libgda would really benefit from using non-recursive automake one day, so it doesn't need all that repetition.
(In reply to comment #4) > Created an attachment (id=176178) [details] [review] > patch to enable compiler warnings > > This patch adds compiler warnings, with the severity selected at > configure-time, as suggested in bug 631109. Patch applied in git/master: http://git.gnome.org/browse/libgda/commit/?id=a782d063514779553fb8261e71b796ff61e44332 Thanks!