View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014798CMakeCMakepublic2014-03-08 09:352014-10-06 10:32
ReporterJohn Szakmeister 
Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
Platformamd64OSFreeBSDOS Version10
Product VersionCMake 2.8.12.2 
Target VersionCMake 3.0Fixed in VersionCMake 3.0 
Summary0014798: CMake fails to build correctly from source on FreeBSD...
DescriptionWhen 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.
Steps To ReproduceA simple download, extract, ./configure && make will show the problem.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0035343)
Raphael Kubo da Costa (reporter)
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 (reporter)
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 (reporter)
2014-03-08 18:38

Thanks, I've fixed your PR on FreeBSD.
(0035346)
John Szakmeister (reporter)
2014-03-08 21:03

Fantastic! Thank you for such a quick turnaround.
(0035349)
Brad King (manager)
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 (manager)
2014-10-06 10:32

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2014-03-08 09:35 John Szakmeister New Issue
2014-03-08 13:22 Raphael Kubo da Costa Note Added: 0035343
2014-03-08 15:42 John Szakmeister Note Added: 0035344
2014-03-08 18:38 Raphael Kubo da Costa Note Added: 0035345
2014-03-08 21:03 John Szakmeister Note Added: 0035346
2014-03-09 10:51 Brad King Note Added: 0035349
2014-03-10 10:27 Brad King Status new => resolved
2014-03-10 10:27 Brad King Resolution open => fixed
2014-03-10 10:27 Brad King Fixed in Version => CMake 3.0
2014-03-10 10:27 Brad King Target Version => CMake 3.0
2014-10-06 10:32 Robert Maynard Note Added: 0036936
2014-10-06 10:32 Robert Maynard Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team