bug-wget
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] Please review my patch for bug #29518


From: Leonard Ehrenfried
Subject: Re: [Bug-wget] Please review my patch for bug #29518
Date: Sat, 29 Jan 2011 18:02:59 +0100

>
> I believe you need to go into the gnulib/ subdirectory and run something
> like
>
>  ./gnulib-tool --add-import readline
>

Thanks for the tip. I have done that and run ./configure again but gcc seems
to be unable to use the _readline symbol.

gcc  -O2 -Wall   -o wget cmpt.o connect.o convert.o cookies.o ftp.o css.o
css-url.o ftp-basic.o ftp-ls.o hash.o host.o html-parse.o html-url.o http.o
init.o log.o main.o netrc.o progress.o ptimer.o recur.o res.o retr.o
spider.o url.o utils.o exits.o build_info.o  version.o ftp-opie.o
../lib/libgnu.a
Undefined symbols:
  "_readline", referenced from:
      _retrieve_from_file in retr.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

However, I have libreadline.dylib installed in /usr/lib (comes with OSX) and
can see the symbol in the symbol table:

$ nm /usr/lib/libreadline.dylib | grep readline
000000000000a8a8 T _readline
000000000001eae0 D _readline_echoing_p
000000000001e9c0 D _rl_readline_name
000000000001ea18 D _rl_readline_version

Where is make looking for the shared libraries? Do I need to set an
environment variable?

Thanks for your help.
Lenni


reply via email to

[Prev in Thread] Current Thread [Next in Thread]