Message-ID: <3523E1D9.7543@CGSTE.MQ> Date: Thu, 02 Apr 1998 13:07:05 -0600 From: HANRIGOU Philippe Reply-To: HANRIGOU AT cgste DOT mq Organization: CONSEIL GENERAL DE LA MARTINIQUE / DGA2 MIME-Version: 1.0 To: Martin DOT Stromberg AT lu DOT erisoft DOT se CC: djgpp AT delorie DOT com Subject: Re: Problem with bash Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Precedence: bulk Hi Martin, All your Advice and your diff's have been a great help and have solved most of my problems. Now, I am quite near to succeed in compiling bash. Nevertheless I still have a problem (last one I hope) on linking time: some undefined references: __libc_termios_enable_function_and_arrow_keys and __libc_termios_check_signals ------------- output of my make command ---------------- D:\ph\bin\bin\djgpp\gnu\bash1147>make d:/ph/bin/bin/djgpp/bin/make.exe -f bash-Makefile srcdir=. make.exe[1]: Entering directory `d:/ph/bin/bin/djgpp/gnu/bash1147' rm -f bash gcc -O -g -L./lib/readline/ -L./lib/termcap/ -L./lib/tilde/ -L./lib/glob/ -o bash shell.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 hash.o mailcheck.o test.o trap.o alias.o braces.o unwind_prot.o input.o bashhist.o siglist.o version.o bashline.o brace comp.o builtins/libbuiltins.a -lreadline -ltermcap -lglob -ltilde shell.o: In function `main': shell.c:279: undefined reference to `__libc_termios_enable_function_and_arrow_keys' execute_cmd.o: In function `execute_command': execute_cmd.c:309: undefined reference to `__libc_termios_check_signals' make.exe[1]: *** [bash] Error 1 make.exe[1]: Leaving directory `d:/ph/bin/bin/djgpp/gnu/bash1147' make.exe: *** [all] Error 2 -------------------------- end of output ----------------- I thought I could find these two symbols in libc.a but there are not (I used commands like 'nm libc.a | grep __libc_termios_check_signals) In fact the result of (nm libc.a | grep ___libc_termios_) is: U ___libc_termios_hook_common_count U ___libc_termios_init U ___libc_termios_hook_common_count U ___libc_termios_init U ___libc_termios_hook_common_count U ___libc_termios_init U ___libc_termios_hook_common_count U ___libc_termios_init U ___libc_termios_hook_common_count U ___libc_termios_init U ___libc_termios_hook_common_count U ___libc_termios_init 0000093c t ___libc_termios_clear_queue 00000588 t ___libc_termios_echo_ctrl 00000720 t ___libc_termios_erase_editline 0000092c t ___libc_termios_exist_queue 00000000 t ___libc_termios_fflushall 000009fc t ___libc_termios_fill_queue 0000095c t ___libc_termios_get_queue 00001630 D ___libc_termios_hook_common_count 00000010 T ___libc_termios_init 000007d4 t ___libc_termios_insert_editline 0000078c t ___libc_termios_kill_editline 000005dc t ___libc_termios_maybe_echo 000005c0 t ___libc_termios_maybe_echo_ctrl 000006d0 t ___libc_termios_maybe_erase1 00000994 t ___libc_termios_put_queue 00000040 t ___libc_termios_read 000001a4 t ___libc_termios_read_cooked_tty 00000234 t ___libc_termios_read_raw_tty 00000304 t ___libc_termios_write 000004b8 t ___libc_termios_write_cooked_tty 0000163c d ___libc_termios_write_count 0000054c t ___libc_termios_write_raw_tty 00001634 d ___libc_termios_write_sbuf 00001640 b ___libc_termios_write_sbuf_internal 00001638 d ___libc_termios_write_sbuflen And If I try a 'grep -l termios *.a' in djgpp\lib directory : I 've got only libc.a So where could I find __libc_termios_enable_function_and_arrow_keys and __libc_termios_check_signals definitions? Is my libc incomplete?? -- _______________________________________________________________________ Philippe HANRIGOU Conseil Général de la Martinique Ingénieur informatique D.D.S.T. - service I.T.S. Immeuble Concorde, route de la Folie Tél: (0596) 59-84-63 97200 Fort de France E-mail: HANRIGOU AT cgste DOT mq FRANCE _______________________________________________________________________