Bugs item #1676121, was opened at 2007-03-07 17:07
Message generated for change (Comment added) made by belopolsky
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1676121&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Alexander Belopolsky (belopolsky)
Assigned to: Nobody/Anonymous (nobody)
Summary: Problem linking to readline lib on x86(64) Solaris

Initial Comment:
Configuring with 

./configure --with-gcc="gcc -m64 -L/usr/sfw/lib/64 -R/usr/sfw/lib/64" 

where 64bit libreadline is found in /usr/sfw/lib/64, configure script fails to 
realize that readline lib is present.

I was able to fix the problem by editing config script manually as follows:

$ diff configure~ configure
20744c20744
< if test "$ac_cv_have_readline_readline" = no
---
> if test "$ac_cv_lib_readline_readline" = no
20747c20747
< echo "$as_me:$LINENO: checking for readline in -ltermcap" >&5
---
> echo "$as_me:$LINENO: checking for readline in -lreadline -ltermcap" >&5
20753c20753
< LIBS="-ltermcap  $LIBS"
---
> LIBS="-lreadline -ltermcap  $LIBS"


A proper fix would be to change configure.in, but I don't know enough about 
autoconf to submit a proper patch.

----------------------------------------------------------------------

>Comment By: Alexander Belopolsky (belopolsky)
Date: 2007-03-08 17:25

Message:
Logged In: YES 
user_id=835142
Originator: YES

Can you explain how to edit Module/Setup to solve this problem?

Note that the problem that I see comes before modules are built. In fact
it comes even before make.

In any case, I think the check for $ac_cv_have_readline_readline" = no
instead of "$ac_cv_lib_readline_readline" = no looks like a typo in
configure.in.  And looking for readline in libtermcap does not look like
sound logic either.

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2007-03-08 17:18

Message:
Logged In: YES 
user_id=21627
Originator: NO

The right solution in this case is to edit Modules/Setup

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1676121&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to