Riccardo G Corsi
2018-08-13 15:38:56 UTC
Hello, compiling Qt-5.11.1 I've encoutered problems just at beginnning.
- I use a version of development LFS/BLFS (lfs is 20180303-systemd).
cd qtbase
+ /sources/qt-everywhere-src-5.11.1/qtbase/configure -top-level -prefix
/opt/qt5 -sysconfdir /etc/xdg -confirm-license -opensource -dbus-linked
-openssl-linked -system-harfbuzz -system-sqlite -icu -nomake examples
-no-rpath -skip qtwebengine
Creating qmake...
In file included from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:94:
/usr/include/linux/stat.h:56:8: error: redefinition of ‘struct
statx_timestamp’
struct statx_timestamp {
^~~~~~~~~~~~~~~
In file included from /usr/include/sys/stat.h:446,
from
/sources/qt-everywhere-src-5.11.1/qtbase/mkspecs/linux-g++/qplatformdefs.h:75,
from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
/usr/include/bits/statx.h:25:8: note: previous definition of ‘struct
statx_timestamp’
struct statx_timestamp
^~~~~~~~~~~~~~~
In file included from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:94:
/usr/include/linux/stat.h:99:8: error: redefinition of ‘struct statx’
struct statx {
^~~~~
In file included from /usr/include/sys/stat.h:446,
from
/sources/qt-everywhere-src-5.11.1/qtbase/mkspecs/linux-g++/qplatformdefs.h:75,
from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
/usr/include/bits/statx.h:36:8: note: previous definition of ‘struct statx’
struct statx
^~~~~
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:110:12:
error: ‘int renameat2(int, const char*, int, const char*, unsigned int)’
was declared ‘extern’ and later ‘static’ [-fpermissive]
static int renameat2(int oldfd, const char *oldpath, int newfd, const
char *newpath, unsigned flags)
^~~~~~~~~
In file included from /usr/include/c++/8.2.0/cstdio:42,
from /usr/include/c++/8.2.0/ext/string_conversions.h:43,
from /usr/include/c++/8.2.0/bits/basic_string.h:6391,
from /usr/include/c++/8.2.0/string:52,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/../../src/corelib/tools/qbytearray.h:52,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/qbytearray.h:1,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:49,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/qstring.h:1,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/../../src/corelib/io/qiodevice.h:50,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/qiodevice.h:1,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/../../src/corelib/io/qfiledevice.h:43,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/qfiledevice.h:1,
from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfile.h:44,
from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_p.h:54,
from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:43:
/usr/include/stdio.h:164:12: note: previous declaration of ‘int
renameat2(int, const char*, int, const char*, unsigned int)’
extern int renameat2 (int __oldfd, const char *__old, int __newfd,
^~~~~~~~~
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:115:12:
error: ‘int statx(int, const char*, int, unsigned int, statx*)’ was
declared ‘extern’ and later ‘static’ [-fpermissive]
static int statx(int dirfd, const char *pathname, int flag, unsigned
mask, struct statx *statxbuf)
^~~~~
In file included from /usr/include/sys/stat.h:446,
from
/sources/qt-everywhere-src-5.11.1/qtbase/mkspecs/linux-g++/qplatformdefs.h:75,
from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
/usr/include/bits/statx.h:87:5: note: previous declaration of ‘int
statx(int, const char*, int, unsigned int, statx*)’
int statx (int __dirfd, const char *__restrict __path, int __flags,
^~~~~
make: *** [Makefile:423: qfilesystemengine_unix.o] Error 1
make: *** Attesa per i processi non terminati....
Found domthiong in this discussion:
https://bugreports.qt.io/browse/QTBUG-69843
Someone has had similar problems.? Rebuild LFS?
Thanks.
Riccardo
- I use a version of development LFS/BLFS (lfs is 20180303-systemd).
cd qtbase
+ /sources/qt-everywhere-src-5.11.1/qtbase/configure -top-level -prefix
/opt/qt5 -sysconfdir /etc/xdg -confirm-license -opensource -dbus-linked
-openssl-linked -system-harfbuzz -system-sqlite -icu -nomake examples
-no-rpath -skip qtwebengine
Creating qmake...
In file included from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:94:
/usr/include/linux/stat.h:56:8: error: redefinition of ‘struct
statx_timestamp’
struct statx_timestamp {
^~~~~~~~~~~~~~~
In file included from /usr/include/sys/stat.h:446,
from
/sources/qt-everywhere-src-5.11.1/qtbase/mkspecs/linux-g++/qplatformdefs.h:75,
from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
/usr/include/bits/statx.h:25:8: note: previous definition of ‘struct
statx_timestamp’
struct statx_timestamp
^~~~~~~~~~~~~~~
In file included from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:94:
/usr/include/linux/stat.h:99:8: error: redefinition of ‘struct statx’
struct statx {
^~~~~
In file included from /usr/include/sys/stat.h:446,
from
/sources/qt-everywhere-src-5.11.1/qtbase/mkspecs/linux-g++/qplatformdefs.h:75,
from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
/usr/include/bits/statx.h:36:8: note: previous definition of ‘struct statx’
struct statx
^~~~~
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:110:12:
error: ‘int renameat2(int, const char*, int, const char*, unsigned int)’
was declared ‘extern’ and later ‘static’ [-fpermissive]
static int renameat2(int oldfd, const char *oldpath, int newfd, const
char *newpath, unsigned flags)
^~~~~~~~~
In file included from /usr/include/c++/8.2.0/cstdio:42,
from /usr/include/c++/8.2.0/ext/string_conversions.h:43,
from /usr/include/c++/8.2.0/bits/basic_string.h:6391,
from /usr/include/c++/8.2.0/string:52,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/../../src/corelib/tools/qbytearray.h:52,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/qbytearray.h:1,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/../../src/corelib/tools/qstring.h:49,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/qstring.h:1,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/../../src/corelib/io/qiodevice.h:50,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/qiodevice.h:1,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/../../src/corelib/io/qfiledevice.h:43,
from
/sources/qt-everywhere-src-5.11.1/qtbase/include/QtCore/qfiledevice.h:1,
from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfile.h:44,
from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_p.h:54,
from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:43:
/usr/include/stdio.h:164:12: note: previous declaration of ‘int
renameat2(int, const char*, int, const char*, unsigned int)’
extern int renameat2 (int __oldfd, const char *__old, int __newfd,
^~~~~~~~~
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:115:12:
error: ‘int statx(int, const char*, int, unsigned int, statx*)’ was
declared ‘extern’ and later ‘static’ [-fpermissive]
static int statx(int dirfd, const char *pathname, int flag, unsigned
mask, struct statx *statxbuf)
^~~~~
In file included from /usr/include/sys/stat.h:446,
from
/sources/qt-everywhere-src-5.11.1/qtbase/mkspecs/linux-g++/qplatformdefs.h:75,
from
/sources/qt-everywhere-src-5.11.1/qtbase/src/corelib/io/qfilesystemengine_unix.cpp:42:
/usr/include/bits/statx.h:87:5: note: previous declaration of ‘int
statx(int, const char*, int, unsigned int, statx*)’
int statx (int __dirfd, const char *__restrict __path, int __flags,
^~~~~
make: *** [Makefile:423: qfilesystemengine_unix.o] Error 1
make: *** Attesa per i processi non terminati....
Found domthiong in this discussion:
https://bugreports.qt.io/browse/QTBUG-69843
Someone has had similar problems.? Rebuild LFS?
Thanks.
Riccardo
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs