Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime error 'Symbol not found' in Maverick OS X and Xcode 5.1.1. env #25

Closed
samoylv opened this issue Sep 9, 2014 · 10 comments
Closed
Milestone

Comments

@samoylv
Copy link
Owner

samoylv commented Sep 9, 2014

ImportError                               Traceback (most recent call last)
<ipython-input-2-653513cfd42a> in <module>()
     12 
     13 #import SRW core functions
---> 14 from wpg.srwlib import srwl,SRWLOptD,SRWLOptA,SRWLOptC,SRWLOptT,SRWLOptL,SRWLOptMirEl
     15 
     16 #import SRW helpers functions

/Users/lsamoylv/code/WPG.new/WPG/wpg/__init__.py in <module>()
     13 #This deprecate warnings form SRWLib visualization module
     14 warnings.filterwarnings("ignore")
---> 15 import srwlib
     16 warnings.resetwarnings()
     17 

/Users/lsamoylv/code/WPG.new/WPG/wpg/srwlib.py in <module>()
      4 
      5 from __future__ import print_function #Python 2.7 compatibility
----> 6 import srwlpy as srwl
      7 from array import *
      8 from math import *

ImportError: dlopen(../../wpg/srwlpy.so, 2): Symbol not found: __ZNSs4_Rep20_S_empty_rep_storageE
  Referenced from: ../../wpg/srwlpy.so
  Expected in: flat namespace
 in ../../wpg/srwlpy.so
@buzmakov
Copy link
Collaborator

I don't have access to ant OS X machine.
I can't resolve it remotly

@buzmakov
Copy link
Collaborator

Please have a look on linked libraries of wpg/srwlpy.so
I'm not sure but try

otool -L wpg/srwlpy.so

@samoylv
Copy link
Owner Author

samoylv commented Sep 10, 2014

otool -L wpg/srwlpy.so
wpg/srwlpy.so:
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current
version 1197.1.1)
/usr/lib/libc++.1.dylib (compatibility version 1.0.0, current version
120.0.0)

On Wed, Sep 10, 2014 at 12:15 PM, Alexey Buzmakov notifications@github.com
wrote:

Please have a look on linked libraries of wpg/srwlpy.so
I'm not sure but try

otool -L wpg/srwlpy.so

Reply to this email directly or view it on GitHub
#25 (comment).

@buzmakov
Copy link
Collaborator

No, I don't understand may be you should libc instead libc++ ?

@samoylv
Copy link
Owner Author

samoylv commented Sep 10, 2014

Just a bug, to fix it. I will ask Bukhard as well

On Wed, Sep 10, 2014 at 10:45 AM, Alexey Buzmakov notifications@github.com
wrote:

I don't have access to ant OS X machine.
I can't resolve it remotly

Reply to this email directly or view it on GitHub
#25 (comment).

@samoylv
Copy link
Owner Author

samoylv commented Sep 10, 2014

http://stackoverflow.com/questions/19637164/c-linking-error-after-upgrading-to-mac-os-x-10-9-xcode-5-0-1

I think it is something with this issue

On Wed, Sep 10, 2014 at 12:22 PM, Alexey Buzmakov notifications@github.com
wrote:

No, I don't understand may be you should libc instead libc++ ?

Reply to this email directly or view it on GitHub
#25 (comment).

@buzmakov
Copy link
Collaborator

buzmakov commented Oct 8, 2014

May be a hint to solve your problem:
srwlpy.so should be linked with python library /System/Library/Frameworks/Python.framework/Versions/2.7/Python , but your library not linked to it.

The similar issue to SRW ochubar/SRW#4

@samoylv
Copy link
Owner Author

samoylv commented Oct 8, 2014

I saw the notification, yes, it could be one of them. But runtime errors
are different, I have name conflict

On Wed, Oct 8, 2014 at 3:48 PM, Alexey Buzmakov notifications@github.com
wrote:

May be a hint to solve your problem:
srwlpy.so should be linked with python library
/System/Library/Frameworks/Python.framework/Versions/2.7/Python , but your
library not linked to it.

The similar issue to SRW ochubar/SRW#4
ochubar/SRW#4

Reply to this email directly or view it on GitHub
#25 (comment).

@samoylv samoylv modified the milestone: 1411 Oct 31, 2014
@buzmakov buzmakov added the 4M label Nov 12, 2014
@samoylv
Copy link
Owner Author

samoylv commented Dec 5, 2014

for clarification which compiler used where:

logs here: https://github.com/samoylv/WPG/wiki/Installation-logs

stdlibc++ (i.e. GNU's C++ std library) vs Mac OS X Mavericks + Xcode 5 build against libc++ (i.e. LLVM's C++ std ibrary)

but

Python 2.7.8 (default, Oct 3 2014, 02:34:26)
[GCC 4.2.1 Compatible Apple LLVM 5.1 (clang-503.0.40)] on darwin -

@samoylv samoylv modified the milestones: 1510, 1411 Sep 11, 2015
@samoylv
Copy link
Owner Author

samoylv commented Sep 14, 2015

see issue #27

@samoylv samoylv closed this as completed Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants