[QGIS-Developer] Compile fails on RHEL7

Henrik K hege at hege.li
Fri Aug 13 00:43:02 PDT 2021


On Fri, Aug 13, 2021 at 09:55:37AM +0300, Henrik K wrote:
> 
> Building on RHEL7 with GCC 10.2.1 fails here, any hints?
> 
> [ 41%] Linking CXX shared module ../../../../output/lib/qgis/server/liblandingpage.so
> /opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld: CMakeFiles/landingpage.dir/qgslandingpage.cpp.o: in function `QgsProjectLoaderFilter::QgsProjectLoaderFilter(QgsServerInterface*)':
> /home/wms/src/qgis-3.16.9-210812/src/server/services/landingpage/qgslandingpage.cpp:71: undefined reference to `QgsServerFilter::QgsServerFilter(QgsServerInterface*)'
> /opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld: CMakeFiles/landingpage.dir/qgslandingpage.cpp.o:(.data.rel.ro._ZTI22QgsProjectLoaderFilter[_ZTI22QgsProjectLoaderFilter]+0x10): undefined reference to `typeinfo for QgsServerFilter'
> /opt/rh/devtoolset-10/root/usr/libexec/gcc/x86_64-redhat-linux/10/ld: CMakeFiles/landingpage.dir/qgslandingpage.cpp.o:(.data.rel.ro._ZTV22QgsProjectLoaderFilter[_ZTV22QgsProjectLoaderFilter]+0x30): undefined reference to `QgsServerFilter::sendResponse()'
> collect2: error: ld returned 1 exit status
> 
> (https://github.com/qgis/QGIS/issues/44668)

I've tried devtoolset-8 and 9 too, no difference.

Also another problem trying to build 3.20

[  0%] Building CXX object src/core/CMakeFiles/qgis_core.dir/qgis_core_autogen/mocs_compilation.cpp.o
In file included from /home/wms/src/qgis-3.20.1-210812/build/src/core/qgis_core_autogen/mocs_compilation.cpp:171:
/home/wms/src/qgis-3.20.1-210812/build/src/core/qgis_core_autogen/EWIEGA46WW/moc_qgsfield.cpp:105:46: error: 'None' is not a member of 'QgsField::ConfigurationFlags' {aka 'QFlags<QgsField::ConfigurationFlag>'}
  105 |       18, uint(QgsField::ConfigurationFlags::None),
      |                                              ^~~~
/home/wms/src/qgis-3.20.1-210812/build/src/core/qgis_core_autogen/EWIEGA46WW/moc_qgsfield.cpp:106:46: error: 'NotSearchable' is not a member of 'QgsField::ConfigurationFlags' {aka 'QFlags<QgsField::ConfigurationFlag>'}
  106 |       19, uint(QgsField::ConfigurationFlags::NotSearchable),
      |                                              ^~~~~~~~~~~~~
/home/wms/src/qgis-3.20.1-210812/build/src/core/qgis_core_autogen/EWIEGA46WW/moc_qgsfield.cpp:107:46: error: 'HideFromWms' is not a member of 'QgsField::ConfigurationFlags' {aka 'QFlags<QgsField::ConfigurationFlag>'}
  107 |       20, uint(QgsField::ConfigurationFlags::HideFromWms),
      |                                              ^~~~~~~~~~~
/home/wms/src/qgis-3.20.1-210812/build/src/core/qgis_core_autogen/EWIEGA46WW/moc_qgsfield.cpp:108:46: error: 'HideFromWfs' is not a member of 'QgsField::ConfigurationFlags' {aka 'QFlags<QgsField::ConfigurationFlag>'}
  108 |       21, uint(QgsField::ConfigurationFlags::HideFromWfs),
      |                                              ^~~~~~~~~~~
make[2]: *** [src/core/CMakeFiles/qgis_core.dir/qgis_core_autogen/mocs_compilation.cpp.o] Error 1

(https://github.com/qgis/QGIS/issues/44681)



More information about the QGIS-Developer mailing list