Source: bash
Version: 4.1-3
Severity: serious

From my build log:

...
make[3]: Leaving directory 
`/home/lfs/src/debian/bash/bash-4.1/build-static/lib/tilde'
rm -f bash
gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob -L./lib/tilde  
-L./lib/sh -static -static -rdynamic  -g -O2 -Wall -o bash shell.o eval.o 
y.tab.o general.o make_cmd.o print_cmd.o  dispose_cmd.o execute_cmd.o 
variables.o 
copy_cmd.o error.o expr.o flags.o jobs.o subst.o hashcmd.o hashlib.o 
mailcheck.o trap.o input.o unwind_prot.o pathexp.o sig.o test.o version.o 
alias.o array.o arrayfunc.o assoc.o braces.o bracecomp.o bashhist.o bashline.o  
list.o stringlib.o locale.o findcmd.o redir.o pcomplete.o pcomplib.o syntax.o 
xmalloc.o  -lbuiltins -lglob -lsh -lreadline -lhistory -lcurses -ltilde     
bashline.o: In function `bash_groupname_completion_function':
/home/lfs/src/debian/bash/bash-4.1/build-static/../bash/bashline.c:2122: 
warning: Using 'getgrent' in statically linked applications requires at runtime 
the shared libraries from the glibc version used for linking
/home/lfs/src/debian/bash/bash-4.1/build-static/../bash/bashline.c:2119: 
warning: Using 'setgrent' in statically linked applications requires at runtime 
the shared libraries from the glibc version used for linking
/home/lfs/src/debian/bash/bash-4.1/build-static/../bash/bashline.c:2130: 
warning: Using 'endgrent' in statically linked applications requires at runtime 
the shared libraries from the glibc version used for linking
./lib/readline/libreadline.a(complete.o): In function 
`rl_username_completion_function':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/complete.c:1977:
 warning: Using 'getpwent' in statically linked applications requires at 
runtime the shared libraries from the glibc version 
used for linking
./lib/readline/libreadline.a(tilde.o): In function `tilde_expand_word':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/tilde.c:390:
 warning: Using 'getpwnam' in statically linked applications requires at 
runtime the shared libraries from the glibc version used for 
linking
shell.o: In function `get_current_user_info':
/home/lfs/src/debian/bash/bash-4.1/build-static/../bash/shell.c:1640: warning: 
Using 'getpwuid' in statically linked applications requires at runtime the 
shared libraries from the glibc version used for linking
./lib/readline/libreadline.a(complete.o): In function 
`rl_username_completion_function':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/complete.c:1973:
 warning: Using 'setpwent' in statically linked applications requires at 
runtime the shared libraries from the glibc version 
used for linking
shell.o: In function `get_current_user_info':
/home/lfs/src/debian/bash/bash-4.1/build-static/../bash/shell.c:1656: warning: 
Using 'endpwent' in statically linked applications requires at runtime the 
shared libraries from the glibc version used for linking
./lib/sh/libsh.a(netopen.o): In function `_netopen6':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/sh/../../../bash/lib/sh/netopen.c:229:
 warning: Using 'getaddrinfo' in statically linked applications requires at 
runtime the shared libraries from the glibc version used for 
linking
bashline.o: In function `bash_servicename_completion_function':
/home/lfs/src/debian/bash/bash-4.1/build-static/../bash/bashline.c:2066: 
warning: Using 'getservent' in statically linked applications requires at 
runtime the shared libraries from the glibc version used for linking
/home/lfs/src/debian/bash/bash-4.1/build-static/../bash/bashline.c:2063: 
warning: Using 'setservent' in statically linked applications requires at 
runtime the shared libraries from the glibc version used for linking
/home/lfs/src/debian/bash/bash-4.1/build-static/../bash/bashline.c:2088: 
warning: Using 'endservent' in statically linked applications requires at 
runtime the shared libraries from the glibc version used for linking
bashline.o: In function `bash_execute_unix_command':
bashline.c:(.text+0x380c): undefined reference to `tputs'
./lib/readline/libreadline.a(display.o): In function `cr':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:2465:
 undefined reference to `tputs'
./lib/readline/libreadline.a(display.o): In function `_rl_move_cursor_relative':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:1981:
 undefined reference to `tputs'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:2010:
 undefined reference to `tputs'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:2014:
 undefined reference to `tputs'
./lib/readline/libreadline.a(display.o):/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:2053:
 more undefined references to `tputs' follow
./lib/readline/libreadline.a(display.o): In function `insert_some_chars':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:2369:
 undefined reference to `tgoto'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:2370:
 undefined reference to `tputs'
./lib/readline/libreadline.a(display.o): In function `delete_chars':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:2419:
 undefined reference to `tputs'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:2412:
 undefined reference to `tgoto'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:2413:
 undefined reference to `tputs'
./lib/readline/libreadline.a(display.o): In function `insert_some_chars':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:2386:
 undefined reference to `tputs'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:2395:
 undefined reference to `tputs'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:2379:
 undefined reference to `tputs'
./lib/readline/libreadline.a(display.o): In function `rl_redisplay':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:1083:
 undefined reference to `tputs'
./lib/readline/libreadline.a(display.o):/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/display.c:2514:
 more undefined references to `tputs' follow
./lib/readline/libreadline.a(terminal.o): In function `_rl_get_screen_size':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:285:
 undefined reference to `tgetnum'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:269:
 undefined reference to `tgetnum'
./lib/readline/libreadline.a(terminal.o): In function `_rl_init_terminal_io':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:498:
 undefined reference to `PC'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:499:
 undefined reference to `BC'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:500:
 undefined reference to `UP'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:452:
 undefined reference to `tgetent'
./lib/readline/libreadline.a(terminal.o): In function `get_term_capabilities':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:415:
 undefined reference to `tgetstr'
./lib/readline/libreadline.a(terminal.o): In function `_rl_init_terminal_io':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:509:
 undefined reference to `PC'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:510:
 undefined reference to `BC'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:511:
 undefined reference to `UP'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:516:
 undefined reference to `tgetflag'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:531:
 undefined reference to `tgetflag'
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:516:
 undefined reference to `tgetflag'
./lib/readline/libreadline.a(terminal.o): In function `_rl_backspace':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:633:
 undefined reference to `tputs'
./lib/readline/libreadline.a(terminal.o): In function `rl_ding':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:666:
 undefined reference to `tputs'
./lib/readline/libreadline.a(terminal.o): In function `_rl_enable_meta_key':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:691:
 undefined reference to `tputs'
./lib/readline/libreadline.a(terminal.o): In function `_rl_control_keypad':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:703:
 undefined reference to `tputs'
./lib/readline/libreadline.a(terminal.o): In function `_rl_set_cursor':
/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:728:
 undefined reference to `tputs'
./lib/readline/libreadline.a(terminal.o):/home/lfs/src/debian/bash/bash-4.1/build-static/lib/readline/../../../bash/lib/readline/terminal.c:726:
 more undefined references to `tputs' follow
collect2: ld returned 1 exit status
make[2]: *** [bash] Error 1
make[2]: Leaving directory `/home/lfs/src/debian/bash/bash-4.1/build-static'
make[1]: *** [stamps/stamp-build-static] Error 2
make[1]: Leaving directory `/home/lfs/src/debian/bash/bash-4.1'
make: *** [static-build] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2

It looks like the problem is that those symbols are now in libtinfo.a and not
in libncurses.a.  At least, if I hand edit the static build's Makefile and
change "-lcurses" to "-ltinfo", then it links for me.
-- 
Daniel Schepler



--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to