ElNinijo wrote:2021/03/09 04:34:58
could you check on you own machine if you can proper build package wih mapserver
This is the error message I get when building mapserver 7.0.7 (your spec file unchanged)
Make Error at CMakeLists.txt:468 (MESSAGE):
ORACLE_HOME environment variable not set, needed for detection
-- Could NOT find ORACLE (missing: ORACLE_LIBRARY)
CMake Error at CMakeLists.txt:69 (message):
ORACLESPATIAL library/component/dependency could not be found.
HINTS:
- disable ORACLESPATIAL support by adding -DWITH_ORACLESPATIAL=0
- add the ORACLESPATIAL install directory to the CMAKE_PREFIX_PATH variable (-DCMAKE_PREFIX_PATH="/path/to/ORACLESPATIAL-install-dir;/path/to/other/dirs"
And the build instruction you linked to states
Requires EPEL Repository and Oracle InstantClient libraries
With ORACLESPATIAL disabled as hinted in the error message, it builds fine. Uploaded
here.
And this is the error message I get when building mapserver 7.6.2
CMake Error at CMakeLists.txt:1 (cmake_minimum_required):
CMake 3.0 or higher is required. You are running version 2.8.12.2
After changing cmake to cmake3 in the spec file, the error message I get is
-- Could NOT find ProtobufC (missing: PROTOBUFC_LIBRARY PROTOBUFC_COMPILER PROTOBUFC_INCLUDE_DIR)
CMake Error at CMakeLists.txt:91 (message):
PROTOBUFC library/component/dependency could not be found.
HINTS:
- disable PROTOBUFC support by adding -DWITH_PROTOBUFC=0
- add the PROTOBUFC install directory to the CMAKE_PREFIX_PATH variable (-DCMAKE_PREFIX_PATH="/path/to/PROTOBUFC-install-dir;/path/to/other/dirs"
With
protobuf-c-devel added to
BuildRequires, I get
/builddir/build/BUILD/mapserver-7.6.2/mapraster.c:650:36: error: 'GDAL_OF_RASTER' undeclared (first use in this function)
GDAL_OF_RASTER | GDAL_OF_SHARED,
^
/builddir/build/BUILD/mapserver-7.6.2/mapraster.c:650:36: note: each undeclared identifier is reported only once for each function it appears in
/builddir/build/BUILD/mapserver-7.6.2/mapraster.c:650:53: error: 'GDAL_OF_SHARED' undeclared (first use in this function)
GDAL_OF_RASTER | GDAL_OF_SHARED,
gdal-devel is listed in
BuildRequires, so I guess mapserver 7.6.2 requires a newer version of GDAL than what provided by EPEL 7.