bash 4.3 - undefined reference to `_sigsetjmp'

Thomas Plank tplank@gmx.at
Tue Sep 30 12:24:00 GMT 2014


I am trying to compile bash 4.3 on cygwin32.
I applied all available patches (up to 27) but in the end I'm getting an 
undefined reference error:

       ***********************************************************
       *                                                         *
       * GNU bash, version 4.3.27(1)-release (i686-pc-cygwin)
       *                                                         *
       ***********************************************************

rm -f bash.exe
gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob 
-L./lib/tilde  -L./lib/sh    -g -O2 -o bash.exe 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  -lintl -liconv  -ldl
shell.o: In function `run_one_command':
/cygdrive/f/sourcen/bash-4.3/shell.c:1318: undefined reference to `_sigsetjmp'
shell.o: In function `main':
/cygdrive/f/sourcen/bash-4.3/shell.c:384: undefined reference to `_sigsetjmp'
/cygdrive/f/sourcen/bash-4.3/shell.c:450: undefined reference to `_sigsetjmp'
eval.o: In function `reader_loop':
/cygdrive/f/sourcen/bash-4.3/eval.c:82: undefined reference to `_sigsetjmp'
execute_cmd.o: In function `execute_in_subshell':
/cygdrive/f/sourcen/bash-4.3/execute_cmd.c:1555: undefined reference to 
`_sigsetjmp'
execute_cmd.o:/cygdrive/f/sourcen/bash-4.3/execute_cmd.c:1561: more 
undefined references to `_sigsetjmp' follow
./lib/readline/libreadline.a(util.o): In function `_rl_abort_internal':
/cygdrive/f/sourcen/bash-4.3/lib/readline/util.c:112: undefined reference 
to `_siglongjmp'
./lib/readline/libreadline.a(callback.o): In function `rl_callback_read_char':
/cygdrive/f/sourcen/bash-4.3/lib/readline/callback.c:129: undefined 
reference to `_sigsetjmp'
collect2: error: ld returned 1 exit status
Makefile:553: recipe for target 'bash.exe' failed
make: *** [bash.exe] Error 1

Are there any patches to enable compilation on cygwin?
Thanks in advance,
Thomas


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple



More information about the Cygwin mailing list