Amos Jeffries wrote:
Henrik Nordstrom wrote:
tor 2009-10-01 klockan 16:47 +0200 skrev Kinkie:
ld: fatal: symbol `void operator delete[](void*)' is multiply-defined:
(file store.o type=FUNC; file SquidNew.o type=FUNC);
ld: fatal: symbol `void*operator new[](unsigned)' is multiply-defined:
(file store.o type=FUNC; file SquidNew.o type=FUNC);
ld: fatal: symbol `void operator delete(void*)' is multiply-defined:
(file debug.o type=FUNC; file SquidNew.o type=FUNC);
ld: fatal: symbol `void*operator new(unsigned)' is multiply-defined:
(file debug.o type=FUNC; file SquidNew.o type=FUNC);
ld: fatal: file processing errors. No output written to ufsdump
I can't find WHERE those may be multiply-defined. Any ideas?
include/SquidNew.h
Regards
Henrik
Defined in Squid.New.h. With an explicit instantiation in SquidNew.o AND
everywhere else when inlined.
The util.h piece looks like it should be mostly in the compat library
compat/os/sgi.h with just a wrapped include left there if needed.
** SquidNew.cc needs some better wrapping tests to ensure the functions
don't get defined there there when inlined.
And <new> needs to be tested by configure and safety-wrapped as well.
Does the attached patch change anything?
PS. this is tracked bug http://bugs.squid-cache.org/show_bug.cgi?id=2736
Amos
--
Please be using
Current Stable Squid 2.7.STABLE7 or 3.0.STABLE19
Current Beta Squid 3.1.0.14