Description:
Compile failed for mysql++ .. trivial complaint from gcc... complaint as follows:
/bin/sh ../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../sqlplusint -I/u/user/app/mysql//include/mysql -g -O2 -c connection.cc
rm -f .libs/connection.lo
c++ -DHAVE_CONFIG_H -I. -I. -I.. -I. -I../sqlplusint -I/u/user/app/mysql//include/mysql -g -O2 -Wp,-MD,.deps/connection.pp -c -fPIC -DPIC connection.cc -o .libs/connection.lo
connection.cc: In method `class string MysqlConnection::info()':
connection.cc:112: initialization to `char *' from `const char *' discards qualifiers
My system information is as follows:
$ uname -a
SunOS cpu08.student.cs 5.8 Generic_108528-23 sun4u sparc SUNW,UltraAX-i2
$ gcc --version
2.95.2
$ gmake --version
GNU Make version 3.79.1, by Richard Stallman and Roland McGrath.
How to repeat:
Run gmake with above compiler/system config
Suggested fix:
connection.cc:
112c112
< char *i = mysql_info(&mysql);
---
> const char *i = mysql_info(&mysql);