> 
> > But then I went a step further and compiled the view-perf with the
> > switches "-DMP" and "-lpthread", which seem to enable threads.
> > While all other tests work (as far as I can tell), DRV crashes now. In
> > Software-mode I get a segmentation fault and in hardware mode it says
> > "RadeonSwapBuffers error: some number".
> >
> > Can anybody reproduce these problems?
> 
> I will, but how have you solved the problem below?
> 
> cc -o viewperf objs/Env.o objs/clock.o objs/texture.o objs/viewperf.o 
> objs/eD.o objs/eI.o objs/eDM.o objs/eIM.o objs/eDA.o objs/eIA.o objs/eDMA.o 
> objs/eIMA.o objs/eDW.o objs/eIW.o objs/eDMW.o objs/eIMW.o objs/eDAW.o 
> objs/eIAW.o objs/eDMAW.o objs/eIMAW.o -L/usr/X11R6/lib -Lobjs -Lvpaux/libaux 
> -Lvpaux/libtk -L/usr/lib -L/usr/lib -lvp -lm -lX11 -lXext -laux -lGL -lGLU 
> -lz -lpng -lpthread
> objs/viewperf.o: In function `parse_args':
> objs/viewperf.o(.text+0x7af7): undefined reference to `GetNumProcessors'
> collect2: ld returned 1 exit status
> make: *** [viewperf] Error 1
> 
> `GetNumProcessors' is NOT defined in EnvLINUX.c.
> But in:
> 
> Env.h:int GetNumProcessors();
> EnvAIX.c: * GetNumProcessors - return number of processor on system
> EnvAIX.c:GetNumProcessors()
> EnvSGI.c: * GetNumProcessors - return number of processor on system
> EnvSGI.c:GetNumProcessors()
> EnvWin.c: * GetNumProcessors - return number of processor on system
> EnvWin.c:GetNumProcessors()
> EnvWin2.c: * GetNumProcessors - return number of processor on system
> EnvWin2.c:GetNumProcessors()
> grep: objs: Ist ein Verzeichnis
> grep: pngxor: Ist ein Verzeichnis
> grep: test: Ist ein Verzeichnis
> viewperf.c:       eventblock.threads = GetNumProcessors ();
> grep: vpaux: Ist ein Verzeichnis
> 

I used the standard "Makefile" in "src/". To be able to compile anything
at all I had to add "-I/usr/X11/lib".  For multithreading I added
somewhere (I think in "DEFINES=.." the "-DMP"  and for the libraries I
added the "-pthread"). I don't know what else could be relevant. Maybe
that the sources of viewperf I'm using are maybe three month old, so that
there could be a newer version. Also I'm compiling under Suse 7.3.

I did not experience these compile-errors.

        Klaus



_______________________________________________
Dri-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dri-devel

Reply via email to