pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: pkgsrc latest - Build of cmake-3.8.0 fails on NetBSD 6_stable



On Sat, Apr 22, 2017 at 06:28:09PM -0000, yancm%sdf.org@localhost wrote:
> I'm running NetBSD 6_Stable i386 (head of NetBSD_6 Branch)
> 
> Upon update to latest pkgsrc sources around April 10, 2017 and to present...
> I've had issues building cmake-3.8.0
> 
> I've resorted to some cluges to build, but suspect this is not right...
> 
> [ 12%] Building CXX object Source/CMakeFiles/CMakeLib.dir/cmELF.cxx.o
> /usr/pkgsrc/devel/cmake/work/cmake-3.8.0/Source/cmELF.cxx:678:32: error:
> 'DT_RUNPATH' was not declared in this scope
> Source/CMakeFiles/CMakeLib.dir/build.make:758: recipe for target
> 'Source/CMakeFiles/CMakeLib.dir/cmELF.cxx.o' failed
> gmake[2]: *** [Source/CMakeFiles/CMakeLib.dir/cmELF.cxx.o] Error 1
> 
> Cluge #1 - change DT_RUNPATH in cmELF.cxx line 678 to DT_RPATH in which is
> apparently defined?

I think this should be wrapped in #if and be set to 0 otherwise.

> Then build continues until...
> [ 88%] Building CXX object
> Source/CMakeFiles/ccmake.dir/CursesDialog/ccmake.cxx.o
> /usr/pkgsrc/devel/cmake/work/cmake-3.8.0/Source/CursesDialog/ccmake.cxx:
> In function 'void onsig(int)':
> /usr/pkgsrc/devel/cmake/work/cmake-3.8.0/Source/CursesDialog/ccmake.cxx:55:14:
> error: 'exit' was not declared in this scope
> /usr/pkgsrc/devel/cmake/work/cmake-3.8.0/Source/CursesDialog/ccmake.cxx:
> In function 'int main(int, const char* const*)':
> /usr/pkgsrc/devel/cmake/work/cmake-3.8.0/Source/CursesDialog/ccmake.cxx:133:12:
> error: 'exit' was not declared in this scope
> Source/CMakeFiles/ccmake.dir/build.make:350: recipe for target
> 'Source/CMakeFiles/ccmake.dir/CursesDialog/ccmake.cxx.o' failed
> gmake[2]: *** [Source/CMakeFiles/ccmake.dir/CursesDialog/ccmake.cxx.o]
> Error 1
> 
> Cluge #2
> Remove the exit calls form line 55 and line 133 in ccmake.cxx

Include stdlib.h or cstdlib, whatever the style here is.

Joerg


Home | Main Index | Thread Index | Old Index