* Re: Problem with python extension install
@ 2005-07-18 19:00 John Whitley
0 siblings, 0 replies; 3+ messages in thread
From: John Whitley @ 2005-07-18 19:00 UTC (permalink / raw)
To: Jason Tishler; +Cc: cygwin
Jason Tishler wrote:
> Actually, the link line is missing:
>
> -L/usr/lib/python2.4/config
>
Thanks for the correction.. I figured that out a few minutes after I
sent my last email. 8-)
> Does ZopeInterface use Distutils? If so, then the above link option
> should be automatically added under Cygwin.
It does use distutils, and that's why I was confused. I further
noted that other packages (e.g., Twisted-2.0.1) had the same problem
-- the distutils generated linker path is appearing as "-L.", causing
any extension builds to break. By manually replacing "-L." with "-L/
usr/lib/python2.4/config" in the link lines I was able to get these
packages built.
This suggests a problem with distutils, but that's as far as I've had
time to investigate.
Thanks,
John
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Problem with python extension install
2005-07-15 18:22 John Whitley
@ 2005-07-18 12:22 ` Jason Tishler
0 siblings, 0 replies; 3+ messages in thread
From: Jason Tishler @ 2005-07-18 12:22 UTC (permalink / raw)
To: cygwin
John,
On Fri, Jul 15, 2005 at 11:22:07AM -0700, John Whitley wrote:
> I'm running into an odd problem attempting to install the
> ZopeInterface package on Cygwin.
>
> The relevant part of the build output is below. The failure "cannot
> find -lpython2.4" appears to be merely because the link path (-L
> option) isn't being set correctly; the link line is missing the "-L/
> usr/lib/python2.4" option.
Actually, the link line is missing:
-L/usr/lib/python2.4/config
Does ZopeInterface use Distutils? If so, then the above link option
should be automatically added under Cygwin. If not, then you will have
to make the build Cygwin-aware.
Jason
--
PGP/GPG Key: http://www.tishler.net/jason/pubkey.asc or key servers
Fingerprint: 7A73 1405 7F2B E669 C19D 8784 1AFD E4CC ECF4 8EF6
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Problem with python extension install
@ 2005-07-15 18:22 John Whitley
2005-07-18 12:22 ` Jason Tishler
0 siblings, 1 reply; 3+ messages in thread
From: John Whitley @ 2005-07-15 18:22 UTC (permalink / raw)
To: cygwin
Hi all,
I'm running into an odd problem attempting to install the
ZopeInterface package on Cygwin.
The relevant part of the build output is below. The failure "cannot
find -lpython2.4" appears to be merely because the link path (-L
option) isn't being set correctly; the link line is missing the "-L/
usr/lib/python2.4" option.
I'm posting here in case any Cygwin-using Python experts can pass
along pointers on triaging (or solving ;-) this problem.
Thanks!
John Whitley
P.S. Thanks to folks who responded to my recent rebaseall question.
Alas, Google didn't bring up any of the recent
discussion threads on that topic; my bad.
building 'zope.interface._zope_interface_coptimizations' extension
[...]
creating build/temp.cygwin-1.5.18-i686-2.4/Dependencies/
zope.interface-ZopeInterface-3.1.0b1/zope.interface
gcc -fno-strict-aliasing -DNDEBUG -g -O3 -Wall -Wstrict-prototypes -
IDependencies/zope.interface-ZopeInterface-3.1.0b1/zope.interface -I/
usr/include/python2.4 -c Dependencies/zope.interface-
ZopeInterface-3.1.0b1/zope.interface/_zope_interface_coptimizations.c
-o build/temp.cygwin-1.5.18-i686-2.4/Dependencies/zope.interface-
ZopeInterface-3.1.0b1/zope.interface/_zope_interface_coptimizations.o
gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.5.18-
i686-2.4/Dependencies/zope.interface-ZopeInterface-3.1.0b1/
zope.interface/_zope_interface_coptimizations.o -L. -lpython2.4 -o
build/lib.cygwin-1.5.18-i686-2.4/zope/interface/
_zope_interface_coptimizations.dll
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
cannot find -lpython2.4
collect2: ld returned 1 exit status
error: command 'gcc' failed with exit status 1
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-07-18 19:00 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-18 19:00 Problem with python extension install John Whitley
-- strict thread matches above, loose matches on Subject: below --
2005-07-15 18:22 John Whitley
2005-07-18 12:22 ` Jason Tishler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).