Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 243278

Summary: gdal compilation fails with USE="mysql": "asm/atomic.h: No such file or directory"
Product: Gentoo Linux Reporter: Epicanis <smc+gbugs>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Epicanis 2008-10-22 20:48:01 UTC
If the Mysql use flag is active, gdal refuses to compile:

x86_64-pc-linux-gnu-g++ -march=athlon64 -O2 -mmmx -m3dnow -msse -msse2 -mfpmath=sse -fomit-frame-pointer -pipe -fPIC  -Wall  -I.. -I../.. -I/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/port -I/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/gcore -I/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/alg -I/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/ogr -I/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/ogr/ogrsf_frmts -I/usr/include/mysql -DOGR_ENABLED -I/var/tmp/portage/sci-libs/gdal-1.5.3/work/gdal-1.5.3/port  -c -o ../o/ogrmysqldriver.o ogrmysqldriver.cpp
In file included from ogr_mysql.h:34,
                 from ogrmysqldriver.cpp:30:
/usr/include/mysql/my_global.h:361:24: error: asm/atomic.h: No such file or directory

--------------
Is this really a bug in gentoo-sources instead?  atomic.h is from the kernel includes, isn't it?  However, building gdal with USE="-mysql" compiles fine.  (mysql itself compiles fine, too...)

Reproducible: Always
Comment 1 Wormo (RETIRED) gentoo-dev 2008-10-22 22:19:48 UTC
Try unmerging mysql and emerging it again (NOTE: don't skip the unmerge part and try to install on top of the old mysql). It should fix this problem, which
seems to stem from using a mysql that was built against old kernel headers that
have since been upgraded (see bug 163151)

*** This bug has been marked as a duplicate of bug 163151 ***