[Osi-tickets] [COIN-OR Open Solver Interface] #72: OsiSymSolverInterface::readGMPL does not support SQL

COIN-OR Open Solver Interface coin-trac at coin-or.org
Mon Dec 22 13:25:52 EST 2008


#72: OsiSymSolverInterface::readGMPL does not support SQL
---------------------+------------------------------------------------------
 Reporter:  xypron   |       Owner:  mjs   
     Type:  defect   |      Status:  new   
 Priority:  major    |   Milestone:        
Component:  OsiGlpk  |     Version:  0.96.1
 Keywords:           |  
---------------------+------------------------------------------------------
 GLPK includes support to access SQL tables via the table statement.

 Unfortunately the configure.ac supplied in Thirdparty/GLPK does not allow
 to enable ODBC.

 Please add the lines below to Thirdparty/GLPK/configure.ac and copy
 Thirdparty/GLPK/glpk/config.h.in to Thirdparty/GLPK.

 This will add optional configure parameters:
 --configure-ODBC=yes|unix
 --configure-dl=yes
 which will allow to use ODBC with package iODBC or unixODBC.

 Best regards

 Xypron


 ###########################################################################
 #                            SQL
 #
 ###########################################################################

 AC_CONFIG_HEADERS([config.h])

 AC_ARG_ENABLE(dl,
 AC_HELP_STRING([--enable-dl],
    [enable shared library support [[default=no]]]),
    [case $enableval in
       yes | ltdl | dlfcn | no) ;;
       *) AC_MSG_ERROR([invalid value `$enableval' for --enable-dl]);;
       esac],
    [enable_dl=no])

 AC_ARG_ENABLE(odbc,
 AC_HELP_STRING([--enable-odbc],
    [enable MathProg ODBC support [[default=no]]]),
    [case $enableval in
       yes | unix | no) ;;
       *) AC_MSG_ERROR([invalid value `$enableval' for --enable-odbc]);;
       esac],
    [enable_odbc=no])

 AC_MSG_CHECKING([whether to enable shared library support])
 if test "$enable_dl" = "yes"; then
    AC_MSG_RESULT([ltdl])
    AC_DEFINE([HAVE_LTDL], [1])
    LIBS="-lltdl $LIBS"
 elif test "$enable_dl" = "ltdl"; then
    AC_MSG_RESULT([ltdl])
    AC_DEFINE([HAVE_LTDL], [1])
    LIBS="-lltdl $LIBS"
 elif test "$enable_dl" = "dlfcn"; then
    AC_MSG_RESULT([dlfcn])
    AC_DEFINE([HAVE_DLFCN], [1])
 else
    AC_MSG_RESULT([no])
 fi

 AC_MSG_CHECKING([whether to enable MathProg ODBC support])
 if test "$enable_odbc" = "yes"; then
    if test "$enable_dl" = "no"; then
       AC_MSG_ERROR([--enable-odbc requires --enable-dl])
    fi
    AC_MSG_RESULT([yes])
    AC_DEFINE([ODBC_DLNAME], ["libiodbc.so"])
 elif test "$enable_odbc" = "unix"; then
    if test "$enable_dl" = "no"; then
       AC_MSG_ERROR([--enable-odbc requires --enable-dl])
    fi
    AC_MSG_RESULT([unix])
    AC_DEFINE([ODBC_DLNAME], ["libodbc.so"])
 else
    AC_MSG_RESULT([no])
 fi

-- 
Ticket URL: <https://projects.coin-or.org/Osi/ticket/72>
COIN-OR Open Solver Interface <http://projects.coin-or.org/Osi>
An API for a variety of LP and MIP solvers (and more).



More information about the Osi-tickets mailing list