Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#5284 closed defect (fixed)

load_defaults and free_defaults are gone in mysql 5.6

Reported by: arekm Owned by: warmerdam
Priority: normal Milestone: 1.11.0
Component: OGR_SF Version: 1.10.1
Severity: normal Keywords: mysql
Cc:

Description

load_defaults and free_defaults are gone in mysql 5.6 which causes problem like:

libtool: compile:  x86_64-pld-linux-g++ -O2 -fwrapv -pipe -Wformat -Werror=format-security -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC -march=x86-64 -gdwarf-4 -fno-debug-types-section -fvar-tracking-assignments -g2 -DHAVE_SSE_AT_COMPILE_TIME -fvisibility=hidden -Wall -I.. -I../.. -I/home/users/arekm/rpm/BUILD/gdal-1.10.1/port -I/home/users/arekm/rpm/BUILD/gdal-1.10.1/gcore -I/home/users/arekm/rpm/BUILD/gdal-1.10.1/alg -I/home/users/arekm/rpm/BUILD/gdal-1.10.1/ogr -I/home/users/arekm/rpm/BUILD/gdal-1.10.1/ogr/ogrsf_frmts -I/usr/include/mysql -DOGR_ENABLED -I/home/users/arekm/rpm/BUILD/gdal-1.10.1/port -I/usr/include -c ogrmysqldatasource.cpp  -fPIC -DPIC -o ../o/.libs/ogrmysqldatasource.o
ogrmysqldatasource.cpp: In member function 'int OGRMySQLDataSource::Open(const char*, int, int)':
ogrmysqldatasource.cpp:142:60: error: 'load_defaults' was not declared in this scope
     load_defaults( "my", client_groups, &nArgc, &papszArgv );
                                                            ^
ogrmysqldatasource.cpp:157:30: error: 'free_defaults' was not declared in this scope
     free_defaults( papszArgv );
                              ^
make[3]: *** [../o/ogrmysqldatasource.lo] Error 1
make[3]: Leaving directory `/home/users/arekm/rpm/BUILD/gdal-1.10.1/ogr/ogrsf_frmts/mysql'

Change History (4)

comment:1 Changed 4 years ago by Even Rouault

Component: defaultOGR_SF
Keywords: mysql added

trunk r26582 "Unix configure: fix compilation with recent MySQL versions (5.6 for example), related to a symbol no longer declared in my_sys.h (#5284)"

I've just tested that compilation and linking works, but not the runtime.

comment:2 Changed 4 years ago by Even Rouault

trunk r26583 "Fix previous commit that broke configure with MySQL on Ubuntu 12.04"

comment:3 Changed 4 years ago by Even Rouault

Milestone: 2.0
Resolution: fixed
Status: newclosed

comment:4 Changed 4 years ago by Even Rouault

Milestone: 2.01.11.0
Note: See TracTickets for help on using tickets.