Hello

I compiled up a 2.6.29-rc6 kernel for our niagara machine to test out 
perfmon2.  There's a few problems with building pfmon-3.8 that seem to 
still exist with the CVS version.

The first is this one:

cc  -g -ggdb -Wall -Werror -D_REENTRANT -I/usr/local/include 
-DCONFIG_PFMON_SPARC -DPFMON_DEBUG -DDATADIR=\"/usr/local/share/pfmon\" -I. 
-I/usr/include/libelf -D_GNU_SOURCE -DPFMON_DEBUG -g -c pfmon_util_sparc.c
cc1: warnings being treated as errors
pfmon_util_sparc.c:263: error: "struct r_debug" declared inside parameter list
pfmon_util_sparc.c:263: error: its scope is only this definition or 
declaration, which is probably not what you want
pfmon_util_sparc.c: In function "pfmon_get_r_brk":
pfmon_util_sparc.c:265: error: dereferencing pointer to incomplete type
pfmon_util_sparc.c:266: error: control reaches end of non-void function
make: *** [pfmon_util_sparc.o] Error 1

If I comment out that function, the build continues but then has the 
following error:


cc -o pfmon pfmon.o pfmon_smpl.o pfmon_util.o pfmon_system.o pfmon_task.o 
pfmon_symbols.o pfmon_results.o pfmon_hash.o pfmon_smpl_dfl.o pfmon_os.o 
pfmon_os_v2x.o pfmon_sparc.o pfmon_util_sparc.o  -g -ggdb -Wall -Werror 
-D_REENTRANT -I/usr/local/include -DCONFIG_PFMON_SPARC -DPFMON_DEBUG 
-DDATADIR=\"/usr/local/share/pfmon\" -I. -I/usr/include/libelf -D_GNU_SOURCE 
-DPFMON_DEBUG -g  smpl_mod/libsmplfmt.a  -lpthread -lm -lrt -Wl,-Bstatic -lelf 
-Wl,-Bdynamic -L/usr/local/lib -lpfm
pfmon_task.o: In function pfmon_setup_dlopen_brkpt':
/opt/perfmon/pfmon-3.8/pfmon/pfmon_task.c:1521: undefined reference to 
pfmon_get_dlopen_hook'


Vince

------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to