# GNU/Linux
-------------------------------------------
1. Configure script does not seems to check presence of header
"ltdl.h". I got error during make. After I installed ltdl related
header files, it works. It would be nice to detect this earlier i.e.
in configure script.
2. Function db_mysql_open (file: glpsql.c), there is potential bug.
Current Code with possible bug:
if(!mpl->iodbc) {
xprintf("MySQL library has not been loaded\n");
return NULL;
}
Correct Code:
if(!mpl->mysql) {
xprintf("MySQL library has not been loaded\n");
return NULL;
}
I found because I got runtime error while using MySQL example
transp_mysql.mod and mysql related shared library is loaded correctly
(do not have odbc). Example is working fine with corrected code.
# MS Windows XP
-------------------------------------------
1. In Function mpl_initialize (File: glpmpl04.c )
Mysql shared file name used is libmysqlclient, which is not correct
for Windows dll. On windows the dll name is libmySQL.dll. Corrected
code :
#ifdef WIN32
mpl->iodbc = load_library("odbc32");
mpl->mysql = load_library("libmySQL");
#else
xassert(0 == lt_dlinit());
mpl->iodbc = load_library("libiodbc");
mpl->mysql = load_library("libmysqlclient");
#endif /* WIN32 */
2. I get fatal error when one of the functions dl_mysql_error and
dl_mysql_use_result is called. The error message says that there are
problems with function signature and function pointers. The errors
dis-appear if I add STDCALL to function signatures in functions
dl_mysql_error and dl_mysql_use_result. STDCALL seems to be used in
other places, so error most likely because it is not used in above
mentioned functions.
After fixing above problems I tried example transp_mysql.mod and it is
working correctly.
Thanks
On Mon, Mar 17, 2008 at 10:26 AM, Xypron <address@hidden> wrote: