linking readline

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

linking readline

Brad Watson
Not sure if I configured gst 2.2a improperly, but when
I ran ./configure --with-readline=/lib and attempted
to build gst (after I realized I needed the
libreadline dev files and installed them,) it couldn't
resolve the libreadline functions during linking.
When I hardcode -lreadline as one of the values to the
LIBS variable in the top-level Makefile, it compiled
successfully.

Regards,



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com 


_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk
Reply | Threaded
Open this post in threaded view
|

Re: linking readline

Bram Neijt
I don't have that problem and I can't understand what the problem should be.
Make sure you run configure after installing the readline development
files, maybe?

Just to keep this from being a useless mail, the following worked for me:

tla my-id 'yourname <your email address>' # if first-time tla user
tla register-archive [hidden email]
http://arch.sv.gnu.org/archives/smalltalk
tla get -A [hidden email] smalltalk--devo--2.2
find -type d -name autom4te.cache -print0 | xargs -0 rm -rf \;
find -type f \( -name missing -o -name install-sh -o -name mkinstalldirs \
        -o -name depcomp -o -name ltmain.sh -o -name configure \
        -o -name config.sub -o -name config.guess \
        -o -name Makefile.in \) -print0 | xargs -0 rm -f
autoreconf --force --install
./configure
make
ldd gst
#Should now mention something like:
#        linux-gate.so.1 =>  (0xffffe000)
#        libdl.so.2 => /lib/tls/i686/cmov/libdl.so.2 (0xb7f7b000)
#        libreadline.so.5 => /lib/libreadline.so.5 (0xb7f4c000)
#        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7e1b000)
#        libnsl.so.1 => /lib/tls/i686/cmov/libnsl.so.1 (0xb7e05000)
#        libm.so.6 => /lib/tls/i686/cmov/libm.so.6 (0xb7de0000)
#        /lib/ld-linux.so.2 (0xb7f9f000)
#        libncurses.so.5 => /lib/libncurses.so.5 (0xb7d9d000)


Which shows it linked to readline.

Hope this helpes. If you think there are more problems, just send
another mail :-)

Greets,
  Bram
PS I've included a simple autogen.sh script I found on my system.


On 10/3/06, Brad Watson <[hidden email]> wrote:
> Not sure if I configured gst 2.2a improperly, but when
> I ran ./configure --with-readline=/lib and attempted
> to build gst (after I realized I needed the
> libreadline dev files and installed them,) it couldn't
> resolve the libreadline functions during linking.
> When I hardcode -lreadline as one of the values to the
> LIBS variable in the top-level Makefile, it compiled
> successfully.

_______________________________________________
help-smalltalk mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

autogen.sh (2K) Download Attachment