Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Python: Bugs

[issue14527] How to link with an external libffi?

 

 

Python bugs RSS feed   Index | Next | Previous | View Threaded


report at bugs

Apr 7, 2012, 7:25 PM

Post #1 of 5 (128 views)
Permalink
[issue14527] How to link with an external libffi?

New submission from Paul A. <pda [at] freeshell>:

I trying to build python using an external libffi package I have installed -- is there some trick in directing --with-system-ffi to the path where it's located. I don't see clues in config.log or anywhere to help.

----------
messages: 157776
nosy: pda
priority: normal
severity: normal
status: open
title: How to link with an external libffi?
type: enhancement
versions: Python 2.7

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14527>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Apr 7, 2012, 10:58 PM

Post #2 of 5 (122 views)
Permalink
[issue14527] How to link with an external libffi? [In reply to]

Ross Lagerwall <rosslagerwall [at] gmail> added the comment:

If it is in a non-standard location, try setting the environment variables:

LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir>
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir>

----------
nosy: +rosslagerwall

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14527>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Apr 8, 2012, 9:17 AM

Post #3 of 5 (118 views)
Permalink
[issue14527] How to link with an external libffi? [In reply to]

Paul A. <pda [at] freeshell> added the comment:

On Sun, Apr 08, 2012 at 05:58:29AM +0000, Ross Lagerwall wrote:
>
> Ross Lagerwall <rosslagerwall [at] gmail> added the comment:
>
> If it is in a non-standard location, try setting the environment variables:
>
> LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a nonstandard directory <lib dir>
> CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if you have headers in a nonstandard directory <include dir>

I'm pretty sure I've already been doing that, but I'll verify again soon
when I get the chance.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14527>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Apr 9, 2012, 7:52 PM

Post #4 of 5 (125 views)
Permalink
[issue14527] How to link with an external libffi? [In reply to]

Paul A. <pda [at] freeshell> added the comment:

Yes, I think my libffi setup is okay, but python apparently doesn't (according to the deeper-down log files I didn't initially know about). The following is a suspicious-looking snippet from build/temp.hp-ux-B.11.31-ia64-2.7/libffi/config.log... I have to question the usefulness of that linker error message. My immediate thought is that maybe conftstm.o is a 32-bit object file, but I don't see anything earlier in the log to indicate it was even created.

configure:6159: gcc463 -o conftest -I. -IInclude -I./Include -D_TERMIOS_INCLUDED -I/usr/local/lp64/include -mlp64 -L/usr/local/src/Python-2.7.2 -L/usr/local/lp64/lib conftest.c conftstm.o >&5
ld: Mismatched Data ABI. Expected EF_IA_64_ABI64 but found None in file conftstm.o
Fatal error.

----------
components: +ctypes

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14527>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com


report at bugs

Apr 10, 2012, 7:05 PM

Post #5 of 5 (120 views)
Permalink
[issue14527] How to link with an external libffi? [In reply to]

Paul A. <pda [at] freeshell> added the comment:

While this is no solution by any means, I think it'd be better for the scenario to be a fatal configure error. After all, if I say --with-system-ffi, it means I really, really want want to use my own libffi.

----------

_______________________________________
Python tracker <report [at] bugs>
<http://bugs.python.org/issue14527>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/list-python-bugs%40lists.gossamer-threads.com

Python bugs RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.