Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

build error for SLE_11_SP3 TypeForDimension.h:135: error: using 'typename' outside of template #53

Closed
tigerfoot opened this issue Jun 5, 2014 · 2 comments

Comments

@tigerfoot
Copy link
Contributor

I'm getting errors during the compilation under SLES 11 SP3 which I would like to fix.
Here's the full build log. Any ideas ?
I'm inserting all the patches in master since 1.0.4

[  112s] -----------------------------------------------------------------
[  112s] I have the following modifications for sfcgal.spec:
[  112s] -----------------------------------------------------------------
[  112s] ----- building sfcgal.spec (user abuild)
[  112s] -----------------------------------------------------------------
[  112s] -----------------------------------------------------------------
[  113s] + exec rpmbuild --define 'jobs -j1' -ba --define '_srcdefattr (-,root,root)' --nosignature --define '_build_create_debug 1' /usr/src/packages/SOURCES/sfcgal.spec
[  113s] Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.10068
[  113s] + umask 022
[  113s] + cd /usr/src/packages/BUILD
[  113s] + cd /usr/src/packages/BUILD
[  113s] + rm -rf SFCGAL-1.0.4
[  113s] + /usr/bin/gzip -dc /usr/src/packages/SOURCES/v1.0.4.tar.gz
[  113s] + tar -xf -
[  113s] + STATUS=0
[  113s] + '[' 0 -ne 0 ']'
[  113s] + cd SFCGAL-1.0.4
[  113s] ++ /usr/bin/id -u
[  113s] + '[' 399 = 0 ']'
[  113s] ++ /usr/bin/id -u
[  113s] + '[' 399 = 0 ']'
[  113s] + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
[  113s] + echo 'Patch #1 (0001-Small-typo-changed-requiered-to-required.patch):'
[  113s] Patch #1 (0001-Small-typo-changed-requiered-to-required.patch):
[  113s] + patch -p1 --fuzz=0 -s
[  113s] + echo 'Patch #2 (0002-Add-VERSION-and-SOVERSION-properties.patch):'
[  113s] Patch #2 (0002-Add-VERSION-and-SOVERSION-properties.patch):
[  113s] + patch -p1 --fuzz=0 -s
[  113s] + echo 'Patch #3 (0003-Add-detection-of-lib-lib64-directory.patch):'
[  113s] Patch #3 (0003-Add-detection-of-lib-lib64-directory.patch):
[  113s] + patch -p1 --fuzz=0 -s
[  113s] + echo 'Patch #4 (0004-Replace-lib-by-CMAKE_INSTALL_LIBDIR-in-installation-.patch):'
[  113s] Patch #4 (0004-Replace-lib-by-CMAKE_INSTALL_LIBDIR-in-installation-.patch):
[  113s] + patch -p1 --fuzz=0 -s
[  113s] + echo 'Patch #5 (0005-Added-FindPostgreSQL.cmake-macros.patch):'
[  113s] Patch #5 (0005-Added-FindPostgreSQL.cmake-macros.patch):
[  113s] + patch -p1 --fuzz=0 -s
[  113s] + echo 'Patch #6 (0006-fixed-unfindable-postgres-header-cmake-variable.patch):'
[  113s] Patch #6 (0006-fixed-unfindable-postgres-header-cmake-variable.patch):
[  113s] + patch -p1 --fuzz=0 -s
[  113s] + echo 'Patch #7 (0007-fixes-polygon-triangulation.patch):'
[  113s] Patch #7 (0007-fixes-polygon-triangulation.patch):
[  113s] + patch -p1 --fuzz=0 -s
[  113s] + exit 0
[  113s] Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.51236
[  113s] + umask 022
[  113s] + cd /usr/src/packages/BUILD
[  113s] + /bin/rm -rf /var/tmp/sfcgal-1.0.4-build
[  113s] ++ dirname /var/tmp/sfcgal-1.0.4-build
[  113s] + /bin/mkdir -p /var/tmp
[  113s] + /bin/mkdir /var/tmp/sfcgal-1.0.4-build
[  113s] + cd SFCGAL-1.0.4
[  113s] + mkdir _build
[  113s] + pushd _build
[  113s] /usr/src/packages/BUILD/SFCGAL-1.0.4/_build /usr/src/packages/BUILD/SFCGAL-1.0.4
[  113s] ++ /usr/bin/pg_config --includedir
[  113s] ++ /usr/bin/pg_config --libdir
[  113s] + cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_SKIP_RPATH=ON -DCMAKE_NO_BUILTIN_CHRPATH=ON '-DCMAKE_C_FLAGS_RELEASE=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing -g -DNDEBUG' '-DCMAKE_CXX_FLAGS_RELEASE=-fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing -g -DNDEBUG' -DCMAKE_MODULE_LINKER_FLAGS_RELEASE= -DCMAKE_SHARED_LINKER_FLAGS_RELEASE= -DCMAKE_VERBOSE_MAKEFILE=ON -DCMAKE_BUILD_TYPE=Release -DCMAKE_GMP_ENABLE_CXX=ON -DSFCGAL_CHECK_VALIDITY=TRUE -DSFCGAL_BUILD_VIEWER=ON -DPOSTGRESQL_INCLUDE_DIR=/usr/include/pgsql -DPOSTGRESQL_LIBRARIES=/usr/lib/postgresql91/lib64 -DSFCGAL_BUILD_EXAMPLES=ON ..
[  113s] -- The C compiler identification is GNU 4.3.4
[  113s] -- The CXX compiler identification is GNU 4.3.4
[  113s] -- Check for working C compiler: /usr/bin/cc
[  113s] -- Check for working C compiler: /usr/bin/cc -- works
[  113s] -- Detecting C compiler ABI info
[  113s] -- Detecting C compiler ABI info - done
[  114s] -- Check for working CXX compiler: /usr/bin/c++
[  114s] -- Check for working CXX compiler: /usr/bin/c++ -- works
[  114s] -- Detecting CXX compiler ABI info
[  114s] -- Detecting CXX compiler ABI info - done
[  114s] -- Boost_USE_STATIC_LIBS=OFF
[  114s] -- Boost_USE_MULTITHREAD=ON
[  114s] -- Boost version: 1.49.0
[  114s] -- Found the following Boost libraries:
[  114s] --   program_options
[  114s] --   chrono
[  114s] --   filesystem
[  114s] --   timer
[  114s] --   date_time
[  114s] --   thread
[  114s] --   system
[  114s] --   serialization
[  114s] -- Found GMP: /usr/include  
[  114s] -- GMP_INCLUDE_DIRS = /usr/include
[  114s] -- GMP_LIBRARIES = /usr/lib64/libgmp.so
[  114s] -- Found MPFR: /usr/include  
[  114s] -- MPFR_INCLUDE_DIRS = /usr/include
[  114s] -- MPFR_LIBRARIES = /usr/lib64/libmpfr.so
[  114s] -- Found CGAL: /usr/include (Required is at least version "4.1") 
[  114s] -- CGAL 4.3 found
[  114s] -- Found osgDB: /usr/lib64/libosgDB.so  
[  114s] -- Found osgUtil: /usr/lib64/libosgUtil.so  
[  114s] -- Found osg: /usr/lib64/libosg.so  
[  114s] -- Found OpenThreads: /usr/lib64/libOpenThreads.so  
[  114s] -- Found OpenSceneGraph: /usr/lib64/libosgDB.so;/usr/lib64/libosgUtil.so;/usr/lib64/libosg.so;/usr/lib64/libOpenThreads.so (found version "3.2.0") 
[  114s] -- Looking for Q_WS_X11
[  114s] -- Looking for Q_WS_X11 - found
[  114s] -- Looking for Q_WS_WIN
[  116s] -- Looking for Q_WS_WIN - not found
[  116s] -- Looking for Q_WS_QWS
[  116s] -- Looking for Q_WS_QWS - not found
[  116s] -- Looking for Q_WS_MAC
[  116s] -- Looking for Q_WS_MAC - not found
[  116s] -- Found Qt4: /usr/bin/qmake (found version "4.6.3") 
[  116s] -- Found osgQt: /usr/lib64/libosgQt.so  
[  116s] -- Found osgViewer: /usr/lib64/libosgViewer.so  
[  116s] -- Found osgGA: /usr/lib64/libosgGA.so  
[  116s] -- Found OpenSceneGraph: /usr/lib64/libosgDB.so;/usr/lib64/libosgUtil.so;/usr/lib64/libosg.so;/usr/lib64/libOpenThreads.so;/usr/lib64/libosgQt.so;/usr/lib64/libosgViewer.so;/usr/lib64/libosgGA.so;optimized;/usr/lib64/libosgDB.so;debug;/usr/lib64/libosgDB.so;optimized;/usr/lib64/libosgUtil.so;debug;/usr/lib64/libosgUtil.so;optimized;/usr/lib64/libosg.so;debug;/usr/lib64/libosg.so;/usr/lib64/libOpenThreads.so (found version "3.2.0") 
[  116s] -- Enabled PostgreSQL: /usr/include/pgsql, /usr/lib/postgresql91/lib64
[  116s] -- Configuring done
[  116s] -- Generating done
[  116s] CMake Warning:
[  116s]   Manually-specified variables were not used by the project:
[  116s] 
[  116s]     CMAKE_C_FLAGS_RELEASE
[  116s]     CMAKE_GMP_ENABLE_CXX
[  116s]     CMAKE_MODULE_LINKER_FLAGS_RELEASE
[  116s]     CMAKE_NO_BUILTIN_CHRPATH
[  116s] 
[  116s] 
[  116s] -- Build files have been written to: /usr/src/packages/BUILD/SFCGAL-1.0.4/_build
[  116s] + make VERBOSE=1 -j2
[  116s] /usr/bin/cmake -H/usr/src/packages/BUILD/SFCGAL-1.0.4 -B/usr/src/packages/BUILD/SFCGAL-1.0.4/_build --check-build-system CMakeFiles/Makefile.cmake 0
[  116s] /usr/bin/cmake -E cmake_progress_start /usr/src/packages/BUILD/SFCGAL-1.0.4/_build/CMakeFiles /usr/src/packages/BUILD/SFCGAL-1.0.4/_build/CMakeFiles/progress.marks
[  116s] make -f CMakeFiles/Makefile2 all
[  116s] make[1]: Entering directory `/usr/src/packages/BUILD/SFCGAL-1.0.4/_build'
[  116s] make -f src/CMakeFiles/SFCGAL.dir/build.make src/CMakeFiles/SFCGAL.dir/depend
[  116s] make[2]: Entering directory `/usr/src/packages/BUILD/SFCGAL-1.0.4/_build'
[  116s] cd /usr/src/packages/BUILD/SFCGAL-1.0.4/_build && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /usr/src/packages/BUILD/SFCGAL-1.0.4 /usr/src/packages/BUILD/SFCGAL-1.0.4/src /usr/src/packages/BUILD/SFCGAL-1.0.4/_build /usr/src/packages/BUILD/SFCGAL-1.0.4/_build/src /usr/src/packages/BUILD/SFCGAL-1.0.4/_build/src/CMakeFiles/SFCGAL.dir/DependInfo.cmake --color=
[  116s] Dependee "/usr/src/packages/BUILD/SFCGAL-1.0.4/_build/src/CMakeFiles/SFCGAL.dir/DependInfo.cmake" is newer than depender "/usr/src/packages/BUILD/SFCGAL-1.0.4/_build/src/CMakeFiles/SFCGAL.dir/depend.internal".
[  116s] Dependee "/usr/src/packages/BUILD/SFCGAL-1.0.4/_build/src/CMakeFiles/CMakeDirectoryInformation.cmake" is newer than depender "/usr/src/packages/BUILD/SFCGAL-1.0.4/_build/src/CMakeFiles/SFCGAL.dir/depend.internal".
[  116s] Scanning dependencies of target SFCGAL
[  116s] make[2]: Leaving directory `/usr/src/packages/BUILD/SFCGAL-1.0.4/_build'
[  116s] make -f src/CMakeFiles/SFCGAL.dir/build.make src/CMakeFiles/SFCGAL.dir/build
[  120s] make[2]: Entering directory `/usr/src/packages/BUILD/SFCGAL-1.0.4/_build'
[  120s] /usr/bin/cmake -E cmake_progress_report /usr/src/packages/BUILD/SFCGAL-1.0.4/_build/CMakeFiles
[  120s] /usr/bin/cmake -E cmake_progress_report /usr/src/packages/BUILD/SFCGAL-1.0.4/_build/CMakeFiles 1
[  120s] [  0%] [  1%] Building CXX object src/CMakeFiles/SFCGAL.dir/SFCGAL/Solid.cpp.o
[  120s] cd /usr/src/packages/BUILD/SFCGAL-1.0.4/_build/src && /usr/bin/c++   -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -DCGAL_INTERSECTION_VERSION=1 -DSFCGAL_BUILD_SHARED -DSFCGAL_EXPORTS -Wall -Wextra -Wno-long-long -pedantic -Wpointer-arith -Wcast-align -Wcast-qual -Wno-overloaded-virtual -Wformat=2 -Winit-self -Wmissing-include-dirs -Wwrite-strings -Wno-error=undef -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing -g -DNDEBUG -fPIC -I/usr/src/packages/BUILD/SFCGAL-1.0.4/include -I/usr/src/packages/BUILD/SFCGAL-1.0.4/patches/CGAL-4.3    -o CMakeFiles/SFCGAL.dir/SFCGAL/Solid.cpp.o -c /usr/src/packages/BUILD/SFCGAL-1.0.4/src/SFCGAL/Solid.cpp
[  120s] Building CXX object src/CMakeFiles/SFCGAL.dir/SFCGAL/Point.cpp.o
[  120s] cd /usr/src/packages/BUILD/SFCGAL-1.0.4/_build/src && /usr/bin/c++   -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -DCGAL_INTERSECTION_VERSION=1 -DSFCGAL_BUILD_SHARED -DSFCGAL_EXPORTS -Wall -Wextra -Wno-long-long -pedantic -Wpointer-arith -Wcast-align -Wcast-qual -Wno-overloaded-virtual -Wformat=2 -Winit-self -Wmissing-include-dirs -Wwrite-strings -Wno-error=undef -fmessage-length=0 -O2 -Wall -D_FORTIFY_SOURCE=2 -fstack-protector -funwind-tables -fasynchronous-unwind-tables -g -fno-strict-aliasing -g -DNDEBUG -fPIC -I/usr/src/packages/BUILD/SFCGAL-1.0.4/include -I/usr/src/packages/BUILD/SFCGAL-1.0.4/patches/CGAL-4.3    -o CMakeFiles/SFCGAL.dir/SFCGAL/Point.cpp.o -c /usr/src/packages/BUILD/SFCGAL-1.0.4/src/SFCGAL/Point.cpp
[  122s] In file included from /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/Point.h:27,
[  122s]                  from /usr/src/packages/BUILD/SFCGAL-1.0.4/src/SFCGAL/Point.cpp:21:
[  122s] /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/detail/TypeForDimension.h:135: error: using 'typename' outside of template
[  122s] /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/detail/TypeForDimension.h:139: error: using 'typename' outside of template
[  122s] /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/detail/TypeForDimension.h:143: error: using 'typename' outside of template
[  122s] /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/detail/TypeForDimension.h:147: error: using 'typename' outside of template
[  122s] /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/detail/TypeForDimension.h:151: error: using 'typename' outside of template
[  122s] /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/detail/TypeForDimension.h:155: error: using 'typename' outside of template
[  122s] In file included from /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/Point.h:27,
[  122s]                  from /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/PolyhedralSurface.h:30,
[  122s]                  from /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/Solid.h:32,
[  122s]                  from /usr/src/packages/BUILD/SFCGAL-1.0.4/src/SFCGAL/Solid.cpp:21:
[  122s] /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/detail/TypeForDimension.h:135: error: using 'typename' outside of template
[  122s] /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/detail/TypeForDimension.h:139: error: using 'typename' outside of template
[  122s] /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/detail/TypeForDimension.h:143: error: using 'typename' outside of template
[  122s] /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/detail/TypeForDimension.h:147: error: using 'typename' outside of template
[  122s] /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/detail/TypeForDimension.h:151: error: using 'typename' outside of template
[  122s] /usr/src/packages/BUILD/SFCGAL-1.0.4/include/SFCGAL/detail/TypeForDimension.h:155: error: using 'typename' outside of template
[  123s] make[2]: *** [src/CMakeFiles/SFCGAL.dir/SFCGAL/Point.cpp.o] Error 1
[  123s] make[2]: *** Waiting for unfinished jobs....
[  123s] make[2]: *** [src/CMakeFiles/SFCGAL.dir/SFCGAL/Solid.cpp.o] Error 1
[  123s] make[2]: Leaving directory `/usr/src/packages/BUILD/SFCGAL-1.0.4/_build'
[  123s] make[1]: *** [src/CMakeFiles/SFCGAL.dir/all] Error 2
[  123s] make[1]: Leaving directory `/usr/src/packages/BUILD/SFCGAL-1.0.4/_build'
[  123s] make: *** [all] Error 2
[  123s] error: Bad exit status from /var/tmp/rpm-tmp.51236 (%build)
[  123s]
[  123s]
[  123s] RPM build errors:
[  123s]     Bad exit status from /var/tmp/rpm-tmp.51236 (%build)
[  126s] [  111.150587] reboot: Power down
@mhugo
Copy link
Contributor

mhugo commented Jun 5, 2014

See issue #44, it is surely related to your version of g++. It should be at least 4.5 I would say

@tigerfoot
Copy link
Contributor Author

Ok closing, I've got a patch to build with gcc4.3 under SLES 11
I guess this is not for upstream code.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants