Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#39263 closed defect (fixed)

xraylib: configure fails

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: Tom.Schoonjans@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: haspatch Cc:
Port: xraylib

Description

xraylib fails to configure:

checking python extra linking flags... -u _PyMac_Error Python.framework/Versions/2.7/Python
checking consistency of all components of python development environment... no
configure: WARNING:
  Could not link test program to Python. Maybe the main Python library has been
  installed in some non-standard library path.
  ============================================================================
   ERROR!
   You probably have to install the development version of the Python package
   for your distribution.  The exact name of this package varies among them.
  ============================================================================
	   
configure: error: Incomplete python development package

The config.log says:

configure:17815: checking python extra linking flags
configure:17822: result: -u _PyMac_Error Python.framework/Versions/2.7/Python
configure:17829: checking consistency of all components of python development environment
configure:17855: /usr/bin/clang -o conftest -pipe -Os -arch x86_64 -arch i386 -I/opt/local/include -I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 -arch i386 conftest.c -lm -lm -lm -lm  -L/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib -lpython2.7 -u _PyMac_Error Python.framework/Versions/2.7/Python  -arch x86_64 -arch i386 -isysroot / -L/opt/local/lib -Wl,-headerpad_max_install_names -L/opt/local/lib/db46 -arch x86_64 -arch i386 -ldl  -framework CoreFoundation >&5
clang: error: no such file or directory: 'Python.framework/Versions/2.7/Python'
configure:17855: $? = 1

Attachments (6)

main.log (18.1 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.
config.log (42.8 KB) - added by ryandesign (Ryan Carsten Schmidt) 11 years ago.
configure.ac.diff (1.4 KB) - added by Tom.Schoonjans@… 11 years ago.
Delete all existing patchfiles please
Portfile.diff (5.6 KB) - added by Tom.Schoonjans@… 11 years ago.
python_xrlsetup.py.in.diff (754 bytes) - added by Tom.Schoonjans@… 11 years ago.
xraylib.i.diff (630 bytes) - added by Tom.Schoonjans@… 11 years ago.

Download all attachments as: .zip

Change History (12)

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: main.log added

Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Attachment: config.log added

comment:1 Changed 11 years ago by Tom.Schoonjans@…

Thanks for reporting this: this is related to #39223 xraylib will build again nicely when they fix this bug...

Tom

Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

My reading of #39223 says that it's not a Python bug; it's a bug in the software that's trying to use Python.

comment:3 Changed 11 years ago by Tom.Schoonjans@…

Ok then... looks like that autoconf macro I've been using all those years isn't working anymore...

I've updated the portfile and have created new patch files. I also noticed that xraylib wasn't compatible with lua 5.2, that's also fixed now. Variants for python33 and gcc48 were added as well, while g95 was removed.

Changed 11 years ago by Tom.Schoonjans@…

Attachment: configure.ac.diff added

Delete all existing patchfiles please

Changed 11 years ago by Tom.Schoonjans@…

Attachment: Portfile.diff added

Changed 11 years ago by Tom.Schoonjans@…

Attachment: python_xrlsetup.py.in.diff added

Changed 11 years ago by Tom.Schoonjans@…

Attachment: xraylib.i.diff added

comment:4 Changed 11 years ago by Tom.Schoonjans@…

Hey,

Can you check if these patches work? I'd really like this to be fixed since currently the port won't even build with the default variant... These new patches will replace all the existing ones.

Thanks,

Tom

comment:5 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: haspatch added
Resolution: fixed
Status: newclosed

Thanks. Committed in r106665 with the minor change of fixing the python33 variant to depend on python33 instead of python32.

comment:6 Changed 11 years ago by Tom.Schoonjans@…

Thanks!

Could you also have a look at my port submissions #38755 and #39255?

Thanks in advance,

Tom

Note: See TracTickets for help on using tickets.