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
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 ***