Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Another question about compiling mysql-workbench and gdal
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
k9dog
n00b
n00b


Joined: 22 Jun 2009
Posts: 22
Location: Denmark

PostPosted: Fri Sep 08, 2017 10:51 pm    Post subject: Another question about compiling mysql-workbench and gdal Reply with quote

So the mariadb (mysql) is installed, A password is assigned . I wanted to install mysql-workbench (I do think it should work even though it's mariadb that is running).My problem is that things stop compiling before this. I can't compile misc-sci/gdal. I tried both 2.0,2-r3 and 2.0-3. It seem to run into problems with some include file(s) missing. Originally I think it complained about my_config.h and php, but the latest seem to be missing a my_global.h. I'm not entirely sure how I get past the error.

Output of emerge -pqv '=sci-libs/gdal-2.0.2-r3::gentoo':
Code:
[ebuild  N    ] sci-libs/gdal-2.0.2-r3  USE="aux_xml curl gif java jpeg mysql pdf png postgres python sqlite -armadillo -debug -doc -fits -geos -gml -hdf5 -jpeg2k -mdb -netcdf -odbc -ogdi -opencl -perl -spatialite -threads -xls" PYTHON_TARGETS="python2_7 python3_4"

 * IMPORTANT: 20 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.


I'll include the other files if needed, but just including this for now together with compiler end of the build log:
Code:
make -C mysql
make[3]: Entering directory '/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr/ogrsf_frmts/mysql'
i686-pc-linux-gnu-g++ -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/port -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/gcore -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/alg -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr/ogrsf_frmts -march=prescott -O2 -pipe -U_FORTIFY_SOURCE -fPIC  -Wall  -I.. -I../..  -I/usr/include/mysql -I/usr/include/mysql/.. -DOGR_ENABLED -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/port -I/usr/ -I/usr//include  -DGDAL_COMPILATION -c -o ../o/ogrmysqldriver.o ogrmysqldriver.cpp
In file included from ogrmysqldriver.cpp:30:0:
ogr_mysql.h:35:23: fatal error: my_global.h: No such file or directory
compilation terminated.
make[3]: *** [../../../GDALmake.opt:580: ../o/ogrmysqldriver.o] Error 1
make[3]: Leaving directory '/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr/ogrsf_frmts/mysql'
make[2]: *** [../../GDALmake.opt:593: mysql-target] Error 2
make[2]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-g++ -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/port -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/gcore -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/alg -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr/ogrsf_frmts -march=prescott -O2 -pipe -U_FORTIFY_SOURCE -fPIC  -Wall  -I.. -I../..  -I/usr/include -DOGR_ENABLED -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/port -I/usr/ -I/usr//include  -DGDAL_COMPILATION -DHAVE_EXPAT -c -o ../o/ogrjmlwriterlayer.o ogrjmlwriterlayer.cpp
i686-pc-linux-gnu-g++ -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/port -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/gcore -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/alg -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr/ogrsf_frmts -DHAVE_MITAB -march=prescott -O2 -pipe -U_FORTIFY_SOURCE -fPIC  -Wall  -Iogrsf_frmts -Iogrsf_frmts/mem -I.    -DHAVE_EXPAT -I/usr/include -DOGR_ENABLED -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/port -I/usr/ -I/usr//include  -DGDAL_COMPILATION  -c -o ogrgeomediageometry.o ogrgeomediageometry.cpp
make[3]: Leaving directory '/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr/ogrsf_frmts/openfilegdb'
i686-pc-linux-gnu-g++ -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/port -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/gcore -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/alg -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr/ogrsf_frmts -DHAVE_MITAB -march=prescott -O2 -pipe -U_FORTIFY_SOURCE -fPIC  -Wall  -Iogrsf_frmts -Iogrsf_frmts/mem -I.    -DHAVE_EXPAT -I/usr/include -DOGR_ENABLED -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/port -I/usr/ -I/usr//include  -DGDAL_COMPILATION  -c -o ogr_geocoding.o ogr_geocoding.cpp
i686-pc-linux-gnu-gcc -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/port -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/gcore -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/alg -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr/ogrsf_frmts -march=prescott -O2 -pipe -fPIC  -Wall -Wdeclaration-after-statement  -Iogrsf_frmts -Iogrsf_frmts/mem -I.    -DHAVE_EXPAT -I/usr/include -DOGR_ENABLED -I/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/port -I/usr/ -I/usr//include  -DGDAL_COMPILATION  -c -o osr_cs_wkt.o osr_cs_wkt.c
make[3]: Leaving directory '/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr/ogrsf_frmts/jml'
make[2]: Leaving directory '/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr/ogrsf_frmts'
make[1]: *** [GNUmakefile:51: sublibs] Error 2
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/var/tmp/portage/sci-libs/gdal-2.0.2-r3/work/gdal-2.0.2/ogr'
make: *** [GNUmakefile:54: ogr-target] Error 2


Yes gcc 5.4?
Did my revdep-rebuild (with a .sh too after python version told me system was cosistant)

Normally using python 3,4, eselected 2.7 for this
Back to top
View user's profile Send private message
ct85711
Veteran
Veteran


Joined: 27 Sep 2005
Posts: 1330

PostPosted: Fri Sep 08, 2017 11:11 pm    Post subject: Reply with quote

Quote:

Yes gcc 5.4?
Did my revdep-rebuild (with a .sh too after python version told me system was cosistant)

First off; doing revdep-rebuild by it's self DOES NOT resolve the issue on switching to gcc-5; you need to this full line if you use revdep-rebuild
Code:
revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc

otherwise you can just do
Code:
emerge -e world
as either way you look at it, you need to recompile most of the system (the -e will also recompile the perl, python, and ruby packages; which I consider negligible, since they don't take too long to recompile).
Back to top
View user's profile Send private message
k9dog
n00b
n00b


Joined: 22 Jun 2009
Posts: 22
Location: Denmark

PostPosted: Mon Sep 11, 2017 2:11 pm    Post subject: Reply with quote

ct85711 wrote:
Quote:

Yes gcc 5.4?
Did my revdep-rebuild (with a .sh too after python version told me system was cosistant)

First off; doing revdep-rebuild by it's self DOES NOT resolve the issue on switching to gcc-5; you need to this full line if you use revdep-rebuild
Code:
revdep-rebuild --library 'libstdc++.so.6' -- --exclude gcc



Understood and pretty sure I did that, but as I just did it again just now and 190 emerge came up I can't say I proven myself right. I've pushed around in the system and it might have woken up some things, so I'll just let it complete and try again. Could just be a side-effect of haven run revdep-rebuild.sh (same options).

Quote:

otherwise you can just do
Code:
emerge -e world
as either way you look at it, you need to recompile most of the system (the -e will also recompile the perl, python, and ruby packages; which I consider negligible, since they don't take too long to recompile).


Usually run
Code:
emerge --ask --verbose-conflicts --tree --update --newuse --deep --with-bdeps=y @world

Which I do run after each sync (scripted) orchange to USE flags and while probably more than needed and probably reasons enough just to do a simpler version it usually doesn't fail me unless gcc or some more centralized part of the system recently changed.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum