poppler > 24.02.0

Any poppler version newer than 24.02.0 (the last one to build successfully for me) fails to build with:

/usr/include/c++/v1/csetjmp:39:6: error: "If libc++ starts defining <setjmp.h>, the __has_include check should move to libc++'s <setjmp.h?"

This comes from these files and a few others:

/tmp/usr/ports/graphics/poppler/work/poppler-25.0.2/poppler/Stream.cc:79
/tmp/usr/ports/graphics/poppler/work/poppler-25.0.2/poppler/DCTStream.h:25
/tmp/usr/ports/graphics/poppler/work/poppler-25.0.2/poppler/ImageEmbeddingUtils.cc:23

Any ideas why is this happening?

Many ports depend on poppler and lately all of those fail to build.
 
Don't have that problem. What version of FreeBSD?

You may have gotten hit with an OS upgrade messing up files in /usr/include/c++/v1.
 
/usr/src/UPDATING
Code:
20240419:
        Clang, llvm, lld, lldb, compiler-rt, libc++, libunwind and openmp have
        been upgraded to 18.1.6. It is important that you run `make delete-old`
        as described in the COMMON ITEMS section, otherwise several libc++
        headers that are obsolete and need to be removed can cause compilation
        errors in C++ programs.
 
FreeBSD 14.2 RELEASE.
I always build FreeBSD from source.
Why would and OS upgrade from 14.1 to 14.2 mess up those files?

Oh, sorry, just read Charlie's answer, will do a make delete-old.
 
Thanks a lot, problem solved with make delete-old / delete-old-libs, although it results in not being able to login because of missing pam_opie.so. I put them back from backup and it's fine.
 
Back
Top