I get this when compiling qt-5.8.0
In file included from /usr/include/c++/6.3.0/bits/stl_algo.h:59:0,
from /usr/include/c++/6.3.0/algorithm:62,
from
../../../../include/QtCore/../../src/corelib/global/qglobal.h:108,
from ../../../../include/QtCore/qglobal.h:1,
from
../../../../include/QtSql/../../src/sql/kernel/qtsqlglobal.h:43,
from ../../../../include/QtSql/qtsqlglobal.h:1,
from
../../../../include/QtSql/../../src/sql/kernel/qsqldriver.h:43,
from ../../../../include/QtSql/qsqldriver.h:1,
from qsql_mysql_p.h:54,
from qsql_mysql.cpp:40:
/usr/include/c++/6.3.0/cstdlib:75:25: fatal error: stdlib.h: No such file or
directory
#include_next <stdlib.h>
^
compilation terminated.
make[5]: *** [Makefile:932: .obj/qsql_mysql.o] Error 1
make[5]: Leaving directory
'/usr/src/xlibs/qt5/qt-everywhere-opensource-src-5.8.0/qtbase/src/plugins
/sqldrivers/mysql'
According to this page:
https://github.com/voidlinux/void-packages/issues/5254
one workaround is
sed -i 's/isystem/I/' qtbase/mkspecs/common/gcc-base.conf
which works for me, but I've no idea why it can't find /usr/include/stdlib.h
(from glibc).
Anyone else having this problem?
jb.
--
http://lists.linuxfromscratch.org/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page