rss-glx screen saver compilation fails?

2008-09-09 Thread Henrik Hudson
Hey List,

running FreeBSD-7-stable (from April or so) i386
binary nVidia drivers

Has anybody successfully got rss-glx  (really slick screensavers; 
http://rss-glx.sourceforge.net/ ) to compile for them?

It isn't in ports and I was trying to compile it. I think I got all of the 
dependencies, etc... as ./configure completes without issue.

I'm getting the following error when running make or gmake:

spirographx.c: In function 'getAll':
spirographx.c:99: warning: implicit declaration of function 'sincosf'
spirographx.c:99: warning: incompatible implicit declaration of built-in 
function 'sincosf'
/usr/local/bin/bash ../libtool --tag=CC --mode=link 
gcc  -O2 -Wall  -I/usr/local/include   -o spirographx  driver.o 
spirographx.o  -lGLU -lGL  -L/usr/local/lib -R/usr/local/lib  -lSM -lICE -lX11  
-lm 
gcc -O2 -Wall -I/usr/local/include -o spirographx driver.o 
spirographx.o  -lGLU -lGL -L/usr/local/lib /usr/local/lib/libSM.so 
/usr/local/lib/libICE.so /usr/local/lib/libX11.so /usr/local/lib/libXau.so 
/usr/local/lib/libXdmcp.so -lrpcsvc -lm   -Wl,--rpath -Wl,/usr/local/lib 
-Wl,--rpath -Wl,/usr/local/lib
/usr/bin/ld: warning: libm.so.3, needed by /usr/local/lib/libGL.so, may 
conflict with libm.so.5
spirographx.o(.text+0x30f): In function `getAll':
: undefined reference to `sincosf'

Any ideas?

Henrik
-- 
Henrik Hudson
[EMAIL PROTECTED]
--
God, root, what is difference? Pitr; UF (http://www.userfriendly.org/)
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: rss-glx screen saver compilation fails?

2008-09-09 Thread perryh
 spirographx.o(.text+0x30f): In function `getAll':
 : undefined reference to `sincosf'

Per Google, it's a gnu-ism: http://linux.die.net/man/3/sincosf

void sincosf(float x, float *sin, float *cos);

Several applications need sine and cosine of the same angle x.
This function computes both at the same time, and stores the
results via the given pointers.

Probably a 10-liner by just calling sin() and cos() separately --
a bit more work to do it properly -- or just grab the gnu code
if you don't need to be BSD-licensed.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]