Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 243278 - gdal compilation fails with USE="mysql": "asm/atomic.h: No such file or directory"
Summary: gdal compilation fails with USE="mysql": "asm/atomic.h: No such file or direc...
Status: RESOLVED DUPLICATE of bug 163151
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-22 20:48 UTC by Epicanis
Modified: 2008-10-22 22:19 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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 ***