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

python plugin fails on Mac OS X 10.7.2 #27

Closed
blysik opened this issue Feb 23, 2012 · 9 comments
Closed

python plugin fails on Mac OS X 10.7.2 #27

blysik opened this issue Feb 23, 2012 · 9 comments
Milestone

Comments

@blysik
Copy link

blysik commented Feb 23, 2012

From running configure:

checking for Python CPPFLAGS... /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
checking Python.h usability... yes
checking Python.h presence... yes
checking for Python.h... yes
checking for Python LDFLAGS... /System/Library/Frameworks/Python.framework/Versions/2.7/lib
checking for Python LIBS... failed with status 0 (output: )

@octo
Copy link
Member

octo commented Sep 11, 2012

Hi,

can you please provide the config.log file that is generated by ./configure? Thanks!

—octo

@ChrisLundquist
Copy link
Contributor

I can reproduce on master at bd84c0f

System: OSX 10.8.2 Macbook pro 2012 retina 15 inch

config.log snippet below

26457 configure:23013: checking for pthread.h
26458 configure:23013: result: yes
26459 configure:23085: checking for python
26460 configure:23094: result: /usr/bin/python
26461 configure:23101: checking for Python CPPFLAGS
26462 configure:23112: result: /System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
26463 configure:23122: checking Python.h usability
26464 configure:23122: gcc -c -g -O2 -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7  conftest.c >&5
26465 configure:23122: $? = 0
26466 configure:23122: result: yes
26467 configure:23122: checking Python.h presence
26468 configure:23122: gcc -E -I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7  conftest.c
26469 configure:23122: $? = 0
26470 configure:23122: result: yes
26471 configure:23122: checking for Python.h
26472 configure:23122: result: yes
26473 configure:23138: checking for Python LDFLAGS
26474 configure:23149: result: /System/Library/Frameworks/Python.framework/Versions/2.7/lib
26475 configure:23156: checking for Python LIBS
26476 configure:23163: result: failed with status 0 (output: )
26477 configure:23232: checking amqp.h usability

@ChrisLundquist
Copy link
Contributor

For what it is worth, the thing is empty.

>>> distutils.sysconfig.get_config_vars("BLDLIBRARY")
['']
>>> distutils.sysconfig.get_config_vars("BLDLIBRARY").__getitem__(0)
''

@zbal
Copy link

zbal commented Jun 4, 2013

Same thing here with v5.3.0 - has any workaround been found ?

@stpierre
Copy link

stpierre commented Aug 4, 2014

Still hitting this with 5.4.1 on Mac OS 10.9.4. Still no progress on this?

@jbergstroem
Copy link
Contributor

So, this check runs empty for you? (essentially what configure looks for)

>>> import distutils.sysconfig
>>> distutils.sysconfig.get_config_vars("LIBDIR").__getitem__(0)
'/System/Library/Frameworks/Python.framework/Versions/2.7/lib'

Above is from Mavericks 10.9.4.

@stpierre
Copy link

stpierre commented Aug 5, 2014

That check works, it's the next one (https://github.com/collectd/collectd/blob/master/configure.ac#L3477) that fails, as @ChrisLundquist noted. I.e.:

>>> import distutils.sysconfig
>>> distutils.sysconfig.get_config_vars("BLDLIBRARY").__getitem__(0)
''

@jbergstroem
Copy link
Contributor

Ah shit, sorry. That's correct. Some python m4's seems to do some quirky stuff for os x. Hopefully one could avoid that..

@rubenk
Copy link
Contributor

rubenk commented Dec 11, 2016

Fixed by f0735d2

@rubenk rubenk closed this as completed Dec 11, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants