problem compiling mysql2300 on mandriva 2007
Question
hello,
I've searched for an identical problem but aen't found what causes this
I'm running mandriva2007 and I think i got the necessara libraries but when I try to make here is what I get :
[root@nuxserver open2300.d]# make mysql2300
gcc -Wall -O3 -DVERSION=\"1.10\" -o mysql2300 mysql2300.c rw2300.c linux2300.c -lm -I/usr/include/mysql -L/usr/lib -lmysqlclient
mysql2300.c: In function ‘main’:
mysql2300.c:92: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
mysql2300.c:98: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
mysql2300.c:104: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
mysql2300.c:109: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
mysql2300.c:114: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
mysql2300.c:121: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
mysql2300.c:124: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
mysql2300.c:130: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
mysql2300.c:136: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
mysql2300.c:142: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
mysql2300.c:148: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
mysql2300.c:154: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
mysql2300.c:160: warning: pointer targets in passing argument 1 of ‘sprintf’ differ in signedness
[root@nuxserver open2300.d]# locate mysqlclient
/usr/lib/libmysqlclient.so.15.0.0
/usr/lib/libmysqlclient.so.15
/usr/lib/libmysqlclient_r.so.15.0.0
/usr/lib/libmysqlclient_r.so.15
/usr/lib/libmysqlclient.la
/usr/lib/libmysqlclient.so
/usr/lib/libmysqlclient_r.la
/usr/lib/libmysqlclient_r.so
[root@nuxserver open2300.d]#
if anybody has an idea where the problem is, thank you for the help.
JC
Environment
Open2300 version: |
1.10 |
Libraries: |
mysql, postgresql |
Server OS: |
mandriva 2007 |
--
JcJadin - 16 Feb 2007
Answer
Newer versions of gcc has better checks of types. What you see are warnings made by the compiler because some variables are declared signed vs unsigned. The logline was declared as unsigned char but the function returns char.
If you have access to SVN you should check out the 1.11 code which I still have not found time to fully finish.
Not because it is bad. It is much better than 1.10. But I have some patches I have received that are too buggy to integrate as they are and I have not had time to debug them.
See
SubversionOpen2300. If you can checkout from subversion (very easy if you have the program svn installed) then you get a version which is better and should not give all these warnings and more important fixes some nasty bugs.
--
KennethLavrsen - 16 Feb 2007