The compilation of tracer fails with the following error message:
/usr/include/gcc/darwin/4.0/c++/bits/stl_tree.h:367: error: no
matching function for call to
'__gnu_cxx::malloc_allocator<std::pair<_jmethodID*, std::string>
>::construct(std::pair<_jmethodID* const, std::string>*, const
std::pair<_jmethodID* const, std::string>&)'
/usr/include/gcc/darwin/4.0/c++/ext/malloc_allocator.h:107: note:
candidates are: void
__gnu_cxx::malloc_allocator<_Tp>::construct(_Tp*, const _Tp&)
[with _Tp = std::pair<_jmethodID*, std::string>]
make: *** [../lib/libtracer.jnilib] Error 1
Mac OS X: 10.4.2
Setting the includes path below to the Java 5 or Java 1.4.2
directory does not make any difference. The command I type in
the prompt (as suggested by BUILDING.txt):
The gcc version on my system is:
powerpc-apple-darwin8-gcc-4.0.0 (GCC) 4.0.0 (Apple Computer,
Inc. build 5026)
$ make -f ppc-darwin.mk
This is the ppc-darwin.mk file:
# $Id: ppc-darwin.mk,v 1.2 2005/03/20 13:53:23 vauclair Exp $
# The following optional macros can also be defined:
# - MODULE_EXT
# - ADDITIONAL_CC_OPTIONS
# - ADDITIONAL_INCLUDES
# - ADDITIONAL_LIBRARIES
LIB_NAME_PREFIX=lib
LIB_NAME_SUFFIX=.jnilib
CC_SHARED_LIB_OPTIONS=-dynamic -dynamiclib
# update this to the directory containing jvmpi.h
INCLUDES=-I/System/Library/Frameworks/JavaVM.framework/
Versions/1.4.2/Headers/
LIBRARIES=
include core.mk
Logged In: YES
user_id=1331536
I have this problem too.
Logged In: YES
user_id=333620
Solved by using gcc-3.3 for compilation, but I get an error at the execution :
ejp> [V] (0) EJP Tracer [r2_2b1] (Tracer.cpp $Revision: 1.32 $)
ejp> [V] (0) Initialization OK
ejp> [V] (0) Tracing enabled
Trace/BPT trap