sandflow / regxmllib

Convert MXF to XML: RegXML (SMPTE ST 2001-1) tools and libraries
BSD 2-Clause "Simplified" License
35 stars 14 forks source link

Fails to build using gcc 8.5 #151

Closed radford-for-smpte closed 1 year ago

radford-for-smpte commented 1 year ago

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 commented 1 year ago

Did you try -std=c++11?

palemieux commented 1 year ago

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

palemieux commented 1 year ago

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.