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 320432 - wont build w/ -Werror on gentoo
wont build w/ -Werror on gentoo
Status: RESOLVED FIXED
Product: rhythmbox
Classification: Other
Component: general
HEAD
Other Linux
: Normal normal
: ---
Assigned To: RhythmBox Maintainers
RhythmBox Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-11-01 19:55 UTC by adamb
Modified: 2006-01-04 11:15 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch (686 bytes, patch)
2005-11-02 03:55 UTC, James "Doc" Livingston
none Details | Review
disable format warnings (661 bytes, patch)
2005-11-03 12:20 UTC, James "Doc" Livingston
none Details | Review
really disable the warnings (673 bytes, patch)
2005-11-07 06:07 UTC, James "Doc" Livingston
rejected Details | Review

Description adamb 2005-11-01 19:55:27 UTC
Distribution/Version: gentoo

Linux aleph 2.6.14-rc5-mm1 #1 SMP PREEMPT Mon Oct 31 11:12:52 PST 2005 i686
Intel(R) Pentium(R) 4 CPU 3.20GHz GenuineIntel GNU/Linux


http://pastebin.com/413644

      rb-podcast-source.c: In function 'rb_podcast_source_post_date_cell_data_func':
      rb-podcast-source.c:1638: warning: `%x' yields only last 2 digits of year
in some locales
      make[2]: *** [rb-podcast-source.lo] Error 1
      make[2]: Leaving directory `/home/adamb/src/rhythmbox/sources'
      make[1]: *** [all-recursive] Error 1
      make[1]: Leaving directory `/home/adamb/src/rhythmbox'
      make: *** [all] Error 2 

removed -Werror from sources/Makefile to build
Comment 1 James "Doc" Livingston 2005-11-02 03:55:50 UTC
Created attachment 54207 [details] [review]
patch

The "%x" means "preferred date format for the current locale", which we use
because we want the preffered format. gcc is spitting out the warning in case
we are writing this out, which could cause y2k problems.

The attached patch should turn off that warning, can you check to see if it
helps?
Comment 2 Tom Kirby 2005-11-03 10:24:20 UTC
Doesn't seem to work for me. I get the same old build error.
Comment 3 Tom Kirby 2005-11-03 10:30:36 UTC
I tell a lie - it's the same error on a different line, although that's probably
because I've just done a CVS checkout.

Before:
rb-podcast-source.c: In function `rb_podcast_source_post_date_cell_data_func':
rb-podcast-source.c:1642: warning: `%x' yields only last 2 digits of year in
some locales

After:
rb-podcast-source.c:1649: warning: `%x' yields only last 2 digits of year in
some locales

Anyway, looks like it's still a problem.
Comment 4 James "Doc" Livingston 2005-11-03 12:20:23 UTC
Created attachment 54270 [details] [review]
disable format warnings

I'd prefer not to disable format warnings, but we might have to. Can you try
this patch?
Comment 5 Tom Kirby 2005-11-06 13:56:56 UTC
I'm afraid that still doesn't work. I can't get RB to build successfully unless
I turn off -Werror, which is probably not the right thing to do.
Comment 6 James "Doc" Livingston 2005-11-07 06:07:29 UTC
Created attachment 54403 [details] [review]
really disable the warnings

Either Gentoo or the version of gcc you are using must enable those warnings by
default. This patch should force them to be disabled.

If this doesn't work, I'm not sure how to fix it - because we really do want %x
to do what it does, and it isn't a mistake that needs warning about.
Comment 7 Tom Kirby 2005-11-07 10:59:31 UTC
Sorry, that still doesn't fix the problem. If I get time, I'll report it to the
Gentoo devs.
Comment 8 James "Doc" Livingston 2005-11-16 08:30:52 UTC
Marking the patch rejected since it doesn't help
Comment 9 Baptiste Mille-Mathias 2005-11-26 16:55:57 UTC
same error for ubuntu dapper.
Comment 10 Baptiste Mille-Mathias 2006-01-03 21:34:43 UTC
For me the problem disappearred; Adam or Thomas could you confirm is it ok for you now ?
Comment 11 Tom Kirby 2006-01-04 11:13:13 UTC
Yes, I think the problem has now gone away.
Comment 12 Baptiste Mille-Mathias 2006-01-04 11:15:19 UTC
Closing so