pkgsrc-Users archive

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

cmake doesn't build



Odd, as nothing much seems to have changed recently with devel/cmake, but on a
NetBSD-6.1.2/amd64 box, with gcc version 4.5.3 (NetBSD nb2 20110806), I see:

/usr/obj/pkgsrc/devel/cmake/work.quartz/cmake-2.8.12.1/Source/kwsys/kwsysPlatfor
mTestsCXX.cxx: In function 'int main()':
/usr/obj/pkgsrc/devel/cmake/work.quartz/cmake-2.8.12.1/Source/kwsys/kwsysPlatfor
mTestsCXX.cxx:450:13: error: 'environ' was not declared in this scope
Test failed to compile
Try: c++
Line: c++ -g -O0 -DDEBUG -I/usr/include -I/usr/pkg/include -I/usr/include/krb5 -
DTEST_KWSYS_STL_HAVE_STD /usr/obj/pkgsrc/devel/cmake/work.quartz/cmake-2.8.12.1/
Source/kwsys/kwsysPlatformTestsCXX.cxx -o cmake_bootstrap_3994_test

presumably from

#ifdef TEST_KWSYS_CXX_HAS_ENVIRON_IN_STDLIB_H
#include <stdlib.h>
int main()
{
  char* e = environ[0];
  return e? 0:1;
}
#endif

yet I don't see anywhere which defines TEST_KWSYS_CXX_HAS_ENVIRON_IN_STDLIB_H.

...

/usr/obj/pkgsrc/devel/cmake/work.quartz/cmake-2.8.12.1/Source/kwsys/kwsysPlatfor
mTestsCXX.cxx: In function 'void f(const std::allocator<char>&)':
/usr/obj/pkgsrc/devel/cmake/work.quartz/cmake-2.8.12.1/Source/kwsys/kwsysPlatfor
mTestsCXX.cxx:256:25: error: no matching function for call to 'std::allocator<ch
ar>::max_size(long unsigned int) const'
/usr/include/g++/ext/new_allocator.h:98:7: note: candidate is: __gnu_cxx::new_al
locator::size_type __gnu_cxx::new_allocator<_Tp>::max_size() const [with _Tp = c
har, __gnu_cxx::new_allocator::size_type = long unsigned int]
Test failed to compile
Try: c++
Line: c++ -g -O0 -DDEBUG -I/usr/include -I/usr/pkg/include -I/usr/include/krb5 -
DTEST_KWSYS_STL_HAS_ALLOCATOR_OBJECTS -DKWSYS_STL_HAVE_STD=1 /usr/obj/pkgsrc/dev
el/cmake/work.quartz/cmake-2.8.12.1/Source/kwsys/kwsysPlatformTestsCXX.cxx -o cm
ake_bootstrap_3994_test

...

etc

Cheers,

Patrick


Home | Main Index | Thread Index | Old Index