I was trying out the current pfmon on a HREL5 ia64 machine this evening and. I was getting errors that getline was not declared when compiling pfmon/smpl_mod/dear_hist_ia64.c. I found that the stdio.h needs _GNU_SOURCE defined. The attatched is a one line patch that allows pfmon to compile on RHEL5 ia64.

-Will
Index: pfmon/smpl_mod/Makefile
===================================================================
RCS file: /cvsroot/perfmon2/pfmon/pfmon/smpl_mod/Makefile,v
retrieving revision 1.9
diff -u -r1.9 Makefile
--- pfmon/smpl_mod/Makefile	21 Oct 2008 13:46:19 -0000	1.9
+++ pfmon/smpl_mod/Makefile	10 Nov 2008 23:59:10 -0000
@@ -23,7 +23,7 @@
 include $(TOPDIR)/config.mk
 include $(TOPDIR)/rules.mk
 
-CFLAGS += -I. -I..
+CFLAGS += -I. -I.. -D_GNU_SOURCE 
 
 #
 # modules supporting any PMU models
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
perfmon2-devel mailing list
perfmon2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/perfmon2-devel

Reply via email to