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 342220 - libgda should enable warnings with autogen.sh, but not with tarball builds.
libgda should enable warnings with autogen.sh, but not with tarball builds.
Status: RESOLVED FIXED
Product: libgda
Classification: Other
Component: general
1.9.x
Other Linux
: Normal normal
: ---
Assigned To: Rodrigo Moya
gnome-db Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-05-18 07:50 UTC by Surya Kiran
Modified: 2010-12-23 13:55 UTC
See Also:
GNOME target: ---
GNOME version: 2.13/2.14


Attachments
patch to enable compiler warnings (28.35 KB, patch)
2010-12-10 13:23 UTC, David King
none Details | Review

Description Surya Kiran 2006-05-18 07:50:52 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
Comment 1 Surya Kiran 2006-06-08 06:54:26 UTC
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 ?
Comment 2 Murray Cumming 2006-07-24 06:45:14 UTC
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.
Comment 3 Karsten Bräckelmann 2006-10-06 17:19:29 UTC
libgda issue
Comment 4 David King 2010-12-10 13:23:56 UTC
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.
Comment 5 Murray Cumming 2010-12-10 14:58:50 UTC
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.
Comment 6 malerba 2010-12-23 13:55:59 UTC
(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!