From: Roger L. <rl...@yo...> - 2001-01-19 19:47:49
|
On Fri, Jan 19, 2001 at 10:52:55AM -0500, Mike Porter wrote: > Hi, > > Readline support for escputil appears to need -ltermcap as well. > At least on redhat 7.0 (used to compile and link fine on RedHat > 6.2). Hi Mike, (Sorry, my reply to you should have been CC'd to the list) IMHO if it needs -ltermcap it's broken, as this should be linked automatically. Is this a common problem? Does anyone with RH 7.0 have the same problem? > Anyway, here's a patch that should fix this. I no longer have a > RedHat 6.2 system, so this should be checked on a system that does > not require -ltermcap in order to use readline. [snip patch] The problem is that readline could depend on different things depending on how it was built. You _should_ normally be able to link with just -lreadline and the dependencies are taken care of. How are we to determine if a particular build needs any extra libraries? It varies from system to system. What works for you will not work for others with different distributions and custom builds. E.g. this is how my libreadline is linked: roger@whinlatter:~/gimp-print/current$ ldd /lib/libreadline.so.4 libncurses.so.5 => /lib/libncurses.so.5 (0x4002c000) libc.so.6 => /lib/libc.so.6 (0x4006a000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x80000000) Regards, Roger -- Roger Leigh ** Registration Number: 151826, http://counter.li.org ** Need Epson Stylus Utilities? http://gimp-print.sourceforge.net/ For GPG Public Key: finger rl...@to... or see public keyservers. |