Changes between Initial Version and Version 1 of Ticket #55569


Ignore:
Timestamp:
Dec 22, 2017, 9:50:55 AM (7 years ago)
Author:
ryandesign (Ryan Carsten Schmidt)
Comment:

For future reference, into the Cc field, you should place the maintainer's email address or GitHub handle. You can find this information by running the command port info --maintainers [portname]. Don't literally paste that command into the Cc field. Also, remember to use WikiFormatting when writing in Trac.

Since the unknown symbol was referenced from a sundials2 library, I think this is probably a bug in the sundials2 port rather than the cantera port. The cantera source code does not contain the string klu_solve but the sundials2 source code does.

I don't know if it has any bearing on the problem, but I'm suspicious of the use of the flat namespace, which has not been recommended for over a decade. I don't yet see where in the build system the flat namespace is being requested.

I notice that the sundials libraries are being built with -undefined dynamic_lookup, which means that if there are any undefined symbols at build time, it doesn't complain about them, assuming that they will exist at runtime; in the case of klu_solve at least, that's apparently not happening. If I remove that flag from the build, then the build fails with undefined symbols errors, not unsurprisingly.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #55569

    • Property Cc seanfarley added; port info --maintainers cantera-devel removed
    • Property Keywords cantera klu_solve python27 removed
    • Property Summary changed from cantera klu_solve missing symbol to sundials2 @2.7.0: Symbol not found: _klu_solve
    • Property Port sundials2 added; cantera removed
  • Ticket #55569 – Description

    initial v1  
    11cantera fails upon importing to python27 with the following message
    22
    3 ***********
     3{{{
    44>>> import cantera as ct
    55Traceback (most recent call last):
     
    1111  Expected in: flat namespace
    1212 in /opt/local/lib/libsundials_cvodes.2.dylib
    13 ***********
     13}}}