On 10.11, if python27 is installed, it is detected by cmake:

-- Found PythonLibs: /usr/lib/libpython2.7.dylib (found suitable version 
"2.7.10", minimum required is "2.4") 
-- Found PythonInterp: /sw/bin/python2.7 (found suitable version "2.7.13", 
minimum required is "2.4") 
[...]
-- Python support:    yes

and then the build fails:

Undefined symbols for architecture x86_64:
  "EnvInitializer::EnvInitializer()", referenced from:
      __GLOBAL__sub_I_PyXRootDCopyProcess.cc in PyXRootDCopyProcess.o
  "EnvInitializer::~EnvInitializer()", referenced from:
      __GLOBAL__sub_I_PyXRootDCopyProcess.cc in PyXRootDCopyProcess.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
error: command 'g++' failed with exit status 1
make[2]: *** [bindings/python/CMakeFiles/python_target.dir/build.make:62: 
bindings/python/python_bindings] Error 1
make[1]: *** [CMakeFiles/Makefile2:2493: 
bindings/python/CMakeFiles/python_target.dir/all] Error 2

If python27 is not installed, not detected, and the build process
completes. There is no python dependency, so either the use of it
needs to be disabled or the build with it detected needs to be fixed.
For example, adding to the cmake invocation:

    -DENABLE_PYTHON=no \

disables it. It looks like there are python bindings built for
external use (rather than internal python programming), so using
python might require having python-version variants?

dan

--
Daniel Macks
dma...@netspace.org


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Fink-users mailing list
Fink-users@lists.sourceforge.net
List archive:
https://sourceforge.net/p/fink/mailman/fink-users/
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-users

Reply via email to