Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to build using gcc 8.5 #151

Closed
radford-for-smpte opened this issue Oct 11, 2023 · 3 comments · Fixed by #153
Closed

Fails to build using gcc 8.5 #151

radford-for-smpte opened this issue Oct 11, 2023 · 3 comments · Fixed by #153

Comments

@radford-for-smpte
Copy link
Contributor

Tested using the gcc that ships w/ both CentOS 8 and 9. You can reproduce using this simple Dockerfile:

FROM rockylinux:8

RUN yum install -y epel-release
RUN yum install -y cmake3 xerces-c-devel gcc gcc-c++ tar gzip make

ENV VERSION=1.1.4

RUN curl -L https://github.com/sandflow/regxmllib/archive/$VERSION.tar.gz | tar -z -x -f - && \
    cd regxmllib-$VERSION && \
    cmake3 . && \
    make

and the command docker build .

See error output here:

log.txt

@palemieux
Copy link
Contributor

Did you try -std=c++11?

@palemieux
Copy link
Contributor

Can you attach xerces-c/include/xercesc/util/Xerces_autoconf_config.hpp?

@palemieux
Copy link
Contributor

Ok, so the basic issue is that modern OSes require C++ > 98, so to we cannot require CXX_STANDARD == 98.

We should instead test the library in an environment that supports CXX_STANDARD == 98.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants