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

libexpat and libcurl not getting linked on macOS #17

Closed
ilovezfs opened this issue Nov 26, 2016 · 1 comment
Closed

libexpat and libcurl not getting linked on macOS #17

ilovezfs opened this issue Nov 26, 2016 · 1 comment

Comments

@ilovezfs
Copy link

Despite configure claiming it has found libexpat and libcurl, they don't end up actually linked to libafflib unless I manually add -L/usr/lib -lcurl -lexpat to LDFLAGS.

When libafflib is not linked to libexpat, you get the error

ImportError: dlopen(/usr/local/Cellar/afflib/3.7.11/lib/python2.7/site-packages/pyaff.so, 2): Symbol not found: _XML_ErrorString
  Referenced from: /usr/local/Cellar/afflib/3.7.11/lib/libafflib.0.dylib
  Expected in: flat namespace
 in /usr/local/Cellar/afflib/3.7.11/lib/libafflib.0.dylib

When libafflib is not linked to libcurl, you get the error

>>> import pyaff
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: dlopen(/usr/local/lib/python2.7/site-packages/pyaff.so, 2): Symbol not found: _curl_easy_cleanup
  Referenced from: /usr/local/Cellar/afflib/3.7.11/lib/libafflib.0.dylib
  Expected in: flat namespace
 in /usr/local/Cellar/afflib/3.7.11/lib/libafflib.0.dylib
@sshock
Copy link
Owner

sshock commented Nov 26, 2016

Fixed in e4d553e (merge pull request #18).

@sshock sshock closed this as completed Nov 26, 2016
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