Can't compile varnish-cache on SPARC
dridi at varni.sh
Thu Feb 18 17:39:34 CET 2016
On Thu, Feb 18, 2016 at 11:53 AM, <Werner.Graalmann at t-systems.com> wrote:
> we have to compile varnish-cache 3.0.7 on a Solaris SPARC system. Operating
> system is SunOS 11.1. Compiler we have to use is SolarisStudio 12.3.
Please note that Varnish 3 is no longer supported, consider upgrading
to 4.x instead.
> Configure runs into following error:
> checking for gcc... (cached) suncc -m64 -xc99=all
> checking whether we are using the GNU C compiler... (cached) no
> checking whether suncc -m64 -xc99=all accepts -g... (cached) yes
> checking for suncc -m64 -xc99=all option to accept ISO C89... (cached) none
> checking dependency style of suncc -m64 -xc99=all... (cached) none
> checking for suncc -m64 -xc99=all option to accept ISO C99... none needed
> checking for suncc -m64 -xc99=all option to accept ISO Standard C...
> (cached) none needed
> configure: error: Could not find a C99 compatible compiler
> We call:
> CC="suncc -m64 -xc99=all"
The value you assign to CXX looks odd. Are you copying CC to CXX?
I'd do CXX="$CC"
Regardless, there's no C++ code in Varnish, it's probably not necessary.
> CFLAGS='-m64 -fast -g -mt'
> CXXFLAGS='-g0 -m64'
> CPPFLAGS=" -I/usr/sfw/include"
> ./configure --prefix=/pkg/our_path
> I think, it should work with xc99=all as compiler option for using ISO C99,
> but “configure” always breaks with “Could not find a C99 compatible
> compiler”. On Oracles “SolarisStudio-Webpage” I can’t find any hints. Is it
> an issue with configure-Script from varnish?
If you think it's a false positive, you can always try to disable this
check and see how the compilation goes.
More information about the varnish-misc