delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/02/21/21:06:38

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <B1F282D5B226D411B8B900E08110486F01E856E4@sweetness.idrive.com>
From: David Peterson <David DOT Peterson AT mail DOT idrive DOT com>
To: cygwin AT cygwin DOT com
Subject: python 2.0, cygwin & readline - undefined symbols
Date: Wed, 21 Feb 2001 17:45:06 -0800
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2650.21)

Hello,

I'm trying to get python 2.0 to compile under the latest cygwin/readline
combo, but am getting unexplainable (to me at least) linker errors.

I uncommented the line in python's Modules/Setup file to add the readline
module and get the following when trying to build:

gcc   python.o \
          ../libpython2.0.a -lreadline -ltermcap
-lm  -o python.exe 
../libpython2.0.a(readline.o)(.text+0x949): undefined reference to
`rl_event_hook'


If I look at /usr/lib/libreadline.a (or /usr/lib/libreadline.dll.a) I see
the following:

[/usr/lib]$ nm libreadline.a | grep rl_event_hook
00000000 D _rl_event_hook


I tried commenting out the line in the python module that referenced
rl_event_hook, but then got a bunch of other linker errors. nm said all the
symbols were of type 'D' (in the initialized data section) when I looked at
the library.

Any idea what's up?

Python builds and runs fine without the readline module so I don't think its
anything with cygwin in general. All I did was the standard ./configure
--with-suffix=.exe; make; make install. The trouble only appeared when I
tried to turn on the readline stuff.

-dave.

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019