LyX Developers, I'm attempting to compile LyX 2.2.0 for local/single user use on RHEL6 with GCC 5.3.0 / Python 3.4 (see below signature for configure summary) and very quickly run into errors on make. Specifically, I see:
CXX filetools.o ../../../src/support/filetools.cpp: In function ‘bool lyx::support::readLink(const lyx::support::FileName&, lyx::support::FileName&)’: ../../../src/support/filetools.cpp:980:18: error: ‘PATH_MAX’ was not declared in this scope char linkbuffer[PATH_MAX + 1]; ^ ../../../src/support/filetools.cpp:982:10: error: ‘linkbuffer’ was not declared in this scope linkbuffer, sizeof(linkbuffer) - 1); ^ make[5]: *** [filetools.o] Error 1 at which time the 'make' aborts Has anyone encountered this / is there a known workaround (or configure option) I'm not aware of? Please note that I can compile 2.1.4 on the same system. Note also that the above errors are also present with GCC 4.9.2. Thank you, Joel My configuration summary is as follows: Configuration Host type: x86_64-unknown-linux-gnu Special build flags: build=release c++11 std-regex C++ Compiler: g++ (5.3.0) C++ Compiler flags: -std=c++11 -O2 -Wno-deprecated-declarations C++ Compiler user flags: Linker flags: Linker user flags: Qt Frontend: Qt version: 4.6.2 Packaging: posix LyX binary dir: /usr/local/bin LyX files dir: /usr/local/share/lyx === The following minor problems have been detected by configure. === Please check the messages below before running 'make'. === (see the section 'Problems' in the INSTALL file) == cannot find magic.h. Please check that the libmagic library is correctly installed on your system. Falling back to builtin file format detection.