MantisBT - CMake
View Issue Details
0014798CMakeCMakepublic2014-03-08 09:352014-10-06 10:32
John Szakmeister 
 
normalminorhave not tried
closedfixed 
amd64FreeBSD10
CMake 2.8.12.2 
CMake 3.0CMake 3.0 
0014798: CMake fails to build correctly from source on FreeBSD...
When trying to build CMake from source, I end up with the following errors:

[ 5%] Building CXX object Source/kwsys/CMakeFiles/cmsys.dir/SystemInformation.cxx.o
/home/jszakmeister/source/cmake-2.8.12.2/Source/kwsys/SystemInformation.cxx:1478:3: error: unknown type name 'Dl_info'
  Dl_info info;
  ^
/home/jszakmeister/source/cmake-2.8.12.2/Source/kwsys/SystemInformation.cxx:3631:15: error: use of undeclared identifier 'backtrace'
  int nFrames=backtrace(stackSymbols,256);
              ^
2 errors generated.
gmake[2]: *** [Source/kwsys/CMakeFiles/cmsys.dir/SystemInformation.cxx.o] Error 1
gmake[1]: *** [Source/kwsys/CMakeFiles/cmsys.dir/all] Error 2
gmake: *** [all] Error 2

It appears that the dlfcn.h header is not being included in places, but there may be some other issues too.
A simple download, extract, ./configure && make will show the problem.
No tags attached.
Issue History
2014-03-08 09:35John SzakmeisterNew Issue
2014-03-08 13:22Raphael Kubo da CostaNote Added: 0035343
2014-03-08 15:42John SzakmeisterNote Added: 0035344
2014-03-08 18:38Raphael Kubo da CostaNote Added: 0035345
2014-03-08 21:03John SzakmeisterNote Added: 0035346
2014-03-09 10:51Brad KingNote Added: 0035349
2014-03-10 10:27Brad KingStatusnew => resolved
2014-03-10 10:27Brad KingResolutionopen => fixed
2014-03-10 10:27Brad KingFixed in Version => CMake 3.0
2014-03-10 10:27Brad KingTarget Version => CMake 3.0
2014-10-06 10:32Robert MaynardNote Added: 0036936
2014-10-06 10:32Robert MaynardStatusresolved => closed

Notes
(0035343)
Raphael Kubo da Costa   
2014-03-08 13:22   
FWIW, I fixed this in http://public.kitware.com/gitweb?p=KWSys.git;a=commitdiff;h=6eab64c3 [^] but v3.0.0-rc1 is the only tag that contains this fix so far.

Additionally, devel/cmake in the FreeBSD ports tree backports this patch and builds just fine.
(0035344)
John Szakmeister   
2014-03-08 15:42   
Unfortunately, the ports build isn't building with SSL support, which means that using "file(DOWNLOAD ...)" with GitHub doesn't work, which is why I was looking to just build CMake myself. :-( I guess I'll pluck the patches from the ports tree and try again.

FWIW, I did file a bug with the FreeBSD ports to see about getting SSL support added.
(0035345)
Raphael Kubo da Costa   
2014-03-08 18:38   
Thanks, I've fixed your PR on FreeBSD.
(0035346)
John Szakmeister   
2014-03-08 21:03   
Fantastic! Thank you for such a quick turnaround.
(0035349)
Brad King   
2014-03-09 10:51   
Upstream developers directly support the platforms that have nightly testing submissions to our dashboard:

 http://open.cdash.org/index.php?project=CMake [^]

For other platforms we have to depend on fixup patches from those with access to the platforms.

Until a couple months ago we had a dozen or so FreeBSD submissions from a generous contributor. Those had to be retired for non-technical reasons and no one has stepped forward to replace them. Instructions to create a nightly testing submission are here:

 http://www.cmake.org/Wiki/CMake/Git/Dashboard [^]
(0036936)
Robert Maynard   
2014-10-06 10:32   
Closing resolved issues that have not been updated in more than 4 months.