Re: [Python-Dev] readline not getting built when .so symlink doesn't exist

Skip Montanaro <skip@pobox.com> writes:
Odd. What does the output of $ gcc -o foo foo.c -lreadline -ltermcap -Wl,--verbose look like? In particular the bit at the end where you get things like: attempt to open /usr/lib/gcc-lib/i386-redhat-linux/2.95.1/libreadline.so failed attempt to open /usr/lib/gcc-lib/i386-redhat-linux/2.95.1/libreadline.a failed attempt to open /usr/i386-redhat-linux/lib/libreadline.so failed attempt to open /usr/i386-redhat-linux/lib/libreadline.a failed attempt to open /usr/bin/../lib/libreadline.so succeeded -lreadline (/usr/bin/../lib/libreadline.so) (this is more for my personal curiosity than any important reason).
No :-)
Oh well, probably ought to drop it unless another Mandrake user complains.
Sounds reasonable. Cheers, M. -- After a heavy night I travelled on, my face toward home - the comma being by no means guaranteed. -- paraphrased from cam.misc

>> (This after deleting both /lib/libreadline.so and >> /lib/libhistory.so.) Michael> Odd. What does the output of Michael> $ gcc -o foo foo.c -lreadline -ltermcap -Wl,--verbose Michael> look like? Well, what it looks like is "Skip's a dunce...". Turns out there was a libreadline.so symlink /usr/lib also. It found that. When I deleted that it found /usr/lib/libreadline.a. Getting rid of that caused the link to (finally) fail. With just the version-based .so files cc apparently can't do the trick. Sorry to have wasted the bandwidth. Skip

>> (This after deleting both /lib/libreadline.so and >> /lib/libhistory.so.) Michael> Odd. What does the output of Michael> $ gcc -o foo foo.c -lreadline -ltermcap -Wl,--verbose Michael> look like? Well, what it looks like is "Skip's a dunce...". Turns out there was a libreadline.so symlink /usr/lib also. It found that. When I deleted that it found /usr/lib/libreadline.a. Getting rid of that caused the link to (finally) fail. With just the version-based .so files cc apparently can't do the trick. Sorry to have wasted the bandwidth. Skip
participants (2)
-
Michael Hudson
-
Skip Montanaro