fink / fink-distributions

Package descriptions and patches for Fink
24 stars 38 forks source link

libnlopt-2.4.2-1: linking fails with lots of missing python symbols #1154

Closed cooljeanius closed 1 month ago

cooljeanius commented 1 month ago
/bin/sh ../libtool  --tag=CXX   --mode=link g++  -g -O2 -module -version-info 8:2:8 -L/opt/sw/lib -Wl,-headerpad_max_install_names -o _nlopt.la -rpath /opt/sw/lib/python2.7/site-packages _nlopt_la-nlopt-python.lo ../libnlopt.la -lm 
libtool: link: g++  -o .libs/_nlopt.0.so -bundle  .libs/_nlopt_la-nlopt-python.o   -L/opt/sw/lib ../.libs/libnlopt.dylib -lm  -O2 -Wl,-headerpad_max_install_names  
Undefined symbols for architecture x86_64:
  "_PyArg_ParseTuple", referenced from:
      _wrap_delete_SwigPyIterator(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_value(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_distance(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_equal(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_copy(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyArg_UnpackTuple", referenced from:
      SwigPyObject_own(_object*, _object*) in _nlopt_la-nlopt-python.o
  "_PyBool_FromLong", referenced from:
      _wrap_SwigPyIterator_equal(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___eq__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___ne__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___nonzero__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___bool__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_empty(_object*, _object*) in _nlopt_la-nlopt-python.o
      SwigPyObject_richcompare(SwigPyObject*, SwigPyObject*, int) in _nlopt_la-nlopt-python.o
      ...
  "_PyCFunction_Type", referenced from:
      SWIG_Python_ConvertFunctionPtr(_object*, void**, swig_type_info*) in _nlopt_la-nlopt-python.o
  "_PyCObject_AsVoidPtr", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
  "_PyCObject_Type", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
  "_PyCallable_Check", referenced from:
      pytype_string(_object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_set_min_objective(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_set_max_objective(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_inequality_constraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_equality_constraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_inequality_mconstraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_equality_mconstraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyCapsule_GetPointer", referenced from:
      free_cap(_object*) in _nlopt_la-nlopt-python.o
      SWIG_Python_DestroyModule(_object*) in _nlopt_la-nlopt-python.o
  "_PyCapsule_Import", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
  "_PyCapsule_New", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
  "_PyClass_Type", referenced from:
      SwigPyClientData_New(_object*) in _nlopt_la-nlopt-python.o
  "_PyDict_GetItem", referenced from:
      SWIG_Python_GetSwigThis(_object*) in _nlopt_la-nlopt-python.o
  "_PyDict_New", referenced from:
      SWIG_Python_NewPointerObj(_object*, void*, swig_type_info*, int) in _nlopt_la-nlopt-python.o
  "_PyDict_SetItem", referenced from:
      SWIG_Python_NewPointerObj(_object*, void*, swig_type_info*, int) in _nlopt_la-nlopt-python.o
  "_PyDict_SetItemString", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
  "_PyErr_Clear", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_advance(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___iadd__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___isub__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___add__(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyErr_Fetch", referenced from:
      SWIG_Python_AddErrorMsg(char const*) in _nlopt_la-nlopt-python.o
  "_PyErr_Format", referenced from:
      obj_to_array_no_conversion(_object*, int) in _nlopt_la-nlopt-python.o
      require_dimensions(tagPyArrayObject*, int) in _nlopt_la-nlopt-python.o
      require_dimensions_n(tagPyArrayObject*, int*, int) in _nlopt_la-nlopt-python.o
      require_size(tagPyArrayObject*, long*, int) in _nlopt_la-nlopt-python.o
      _init_nlopt in _nlopt_la-nlopt-python.o
      _wrap_opt_optimize(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_inequality_mconstraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyErr_Occurred", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_advance(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___iadd__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___isub__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___add__(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyErr_Print", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
  "_PyErr_SetObject", referenced from:
      _wrap_SwigPyIterator_value(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_distance(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_equal(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_next(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___next__(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyErr_SetString", referenced from:
      require_contiguous(tagPyArrayObject*) in _nlopt_la-nlopt-python.o
      require_native(tagPyArrayObject*) in _nlopt_la-nlopt-python.o
      _init_nlopt in _nlopt_la-nlopt-python.o
      _wrap_delete_SwigPyIterator(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_value(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyEval_CallObjectWithKeywords", referenced from:
      func_python(unsigned int, double const*, double*, void*) in _nlopt_la-nlopt-python.o
      mfunc_python(unsigned int, double*, unsigned int, double const*, double*, void*) in _nlopt_la-nlopt-python.o
  "_PyExc_AttributeError", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
      l_switch.table._ZL13_wrap_versionP7_objectS0_.809 in _nlopt_la-nlopt-python.o
  "_PyExc_Exception", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
  "_PyExc_IOError", referenced from:
      l_switch.table._ZL13_wrap_versionP7_objectS0_.809 in _nlopt_la-nlopt-python.o
  "_PyExc_ImportError", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
  "_PyExc_IndexError", referenced from:
      _wrap_nlopt_doublevector_pop(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___getslice__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___setslice__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___delitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___getitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___setitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      l_switch.table._ZL13_wrap_versionP7_objectS0_.809 in _nlopt_la-nlopt-python.o
      ...
  "_PyExc_MemoryError", referenced from:
      _wrap_new_opt(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_optimize(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_set_min_objective(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_set_max_objective(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_inequality_constraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_equality_constraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_inequality_mconstraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyExc_NotImplementedError", referenced from:
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___setslice__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___delitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___getitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___setitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_erase(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyExc_OverflowError", referenced from:
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_new_nlopt_doublevector(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_assign(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_resize(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_insert(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_reserve(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyExc_RuntimeError", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
      _wrap_delete_SwigPyIterator(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_value(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_distance(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_equal(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyExc_StopIteration", referenced from:
      _wrap_SwigPyIterator_value(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_next(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___next__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_previous(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_advance(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyExc_SyntaxError", referenced from:
      l_switch.table._ZL13_wrap_versionP7_objectS0_.809 in _nlopt_la-nlopt-python.o
  "_PyExc_SystemError", referenced from:
      l_switch.table._ZL13_wrap_versionP7_objectS0_.809 in _nlopt_la-nlopt-python.o
  "_PyExc_TypeError", referenced from:
      obj_to_array_no_conversion(_object*, int) in _nlopt_la-nlopt-python.o
      require_contiguous(tagPyArrayObject*) in _nlopt_la-nlopt-python.o
      require_native(tagPyArrayObject*) in _nlopt_la-nlopt-python.o
      require_dimensions(tagPyArrayObject*, int) in _nlopt_la-nlopt-python.o
      require_dimensions_n(tagPyArrayObject*, int*, int) in _nlopt_la-nlopt-python.o
      require_size(tagPyArrayObject*, long*, int) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyExc_ValueError", referenced from:
      _wrap_SwigPyIterator_distance(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_equal(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___eq__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___ne__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___sub__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___getslice__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___setslice__(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyExc_ZeroDivisionError", referenced from:
      l_switch.table._ZL13_wrap_versionP7_objectS0_.809 in _nlopt_la-nlopt-python.o
  "_PyFile_Type", referenced from:
      pytype_string(_object*) in _nlopt_la-nlopt-python.o
  "_PyFloat_AsDouble", referenced from:
      SWIG_AsVal_double(_object*, double*) in _nlopt_la-nlopt-python.o
      func_python(unsigned int, double const*, double*, void*) in _nlopt_la-nlopt-python.o
  "_PyFloat_FromDouble", referenced from:
      _wrap_nlopt_doublevector_pop(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___getitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_front(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_back(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_last_optimum_value(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_get_stopval(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_get_ftol_rel(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyFloat_Type", referenced from:
      pytype_string(_object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___setitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_new_nlopt_doublevector(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_resize(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_insert(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_inequality_constraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_equality_constraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyImport_ImportModule", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
  "_PyInstance_NewRaw", referenced from:
      SWIG_Python_NewPointerObj(_object*, void*, swig_type_info*, int) in _nlopt_la-nlopt-python.o
  "_PyInstance_Type", referenced from:
      pytype_string(_object*) in _nlopt_la-nlopt-python.o
      SWIG_Python_GetSwigThis(_object*) in _nlopt_la-nlopt-python.o
  "_PyInt_AsLong", referenced from:
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_advance(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___iadd__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___isub__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___add__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___sub__(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyInt_FromLong", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
      _wrap_opt_optimize(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_last_optimize_result(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_get_algorithm(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_get_maxeval(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_get_force_stop(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_version_major(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyInt_FromSize_t", referenced from:
      _wrap_opt_get_dimension(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_get_population(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_get_vector_storage(_object*, _object*) in _nlopt_la-nlopt-python.o
  "_PyLong_AsDouble", referenced from:
      _wrap_nlopt_doublevector___setitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_new_nlopt_doublevector(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_resize(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_insert(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_inequality_constraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_equality_constraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_set_lower_bounds(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyLong_AsLong", referenced from:
      _wrap_SwigPyIterator_advance(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___iadd__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___isub__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___add__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___sub__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___getslice__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___setslice__(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyLong_AsUnsignedLong", referenced from:
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_new_nlopt_doublevector(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_assign(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_resize(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_insert(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_reserve(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyLong_FromLong", referenced from:
      _wrap_SwigPyIterator_distance(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___sub__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___len__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_size(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_capacity(_object*, _object*) in _nlopt_la-nlopt-python.o
  "_PyLong_FromUnsignedLong", referenced from:
      _wrap_nlopt_doublevector___len__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_size(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector_capacity(_object*, _object*) in _nlopt_la-nlopt-python.o
  "_PyLong_FromVoidPtr", referenced from:
      SwigPyObject_long(SwigPyObject*) in _nlopt_la-nlopt-python.o
      SwigPyObject_format(char const*, SwigPyObject*) in _nlopt_la-nlopt-python.o
  "_PyModule_AddObject", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
  "_PyModule_GetDict", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
  "_PyModule_Type", referenced from:
      pytype_string(_object*) in _nlopt_la-nlopt-python.o
  "_PyObject_Call", referenced from:
      SWIG_Python_NewPointerObj(_object*, void*, swig_type_info*, int) in _nlopt_la-nlopt-python.o
  "_PyObject_CallFunctionObjArgs", referenced from:
      SWIG_Python_ConvertPtrAndOwn(_object*, void**, swig_type_info*, int, int*) in _nlopt_la-nlopt-python.o
      SwigPyObject_dealloc(_object*) in _nlopt_la-nlopt-python.o
  "_PyObject_Free", referenced from:
      SwigPyObject_dealloc(_object*) in _nlopt_la-nlopt-python.o
  "_PyObject_GenericGetAttr", referenced from:
      l___const._ZL21SwigPyObject_TypeOncev.tmp in _nlopt_la-nlopt-python.o
  "_PyObject_GetAttr", referenced from:
      SWIG_Python_GetSwigThis(_object*) in _nlopt_la-nlopt-python.o
  "_PyObject_GetAttrString", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
      SwigPyClientData_New(_object*) in _nlopt_la-nlopt-python.o
  "_PyObject_Init", referenced from:
      SwigPyObject_dealloc(_object*) in _nlopt_la-nlopt-python.o
      SWIG_Python_NewPointerObj(_object*, void*, swig_type_info*, int) in _nlopt_la-nlopt-python.o
  "_PyObject_IsTrue", referenced from:
      SwigPyObject_own(_object*, _object*) in _nlopt_la-nlopt-python.o
  "_PyObject_Malloc", referenced from:
      SwigPyObject_dealloc(_object*) in _nlopt_la-nlopt-python.o
      SWIG_Python_NewPointerObj(_object*, void*, swig_type_info*, int) in _nlopt_la-nlopt-python.o
  "_PyObject_Size", referenced from:
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___sub__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___setslice__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___delitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___getitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___setitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyObject_Str", referenced from:
      SWIG_Python_AddErrorMsg(char const*) in _nlopt_la-nlopt-python.o
  "_PySequence_Check", referenced from:
      _wrap_opt_optimize(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_inequality_mconstraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_add_equality_mconstraint(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_set_lower_bounds(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_set_upper_bounds(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_set_xtol_abs(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_opt_set_initial_step(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PySequence_GetItem", referenced from:
      swig::SwigPySequence_Cont<double>::check(bool) const in _nlopt_la-nlopt-python.o
      swig::SwigPySequence_Ref<double>::operator double() const in _nlopt_la-nlopt-python.o
  "_PySequence_Size", referenced from:
      swig::traits_asptr_stdseq<std::__1::vector<double, std::__1::allocator<double> >, double>::asptr(_object*, std::__1::vector<double, std::__1::allocator<double> >**) in _nlopt_la-nlopt-python.o
      swig::SwigPySequence_Cont<double>::check(bool) const in _nlopt_la-nlopt-python.o
  "_PySlice_GetIndices", referenced from:
      _wrap_nlopt_doublevector___delitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___getitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___setitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
  "_PySlice_Type", referenced from:
      _wrap_nlopt_doublevector___delitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___getitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___setitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
  "_PyString_AsString", referenced from:
      SWIG_Python_AddErrorMsg(char const*) in _nlopt_la-nlopt-python.o
  "_PyString_ConcatAndDel", referenced from:
      SwigPyObject_repr(SwigPyObject*) in _nlopt_la-nlopt-python.o
  "_PyString_Format", referenced from:
      SwigPyObject_format(char const*, SwigPyObject*) in _nlopt_la-nlopt-python.o
  "_PyString_FromFormat", referenced from:
      SwigPyObject_repr(SwigPyObject*) in _nlopt_la-nlopt-python.o
  "_PyString_FromString", referenced from:
      SWIG_Python_GetSwigThis(_object*) in _nlopt_la-nlopt-python.o
      SwigPyObject_format(char const*, SwigPyObject*) in _nlopt_la-nlopt-python.o
      SWIG_Python_NewPointerObj(_object*, void*, swig_type_info*, int) in _nlopt_la-nlopt-python.o
      SWIG_Python_DestroyModule(_object*) in _nlopt_la-nlopt-python.o
  "_PyString_FromStringAndSize", referenced from:
      _wrap_opt_get_algorithm_name(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_algorithm_name(_object*, _object*) in _nlopt_la-nlopt-python.o
  "_PyTuple_New", referenced from:
      SwigPyObject_format(char const*, SwigPyObject*) in _nlopt_la-nlopt-python.o
      SwigPyClientData_New(_object*) in _nlopt_la-nlopt-python.o
  "_PyTuple_SetItem", referenced from:
      SwigPyObject_format(char const*, SwigPyObject*) in _nlopt_la-nlopt-python.o
      SwigPyClientData_New(_object*) in _nlopt_la-nlopt-python.o
  "_PyType_IsSubtype", referenced from:
      pytype_string(_object*) in _nlopt_la-nlopt-python.o
      obj_to_array_no_conversion(_object*, int) in _nlopt_la-nlopt-python.o
      obj_to_array_allow_conversion(_object*, int, int*) in _nlopt_la-nlopt-python.o
      obj_to_array_contiguous_allow_conversion(_object*, int, int*) in _nlopt_la-nlopt-python.o
      obj_to_array_fortran_allow_conversion(_object*, int, int*) in _nlopt_la-nlopt-python.o
      _wrap_nlopt_doublevector___setitem__(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_new_nlopt_doublevector(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "_PyType_Ready", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
      SWIG_Python_GetSwigThis(_object*) in _nlopt_la-nlopt-python.o
      SwigPyObject_dealloc(_object*) in _nlopt_la-nlopt-python.o
      SwigPyObject_append(_object*, _object*) in _nlopt_la-nlopt-python.o
      SWIG_Python_NewPointerObj(_object*, void*, swig_type_info*, int) in _nlopt_la-nlopt-python.o
  "_Py_BuildValue", referenced from:
      func_python(unsigned int, double const*, double*, void*) in _nlopt_la-nlopt-python.o
      mfunc_python(unsigned int, double*, unsigned int, double const*, double*, void*) in _nlopt_la-nlopt-python.o
  "_Py_InitModule4_64", referenced from:
      _init_nlopt in _nlopt_la-nlopt-python.o
  "__PyInstance_Lookup", referenced from:
      SWIG_Python_GetSwigThis(_object*) in _nlopt_la-nlopt-python.o
  "__PyObject_GetDictPtr", referenced from:
      SWIG_Python_GetSwigThis(_object*) in _nlopt_la-nlopt-python.o
      SWIG_Python_NewPointerObj(_object*, void*, swig_type_info*, int) in _nlopt_la-nlopt-python.o
  "__PyObject_New", referenced from:
      SWIG_Python_NewPointerObj(_object*, void*, swig_type_info*, int) in _nlopt_la-nlopt-python.o
  "__PyWeakref_CallableProxyType", referenced from:
      SWIG_Python_GetSwigThis(_object*) in _nlopt_la-nlopt-python.o
  "__PyWeakref_ProxyType", referenced from:
      SWIG_Python_GetSwigThis(_object*) in _nlopt_la-nlopt-python.o
  "__Py_NoneStruct", referenced from:
      pytype_string(_object*) in _nlopt_la-nlopt-python.o
      _wrap_delete_SwigPyIterator(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_value(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_incr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_decr(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator_next(_object*, _object*) in _nlopt_la-nlopt-python.o
      _wrap_SwigPyIterator___next__(_object*, _object*) in _nlopt_la-nlopt-python.o
      ...
  "__Py_NotImplementedStruct", referenced from:
      _wrap_SwigPyIterator___sub__(_object*, _object*) in _nlopt_la-nlopt-python.o
      SwigPyObject_richcompare(SwigPyObject*, SwigPyObject*, int) in _nlopt_la-nlopt-python.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[3]: *** [Makefile:502: _nlopt.la] Error 1
make[3]: Leaving directory '/opt/sw/src/fink.build/libnlopt-2.4.2-1/nlopt-2.4.2/swig'
make[2]: *** [Makefile:394: all] Error 2
make[2]: Leaving directory '/opt/sw/src/fink.build/libnlopt-2.4.2-1/nlopt-2.4.2/swig'
make[1]: *** [Makefile:574: all-recursive] Error 1
make[1]: Leaving directory '/opt/sw/src/fink.build/libnlopt-2.4.2-1/nlopt-2.4.2'
make: *** [Makefile:438: all] Error 2

I'm on x86_64 Big Sur with Xcode 13. cc @babayoshihiko

nieder commented 1 month ago

Looks like it's trying to build the python binding, which is not expected. What's the output for the python checks in configure? THis is what I have in my macOS13 system:

checking for python... no
checking for python2... no
checking for python3... /usr/bin/python3
checking for python version... 3.9
checking for python platform... darwin
checking for python script directory... ${prefix}/lib/python3.9/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python3.9/site-packages
checking for python3.9-config... /opt/sw/bin/python3.9-config
checking for Python include flags... -I/opt/sw/include/python3.9 -I/opt/sw/include/python3.9
checking Python.h usability... yes
checking Python.h presence... yes
checking for Python.h... yes
checking for Numpy include directory... unknown
checking for numpy/arrayobject.h... no
configure: WARNING: disabling Python wrappers

@babayoshihiko there are configure flags to explicitly disable language bindings. Would be good to turn off to avoid opportunistic attempts:

  --without-guile         don't compile Guile plugin
  --without-python        don't compile Python plugin
  --without-octave        don't compile Octave plugin
  --without-matlab        don't compile Matlab plugin
cooljeanius commented 1 month ago

Plugins section of configure for me:

checking for guile-config... unknown
configure: WARNING: can't find guile-config, disabling Guile wrapper
checking for guile... unknown
configure: WARNING: can't find guile, disabling Guile wrapper
checking for python... /opt/sw/bin/python
checking for python version... 2.7
checking for python platform... darwin
checking for python script directory... ${prefix}/lib/python2.7/site-packages
checking for python extension module directory... ${exec_prefix}/lib/python2.7/site-packages
checking for python2.7-config... /opt/sw/bin/python2.7-config
checking for Python include flags... -I/opt/sw/include/python2.7 -I/opt/sw/include/python2.7
checking Python.h usability... yes
checking Python.h presence... yes
checking for Python.h... yes
checking for Numpy include directory... /opt/sw/lib/python2.7/site-packages/numpy/core/include
checking for numpy/arrayobject.h... yes
checking for mkoctfile... no
configure: WARNING: can't find mkoctfile: won't be able to compile GNU Octave plugin
checking for mex... mex
checking for extension of compiled mex files... configure: WARNING: mex failed to compile a simple file; won't compile Matlab plugin
cooljeanius commented 1 month ago

...btw, the mex being found is from texlive-base, not anything to do with Matlab:

$ /opt/sw/bin/dpkg -S /opt/sw/bin/mex
dpkg: serious warning: files list file for package `fink-buildlock-ccp4-6.5-1' missing, assuming package has no files currently installed.
texlive-base: /opt/sw/bin/mex
nieder commented 1 month ago

pushing workaround fix to turn off all wrappers until they're activated (if wanted) in a more deterministic manner.