Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 299438 - =xfce-extra/xfce4-sensors-plugin-0.10.99.6 uses -Werror with USE="debug"
Summary: =xfce-extra/xfce4-sensors-plugin-0.10.99.6 uses -Werror with USE="debug"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: XFCE Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-03 05:53 UTC by Alexander Goomenyuk
Modified: 2010-02-19 09:12 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Build log before patch applied (build-orig.log,32.78 KB, text/plain)
2010-01-03 05:55 UTC, Alexander Goomenyuk
Details
Build log after patch applied (build.log,89.13 KB, text/plain)
2010-01-03 05:55 UTC, Alexander Goomenyuk
Details
Config log (config.log,68.04 KB, text/plain)
2010-01-03 05:56 UTC, Alexander Goomenyuk
Details
Plugin patch (xfce4-sensors-plugin-0.10.99.6-gcc-4.1.2.patch,18.19 KB, patch)
2010-01-03 05:56 UTC, Alexander Goomenyuk
Details | Diff
Ebuild patch (xfce4-sensors-plugin-0.10.99.6-gcc-4.1.2.ebuild.patch,307 bytes, patch)
2010-01-03 05:57 UTC, Alexander Goomenyuk
Details | Diff
emerge --info (emerge.info,3.61 KB, text/plain)
2010-01-03 21:01 UTC, Alexander Goomenyuk
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Goomenyuk 2010-01-03 05:53:41 UTC
The plugin is compilation fails with the following set of USE flags:
[I] xfce-extra/xfce4-sensors-plugin
     Available versions:  0.10.99.6 {acpi debug hddtemp libnotify lm_sensors}
     Installed versions:  0.10.99.6(01:49:50 01/01/10)(acpi debug hddtemp libnotify lm_sensors)

See config.log for more details;

The problem is that gcc-4.1.2 compiler issues the warnings which are treated as errors.

Reproducible: Always

Steps to Reproduce:
1. [sudo] emerge -u =xfce-extra/xfce4-sensors-plugin-0.10.99.6

Actual Results:  
The compilation of sensors plugin fail with the following message:
cc1: warnings being treated as errors
middlelayer.c: In function 'sensor_interface_cleanup':
middlelayer.c:247: warning: old-style function definition
make[2]: *** [libxfce4sensors_la-middlelayer.lo] Error 1

The original build-orig.log attached.

Expected Results:  
The plugin compiled and worked.
See build.log to check the compilation process after patch applied.

See panel.patched.log file to check the debug traces:
>> xfce4-panel > panel.patched.log 2>&1 & disown

The is at least one known issue left: 
Bug 4690 - xfce4-sensors-plugin crashed with SIGSEGV in free() at every reboot
Comment 1 Alexander Goomenyuk 2010-01-03 05:55:20 UTC
Created attachment 214980 [details]
Build log before patch applied
Comment 2 Alexander Goomenyuk 2010-01-03 05:55:43 UTC
Created attachment 214982 [details]
Build log after patch applied
Comment 3 Alexander Goomenyuk 2010-01-03 05:56:10 UTC
Created attachment 214984 [details]
Config log
Comment 4 Alexander Goomenyuk 2010-01-03 05:56:56 UTC
Created attachment 214986 [details, diff]
Plugin patch
Comment 5 Alexander Goomenyuk 2010-01-03 05:57:14 UTC
Created attachment 214987 [details, diff]
Ebuild patch
Comment 6 Alexander Goomenyuk 2010-01-03 06:02:27 UTC
Could you please be so kind and submit the similar bug into mainstream, if you will find the patch useful?
Otherwise I will try to submit.
Comment 7 Patrick Lauer gentoo-dev 2010-01-03 20:45:51 UTC
"The problem is that gcc-4.1.2 compiler issues the warnings which are treated as errors." - are you using FEATURES="stricter" by chance?
Comment 8 Alexander Goomenyuk 2010-01-03 21:00:34 UTC
(In reply to comment #7)
> "The problem is that gcc-4.1.2 compiler issues the warnings which are treated
> as errors." - are you using FEATURES="stricter" by chance?
> 

I believe not. The emerge --info output attached.
Comment 9 Alexander Goomenyuk 2010-01-03 21:01:12 UTC
Created attachment 215077 [details]
emerge --info
Comment 10 Samuli Suominen (RETIRED) gentoo-dev 2010-02-19 09:12:05 UTC
-Werror removed