! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Using "sun" as a variable name doesn't work on Solaris
Status:
CLOSED: FIXED
Product:
Xfce4-weather-plugin
Component:
General

Comments

Description Peter Tribble 2012-08-06 23:08:36 CEST
Created attachment 4580 
Patch known to work on Solaris

Like the summary says, the name "sun" is reserved on a Solaris system, and code attempting to use it for variable names fails to compile in strange ways.

See line 894 of panel-plugin/weather.c

    gchar *fog, *cloudiness, *sun, *value;

simplest fix is to replace "sun" by something similar, eg "sunny".
Comment 1 Harald Judt 2012-08-07 11:05:17 CEST
Fixed in http://git.xfce.org/panel-plugins/xfce4-weather-plugin/commit/?id=6a395f4829d7adbffa75e6abf62b0fa0df6e9e81

I renamed it to "sunval". Thanks for reporting.

Bug #9185

Reported by:
Peter Tribble
Reported on: 2012-08-06
Last modified on: 2012-09-12

People

Assignee:
Harald Judt
CC List:
1 user

Version

Attachments

Patch known to work on Solaris (1.62 KB, text/plain)
2012-08-06 23:08 CEST , Peter Tribble
no flags

Additional information