[Nagiosplug-help] Error Compiling Plugins Solaris 10

Holger Weiss holger at CIS.FU-Berlin.DE
Mon Jan 29 16:25:25 CET 2007


* Paul Hunter <diggerthelab at gmail.com> [2007-01-28 17:38]:
> Getting the following error while compiling the plugins on Solaris 10
> 
> .Tpo"; exit 1; fi
> gcc: language strconst not recognized
> gcc: check_mysql.c: linker input file unused because linking not done
> mv: cannot access .deps/check_mysql-check_mysql.Tpo
> make[2]: *** [check_mysql-check_mysql.o] Error 2
> make[2]: Leaving directory `/moo/nagios-plugins-1.4.5/plugins'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/moo/nagios-plugins-1.4.5'
> *** Error code 2
> make: Fatal error: Command failed for target `all'

Obviously, the GCC command line includes "-xstrconst", which is a Sun
cc(1) option.  I guess this happens because your MySQL package was built
using Sun's compiler, so that the output "mysql_config --cflags", which
is added to the compiler flags for check_mysql, includes this flag.  The
quick`n'dirty solution would be to remove all occurences of "-xstrconst"
from the Makefile(s) and re-run make.  Or, use Sun's compiler (it's
free), which I'd prefer over GCC anyway :-)

Holger

-- 
PGP fingerprint:  F1F0 9071 8084 A426 DD59  9839 59D3 F3A1 B8B5 D3DE




More information about the Help mailing list