2.4.1 build failure: canvas.cpp:1222:22: error: use of undeclared identifier 'm'
A library for scientific data visualization
Brought to you by:
abalakin
Full log https://gist.github.com/ilovezfs/b7e6ecb47c73dba5337bc3c88fb85a28
On OS X I'm getting the following build failure:
cmake -DCMAKE_C_FLAGS_RELEASE=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE=-DNDEBUG -DCMAKE_INSTALL_PREFIX=/usr/local/Cellar/mathgl/2.4.1 -DCMAKE_BUILD_TYPE=Release -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_VERBOSE_MAKEFILE=ON -Wno-dev -DHAVE_CLOCK_GETTIME:INTERNAL=0 -Denable-glut=ON -Denable-gsl=ON -Denable-jpeg=ON -Denable-pdf=ON -Denable-python=OFF -Denable-octave=OFF -Denable-openmp=OFF -Denable-pthread=ON -DGLUT_glut_LIBRARY=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks/GLUT.framework ..
[ 5%] Building CXX object src/CMakeFiles/mgl-static.dir/canvas.cpp.o
cd /tmp/mathgl-20170814-63403-1nnmje2/mathgl-2.4.1/brewery/src && /usr/local/Homebrew/Library/Homebrew/shims/super/clang++ -DMGL_HAVE_GSL2 -DMGL_SRC -DMGL_STATIC_DEFINE -DNO_COLOR_ARRAY -I/tmp/mathgl-20170814-63403-1nnmje2/mathgl-2.4.1/include -I/tmp/mathgl-20170814-63403-1nnmje2/mathgl-2.4.1/brewery/include -I/usr/local/include -F/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk/System/Library/Frameworks -I/tmp/mathgl-20170814-63403-1nnmje2/mathgl-2.4.1/src/prc -DNDEBUG -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.12.sdk -mmacosx-version-min=10.11 -o CMakeFiles/mgl-static.dir/canvas.cpp.o -c /tmp/mathgl-20170814-63403-1nnmje2/mathgl-2.4.1/src/canvas.cpp
/tmp/mathgl-20170814-63403-1nnmje2/mathgl-2.4.1/src/canvas.cpp:1222:22: error: use of undeclared identifier 'm'
pthread_mutex_lock(&m);
^
/tmp/mathgl-20170814-63403-1nnmje2/mathgl-2.4.1/src/canvas.cpp:1224:24: error: use of undeclared identifier 'm'
pthread_mutex_unlock(&m);
^
2 errors generated.
make[2]: *** [src/CMakeFiles/mgl-static.dir/canvas.cpp.o] Error 1
make[1]: *** [src/CMakeFiles/mgl-static.dir/all] Error 2
make: *** [all] Error 2
Anonymous
Same on Linux. It looks like the name of the mutex is missing from the non-omp branch.