Share

Really Slick Screensavers GLX Port

Tracker: Bugs

5 lorenz doesn't build on Solaris in 0.8.3 - ID: 2767289
Last Update: Settings changed ( tugrul )

The new lorenz screensaver in 0.8.3 doesn't build on Solaris, since its
"time" variable conflicts with the system time() function.

The errors reported by the Sun compiler:

"lorenz.cpp", line 68: Error: Multiple declaration for time.
"lorenz.cpp", line 245: Error: Formal argument t of type float in call to
coords_
at_time(float*, float, float*, float*, float*) is being passed extern "C"
long(*)
(long*).
"lorenz.cpp", line 246: Error: The operation "extern "C" long(*)(long*) +
int" is
illegal.
"lorenz.cpp", line 247: Error: The operation "extern "C" long(*)(long*) +
int" is
illegal.
"lorenz.cpp", line 304: Error: The operation "extern "C" long(*)(long*) +
int" is
illegal.
"lorenz.cpp", line 305: Error: The operation "extern "C" long(*)(long*) +
int" is
illegal.
"lorenz.cpp", line 488: Error: The operand "time" cannot be assigned to.
"lorenz.cpp", line 546: Error: The operand "*time" cannot be assigned to.

The attached patch is what we're using in the OpenSolaris packages to
resolve this, by renaming the time variable to "time_n" (for lack of a
better name).


Alan Coopersmith ( acoopersmith ) - 2009-04-16 02:58

5

Open

None

Tugrul Galatali

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File ( 1 )

Filename Description Download
lorenz.patch Download

Changes ( 2 )

Field Old Value Date By
assigned_to nobody 2009-04-22 00:54 tugrul
File Added 322987: lorenz.patch 2009-04-16 02:58 acoopersmith