[info-performer] Compilation problems, memory usage

New Message Reply Date view Thread view Subject view Author view

From: Boris Mansencal (boris.mansencal++at++free.fr)
Date: 12/09/2002 07:24:35


Hi,

I have Performer 2.5.2 installed under Linux Red Hat 8.0 (gcc3.2, ...).

I have a few problems with the compilation of the provided examples
(in /usr/share/Performer/src/pguide/libpf/C++ with the provided
GNUmakefile).
 I can link with the dynamic libraries (compilation with 'make dso')
but I cannot link witht the static libraries (compilation with 'make opt'
for exemple).
For the compilation of simple.C, I have the following linking error :

/usr/lib/Performer/Static/libpf.a(cBillboard.o)(.data+0x0): undefined
reference to `pthread_create'
/usr/lib/Performer/Static/libpf.a(cBuffer.o)(.data+0x0): undefined reference
to `pthread_create'
/usr/lib/Performer/Static/libpf.a(cChannel.o)(.data+0x0): undefined
reference to `pthread_create'
/usr/lib/Performer/Static/libpf.a(cDCS.o)(.data+0x0): undefined reference to
`pthread_create'
/usr/lib/Performer/Static/libpf.a(cDoubleDCS.o)(.data+0x0): more undefined
references to `pthread_create' follow
/usr/lib/Performer/Static/libpf.a(linuxstubs.o): In function `sprocsp':
linuxstubs.o(.text+0x125): undefined reference to
`pthread_attr_setstacksize'
linuxstubs.o(.text+0x13c): undefined reference to
`pthread_attr_setstackaddr'
linuxstubs.o(.text+0x14f): undefined reference to `pthread_create'
[...]

It seems pthread related.
Does it ring the bell to someone ?

I have also edited simple.C and added the line
"fprintf(stderr, "memory used: %d\n", pfMemory::getArenaBytesUsed());"
in the main loop.
Even when I link to a library debug version ('make dbg' or 'make ddso'),
I continuously get "-1" for pfMemory::getArenaBytesUsed() !

What is the problem ?

pfThanks,

Boris.


New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2b29 : Mon Dec 09 2002 - 07:22:31 PST

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.