Skip to content

Compilation issue with hexer-1.4.0 on Fedora #24

Description

@neteler

I have tried to update the Fedora RPM from 1.3.0 to 1.4.0 but ran into the following issue:

cd /builddir/build/BUILD/hexer-1.4.0/apps && /usr/bin/c++   -I/builddir/build/BUILD/hexer-1.4.0/include -I/builddir/build/BUILD/hexer-1.4.0/apps/. -I/builddir/build/BUILD/hexer-1.4.0/apps/../include -I/builddir/build/BUILD/hexer-1.4.0/apps/../include/hexer -I/usr/include/gdal  -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -std=c++11 -DNDEBUG   -o CMakeFiles/curse.dir/las.cpp.o -c /builddir/build/BUILD/hexer-1.4.0/apps/las.cpp
BUILDSTDERR: In file included from /builddir/build/BUILD/hexer-1.4.0/apps/curse.cpp:25:0:
BUILDSTDERR: In file included from /builddir/build/BUILD/hexer-1.4.0/apps/curse.cpp:25:0:
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/include/hexer/Utils.hpp: In function 'bool hexer::compare_distance(const T&, const T&)':
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/include/hexer/Utils.hpp: In function 'bool hexer::compare_distance(const T&, const T&)':
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/include/hexer/Utils.hpp:40:28: error: 'numeric_limits' is not a member of 'std'
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/include/hexer/Utils.hpp:40:28: error: 'numeric_limits' is not a member of 'std'
BUILDSTDERR:      const T epsilon = std::numeric_limits<T>::epsilon();
BUILDSTDERR:      const T epsilon = std::numeric_limits<T>::epsilon();
BUILDSTDERR:                             ^~~~~~~~~~~~~~
BUILDSTDERR:                             ^~~~~~~~~~~~~~
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/include/hexer/Utils.hpp:40:44: error: expected primary-expression before '>' token
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/include/hexer/Utils.hpp:40:44: error: expected primary-expression before '>' token
BUILDSTDERR:      const T epsilon = std::numeric_limits<T>::epsilon();
BUILDSTDERR:      const T epsilon = std::numeric_limits<T>::epsilon();
BUILDSTDERR:                                             ^
BUILDSTDERR:                                             ^
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/include/hexer/Utils.hpp:40:47: error: '::epsilon' has not been declared
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/include/hexer/Utils.hpp:40:47: error: '::epsilon' has not been declared
BUILDSTDERR:      const T epsilon = std::numeric_limits<T>::epsilon();
BUILDSTDERR:      const T epsilon = std::numeric_limits<T>::epsilon();
BUILDSTDERR:                                                ^~~~~~~
BUILDSTDERR:                                                ^~~~~~~
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/apps/curse.cpp: In function 'void dumpPath(hexer::Path*)':
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/apps/curse.cpp: In function 'void dumpPath(hexer::Path*)':
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/apps/curse.cpp:97:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/apps/curse.cpp:97:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
BUILDSTDERR:      for (int pi = 0; pi != paths.size(); ++pi)
BUILDSTDERR:      for (int pi = 0; pi != paths.size(); ++pi)
BUILDSTDERR:                       ~~~^~~~~~~~~~~~~~~
BUILDSTDERR:                       ~~~^~~~~~~~~~~~~~~
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/apps/curse.cpp: In function 'int main(int, char**)':
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/apps/curse.cpp: In function 'int main(int, char**)':
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/apps/curse.cpp:270:10: warning: unused variable 'bVerbose' [-Wunused-variable]
BUILDSTDERR: /builddir/build/BUILD/hexer-1.4.0/apps/curse.cpp:270:10: warning: unused variable 'bVerbose' [-Wunused-variable]
BUILDSTDERR:      bool bVerbose(false);
BUILDSTDERR:      bool bVerbose(false);
BUILDSTDERR:           ^~~~~~~~
BUILDSTDERR:           ^~~~~~~~

See https://copr-be.cloud.fedoraproject.org/results/neteler/pdal-hexer/fedora-27-x86_64/00820274-hexer/build.log.gz

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions