You should specify the -pg argument to CFLAGS when running configure, alternatively edit all makefiles to add it to CFLAGS.
You can also specify custom CFLAGS settings by specifying the AM_CFLAGS variable when running make. Note: Unfortunately gprof does not have enough resolution to correctly profile Squid in a reliable manner. The results will not give very accurate information. gprof works well for traditional structured programs with a straight call graph, but not at all well for event driven programs like Squid. The errors when you sum very many small values with low resolution (== large rounding errors) adds up to very large errors in the calculation. I would recommended to try to use the native profiling timers built in to Squid-3. These provide very accurate timings (Intel CPU with profiling timers required). Regards Henrik fre 2003-06-06 klockan 10.53 skrev Jack: > Hello All, > > I tried to compile the squid wirh grof. So i added the "-pg" cflag in the > src/Makefile. > > CFLAGS = -g -pg -O2 -Wall -D_REENTRANT > > When i make the source i am getting the following error > > gcc -DHAVE_CONFIG_H -DDEFAULT_CONFIG_FILE=\"/usr/local/squid25S3_1/etc/squid > .conf\" -I. -I. -I../include -I. -I. -I../include -I../include -g -pg -O2 > -Wall -D_REENTRANT -c `test -f cf_gen.c || echo './'`cf_gen.c > gcc -g -pg -O2 -Wall -D_REENTRANT -g -o cf_gen > cf_gen.o -L../lib -lmiscutil -lpthread -lm -lresolv -lbsd -lnsl > ./cf_gen cf.data > make[1]: *** [cf_parser.h] Segmentation fault > make[1]: Leaving directory `/usr/local/src/squid-2.5.STABLE3/src' > make: *** [all-recursive] Error 1 > > Can anyone guide me where to pass this "-pg" compiler argument correctly. > > Regards, > Jack -- Donations welcome if you consider my Free Squid support helpful. https://www.paypal.com/xclick/business=hno%40squid-cache.org Please consult the Squid FAQ and other available documentation before asking Squid questions, and use the squid-users mailing-list when no answer can be found. Private support questions is only answered for a fee or as part of a commercial Squid support contract. If you need commercial Squid support or cost effective Squid and firewall appliances please refer to MARA Systems AB, Sweden http://www.marasystems.com/, [EMAIL PROTECTED]
