[GRASS-dev] [GRASS GIS] #3047: MySQL driver failed to install

GRASS GIS trac at osgeo.org
Sun Sep 11 11:30:52 PDT 2016


#3047: MySQL driver failed to install
--------------------------+------------------------------------
  Reporter:  fpouw        |      Owner:  grass-dev@…
      Type:  defect       |     Status:  new
  Priority:  normal       |  Milestone:  7.0.5
 Component:  Database     |    Version:  7.0.4
Resolution:               |   Keywords:  mysql driver, wingrass
       CPU:  Unspecified  |   Platform:  MSWindows 7
--------------------------+------------------------------------

Comment (by neteler):

 Replying to [comment:8 neteler]:
 > Replying to [comment:7 martinl]:
 > > The MYSQL support has been disabled due to compilation errors
 > >
 > > {{{
 > > C:/OSGeo4W64/include/mysql.h:64:19: error: unknown type name 'SOCKET'
 > >  #define my_socket SOCKET
 > >                    ^
 > > }}}
 >
 > For a potential solution, see
 >
 > http://www.technowise.in/2009/08/fixing-socket-does-not-name-type-
 error.html
 >

 Did anyone try the solution? Citation:


 {{{
 To fix this error, just include winsock.h before including mysql.h header
 as shown below:

 #include <winsock.h>
 #include <mysql.h>
 }}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3047#comment:9>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list