[OpenIndiana-discuss] Problem building xcreensaver 6.15
Peter Tribble
peter.tribble at gmail.com
Sat Jul 11 09:46:23 UTC 2026
On Sat, Jul 11, 2026 at 10:37 AM russell via openindiana-discuss
<openindiana-discuss at openindiana.org> wrote:
>
> Hi
>
> Attempting to build xscreensaver using using gcc 10.4
>
> $ CFLAGS="-Wimplicit-function-declaration -Wnested-externs" ./configure
> --prefix=/opt/xscreensaver
>
> Everything is fine until
>
...
> platonicfolding.c:937:55: error: expected ';', ',' or ')' before numeric
> constant
> 937 | static inline void get_sun_direction(double jd, float sun[4])
> | ^~~
The word "sun" is a predefined constant on Solaris and illumos, so
using it as a variable
name ends in disaster. Simply replace the "sun" there with any other
word (say, "xsun")
and the same replacement where the variable is used in the function,
and all will be well.
--
-Peter Tribble
https://www.petertribble.co.uk/ - https://ptribble.blogspot.com/
More information about the openindiana-discuss
mailing list