On Sat, Jul 11, 2026 at 10:37 AM russell via openindiana-discuss
<[email protected]> 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/

_______________________________________________
openindiana-discuss mailing list
[email protected]
https://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to