bash 4.0 build error (Mac OS X)

2009-02-28 Thread Marius Schamschula

Hi,

I just tried building bash 4.0 under Mac OS X. Under 10.3.9, 10.4.11  
and 10.5.6 I get the following error:


./lib/sh/libsh.a(getenv.o) definition of _setenv in section  
(__TEXT,__text)
/usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libc.dylib(setenv.So)  
definition of _setenv

/usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
_rl_menu_completion_entry_function
_rl_completion_invoking_key
collect2: ld returned 1 exit status
make: *** [bash] Error 1


Marius
--
Marius Schamschula
Webmaster

The Huntsville Macintosh Users Group
www.hmug.org

webmaster at hmug dot org
marius at schamschula dot com





Re: bash 4.0 build error (Mac OS X)

2009-02-28 Thread Chet Ramey
Marius Schamschula wrote:
 Hi,
 
 I just tried building bash 4.0 under Mac OS X. Under 10.3.9, 10.4.11 and
 10.5.6 I get the following error:
 
 ./lib/sh/libsh.a(getenv.o) definition of _setenv in section (__TEXT,__text)
 /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libc.dylib(setenv.So)
 definition of _setenv
 /usr/libexec/gcc/i686-apple-darwin8/4.0.1/ld: Undefined symbols:
 _rl_menu_completion_entry_function
 _rl_completion_invoking_key
 collect2: ld returned 1 exit status
 make: *** [bash] Error 1

I can't reproduce this.  Since I do my development on Mac OS X, I would
have noticed these. :-)

The setenv error looks like a problem with configure; the undefined symbols
look like you built bash-4.0 against a version of readline earlier than
readline-6.0.

Look at the config.log and config.status files for more information.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer

Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/