OS: Solaris 10/x86
Anope version: 1.7.21
GCC version: 3.4.3
Hi guys,
Its been a while since I compiled Anope on Solaris, last time it had some difficulties with grokking the data from mysql_config. However, when I tried it again with the current version (1.7.21) the script picks up the location of the libraries quite well, but then starts using a rather odd (to me at least) gcc language which makes the configure script ignore mysql support.
Here's what I'm talking about (from config.log after using the Config front-end script):
configure:3211: checking for mysql_config
configure:3229: found /usr/sfw/bin/mysql_config
configure:3242: result: /usr/sfw/bin/mysql_config
configure:3293: gcc -o conftest -pipe -g -O2 -I/usr/sfw/include/mysql -xstrconst -mt -R
/usr/sfw/lib -R/usr/sfw/lib/mysql -L/usr/sfw/lib -L/usr/sfw/lib/mysql -lmysqlclient -lz -
lposix4 -lcrypt -lgen -lsocket -lnsl -lm conftest.c >&5
gcc: language strconst not recognized
ld: fatal: file conftest.c: unknown file type
ld: fatal: File processing errors. No output written to conftest
collect2: ld returned 1 exit status
As you can see it finds the mysql_config program just fine, it also picks up the correct location of the libraries (/usr/sfw/lib/mysql) but fails when its trying to use -xstrconst. I looked this up in the manpage and indeed; -x is used to specify a language and strconst obviously isn't one.
Can anyone shed some light as to whats going on here?
With kind regards, Peter