Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7866217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:19:33+00:00 2026-06-03T00:19:33+00:00

I am building/using the python module for LAMMPS, which is the open source Molecular

  • 0

I am building/using the python module for LAMMPS, which is the open source Molecular Dynamics simulator (project home, source).

The python module works by compiling the C++ application as a library, and using CDLL/ctypes to call a C function interface. When you call the CDLL() function in python, the load fails if there are any missing symbols that the OS doesn’t find in the library itself, and can’t load from other available libraries.

The particular symbol I’m getting as missing is a C++ mangled name __ZN3MPI3Win14Set_errhandlerERKNS_10ErrhandlerE, which is probably MPI_Win_set_errhandler (or some namespaced/object oriented equivilent with a similar name). For context, I’ve compiled it using the python/setup_serial.py file, which should build with a dummy MPI interface, and shouldn’t reference any real MPI symbols at all; so this is a rogue reference that’s crept in somewhere. I’ve also made some modifications to the source, but I get the same error when I disable all my changes.

My question is, what is the best debugging strategy for finding out where a symbol is referenced in a dynamic library giving this sort of error? So far, I’ve tried searching the source for references to this symbol (or parts of the name,) but I’m not finding any instances (in fact, the only results are the binary files from the python build process, of the library I’m having trouble importing.)

My next step is to search inside the binary somehow, I guess, but I have no idea where to begin that (or some other strategy).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T00:19:36+00:00Added an answer on June 3, 2026 at 12:19 am

    c++filt is your friend

    $ c++filt __ZN3MPI3Win14Set_errhandlerERKNS_10ErrhandlerE
    MPI::Win::Set_errhandler(MPI::Errhandler const&)
    

    Now do a quick google search on that library
    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=512616

    Looks like there is a case where parts are upgraded but not recompiled. The second thing is to look at the link line for the complier and see what libraries it includes.

    Final last resort is to do something like:

    readelf -s /path/to/libfoo.so
    

    And start grepping around to see if it’s defined somewhere.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building a python module which will take the two numbers.Then it will
So, I'm building a GUI in Python using Tkinter which will be used to,
I'm building a centralized desktop application using Python/wxPython. One of the requirements is User
I am building an IRC bot using Python. I require the bot to be
I am building a tile based app in Python using pyglet/openGL wherein I'll need
I've recently begun working on a project regarding GUI building using some form of
In a project I work on we use a Python C module compiled from
My python program (Python 2.6) works fine when I run it using the Python
I am working on building an inverted index using Python. I am having some
I am using Python 3.2.2, and building a Tkinter interface to do some Active

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.