From: Nave, Ronald (NaveR++at++fidelitytech.com)
Date: 11/05/2003 11:26:21
I recently installed the demo version of Performer 3.02 on an INTEL computer
running Red Hat 9 with kernel version 2.4.22
I have been able to run the precompiled examples such as perfly ,
bu could not recompile any source code examples.
The gcc 3.2 compiler reports a linker error _ctype_b undefined
external.
I found a patch on the internet , but was not able to get it to work
until today.
The enclosed procedure appears to resolve the Performer / Red hat
_ctype_b linker error.
Apparently _ctype_b is needed by the performer binary libraries ,
but is not longer included in glibc with Red Hat 9 .
_ctype_b has been replaced by _ctype_b_loc .
To compile the demos included with the down load version of Linux
3.02 gcc3 Perfomer make the following changes:
In the Performer/src directory modify the file pfmakedefs.gmk as
follows :
Near the bottom of the file add the line
-Wl,--wrap,__ctype_b\
immediately after each of the following lines :
DSOLINKS=
DDSOLINKS=
DBGLINKS=
OPTLINKS=
Save the file.
Next go to the project source files and add the following code to
the file containing the main() function
After the header files add :
#include <ctype.h>
__const unsigned short int ** __wrap___ctype_b(void)
{
return __ctype_b_loc() ;
}
This archive was generated by hypermail 2b29 : Wed Nov 05 2003 - 11:33:37 PST