Francesco Chemolli wrote:
> ------------------------------------------------------------
> revno: 10096
> committer: Francesco Chemolli <kinkie_at_squid-cache.org>
> branch nick: trunk
> timestamp: Fri 2009-11-06 17:22:16 +0100
> message:
> Bug 2778: fix linking issues using SunCC
>
> SunCC doesn't handle inline extern functions, and misses some duplicate
> code detection features gcc has; as a result squid-specific operator new and
> operator delete get defined multiple times and fail linking.
> Implemented a compiler-specific workaround by de-inlining the code.
> Improved Solaris OS detection logic (and dropped _SQUID_SUNOS_ which was not
> used anyways)
> modified:
> compat/compat.h
> compat/os/solaris.h
> compat/osdetect.h
> include/SquidNew.h
> src/SquidNew.cc
>
Oops. _SQUID_SUNOS_ is used. _SQUID_SUN_ was the unused one.
Please also revert the bit changing compat/compat.h. It's not relevant.
Also, were the added 1's in osdetect.h actually required? There may be
many other places in the code hitting the same problem if so.
(I'm now converting my old pre-compiler test app into unit-tests so we
can easily identify this)
Amos
-- Please be using Current Stable Squid 2.7.STABLE7 or 3.0.STABLE20 Current Beta Squid 3.1.0.14Received on Sat Nov 07 2009 - 01:27:41 MST
This archive was generated by hypermail 2.2.0 : Tue Nov 10 2009 - 12:00:04 MST