mercredi 2 juillet 2014

Using mysqlclient on sparc9


Vote count:

0




I want to use mysql c API on sparc so I downloaded and extracted mysqlconnector/c. MysqlConnector version is 6.0.2 because my system is sparc9. Compiling and linking are okay I think.. But the daemon is not running well. It makes core when daemon calls mysql_real_connect function.


Is there any version problem? Here are result of ldd and core message. Give me any hint pleaese.


ldd



libsocket.so.1 => /usr/lib/libsocket.so.1

libnsl.so.1 => /usr/lib/libnsl.so.1

libmysql.so.16 => /export/home/ACS/mysql/lib/libmysql.so.16

libthread.so.1 => /usr/lib/libthread.so.1

libm.so.1 => /usr/lib/libm.so.1

libc.so.1 => /usr/lib/libc.so.1

libdl.so.1 => /usr/lib/libdl.so.1

libmp.so.2 => /usr/lib/libmp.so.2

/usr/platform/SUNW,Sun-Fire-880/lib/libc_psr.so.1Blockquote



core



GNU gdb 6.6 (....) Core was generated by `MT'. Program terminated with signal 11, Segmentation fault. '#0 0xff072e68 in mysql_real_connect (mysql=0x0, host=0x835e0 "172.16.75.171", user=0x835f0 "acs",

passwd=0x835f8 "acs123", db=0x835f0 "acs", port=3306, unix_socket=0x1 ,

client_flag=1)

at /export/home2/tmp/cteam/bs/connector-c-32bit/src/mysql-connector-c-6.0.2/libmysql/client.c:1947

1947 /export/home2/tmp/cteam/bs/connector-c-32bit/src/mysql-connector-c-6.0.2/libmysql/client.c: No such file or directory.

in /export/home2/tmp/cteam/bs/connector-c-32bit/src/mysql-connector-c-6.0.2/libmysql/client.c




asked 15 secs ago






Aucun commentaire:

Enregistrer un commentaire