This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
regerror link error
- To: gdb-patches at sourceware dot cygnus dot com (gdb-patches at sourceware dot cygnus dot com), dan at cgsoftware dot com
- Subject: regerror link error
- From: "Philippe De Muyter" <phdm at macqel dot be>
- Date: Fri, 24 Mar 100 22:51:29 +0100 (CET)
The following patch :
2000-03-22 Daniel Berlin <dan@cgsoftware.com>
* command.c (apropos_cmd_helper): New function, meat of the
apropos command.
(apropos_command): New apropos command to search command
names/documentation for regular expressions.
(_initialize_command): Add the apropos command.
makes the compilation of gdb fail on my system (m68k-motorola-sysv) :
gcc -g -O2 -W -Wall -o gdb main.o libgdb.a ../bfd/libbfd.a ../readline
/libreadline.a ../opcodes/libopcodes.a ./../intl/libintl.a ../libiberty/libibert
y.a -lncurses -lm ../libiberty/libiberty.a
libgdb.a(command.o): In function `apropos_command':
command.c:481: undefined reference to `regerror'
collect2: ld returned 1 exit status
Actually, I have found a __regerror, but no regerror. How can we fix that ?
Philippe