Re: about cf.data.pre and squid compiling

From: Arthur Tumanyan <arthurtumanyan@dont-contact.us>
Date: Wed, 18 Jul 2007 04:57:32 -0700 (PDT)

Henrik Nordstrom-5 wrote:
>
> tis 2007-07-17 klockan 00:54 -0700 skrev Arthur Tumanyan:
>
>> I add this lines into configure.in :
>>
>> AM_CONDITIONAL(ENABLE_SHAGA, false)
>> AC_ARG_ENABLE(shaga,
>> [ --enable-shaga Enable ShagaEngine support],
>> [ if test "$enableval" != "no"; then
>> echo "ShagaEngine support enabled"
>> AC_DEFINE(USE_SHAGA, 1, [Define this to include code for
>> ShagaEngine.])
>> AM_CONDITIONAL(ENABLE_SHAGA, true)
>> ])
>
> Missing a fi in the above to end the if; then block..
>
> Regards
> Henrik
>
Thanks!I did it.Now the configuration process is going normally,as I want.I
changed some files
also(src/Makefile.in,src/Makefile.am,Makefile.in,configure.in,src/main.c,squid.h)
for testing purposes.During compilation I get this messages:
debug.o(.rodata+0x0): In function `debug_log_flush':
/usr/home/seagull/workspace/squid/src/debug.c:139: multiple definition of
`shaga_logfile'
cf_gen.o(.rodata+0x0):/usr/home/seagull/workspace/squid/src/cf_gen.c:102:
first defined here
debug.o(.rodata+0x13): In function `debug_log_flush':
/usr/home/seagull/workspace/squid/src/debug.c:143: multiple definition of
`SHAGA_IDENT'
cf_gen.o(.rodata+0x13):/usr/home/seagull/workspace/squid/src/cf_gen.c:104:
first defined here
globals.o(.rodata+0x40): multiple definition of `shaga_logfile'
cf_gen.o(.rodata+0x0):/usr/home/seagull/workspace/squid/src/cf_gen.c:102:
first defined here
globals.o(.rodata+0x53): multiple definition of `SHAGA_IDENT'
cf_gen.o(.rodata+0x13):/usr/home/seagull/workspace/squid/src/cf_gen.c:104:
first defined here
*** Error code 1

Stop in /usr/home/seagull/workspace/squid/src.
*** Error code 1

Stop in /usr/home/seagull/workspace/squid.
I know what does this mean,but don't know how to avoid this?I checked
debug.c and cf_gen.c! Nothing was found.At the first time when I get this
error,I change 'MY_IDENT' into 'SHAGA_IDENT' and 'logfile' into
'shaga_logfile' in my source files and try again. I thought it will help:-)
Nothing was changed!Can anyone explain what's wrong?
Thanks in advance!

-- 
View this message in context: http://www.nabble.com/about-cf.data.pre-and-squid-compiling-tf4044722.html#a11667292
Sent from the Squid - Development mailing list archive at Nabble.com.
Received on Wed Jul 18 2007 - 05:57:39 MDT

This archive was generated by hypermail pre-2.1.9 : Wed Aug 01 2007 - 12:00:06 MDT