help-glpk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-glpk] Re: libglpk0: excessive install dependencies


From: Xypron
Subject: [Help-glpk] Re: libglpk0: excessive install dependencies
Date: Tue, 18 Mar 2008 16:02:46 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.8.1.12) Gecko/20080201 SeaMonkey/1.1.8

Hello Vijay,

thank You for testing.

In the distribution of MySQL 5.0 I installed on my computer the file name of libmysql.dll is not capitalized. But Windows isn't case sensitive.

I have updated my files to correct the errors:
ftp://glpk.dyndns.org/glpk/glpk-4.27-dl_r198.tar.gz

I have changed all Makefiles and batch files in w32 to compile with MySQL and ODBC support.
Further I  patched glpsql.c to allow compiling for MySQL with Cygwin.

Best regards

Xypron.


vijay patil wrote:
# 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:





reply via email to

[Prev in Thread] Current Thread [Next in Thread]