This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: --args => build failure


At 12:17 22/11/2001 , Pierre Muller a écrit:
>At 00:13 22/11/2001 , Tom Tromey a écrit:
>> >>>>> "Elena" == Elena Zannoni <ezannoni@cygnus.com> writes:
>>
>>Elena> main.c changes are ok.
>>
>>Thanks!  I think that's the last approval I need.  I'll check the
>>patch in this evening.
>>
>>I assume I should close the corresponding PRs.  What is the gdb
>>process for this?  Do I simply close them?  Put them in `feedback'?
>>Or what?
>
>   Your patch does create a build failure for cygwin target.
>
>   This target apparently does not use fork-child.c
>(at least it is not included into the libgdb.a)
>and thus I get the following error when I try to build the current main 
>CVS tree:
>
>$ make
>rm -f gdb.exe
>gcc -g -O2         -o gdb.exe \
>main.o libgdb.a cli-decode.o cli-script.o cli-cmds.o cli-setshow.o 
>cli-utils.o m
>i-out.o mi-console.o mi-cmds.o mi-cmd-var.o mi-cmd-break.o mi-cmd-stack.o 
>mi-cmd
>-disas.o mi-main.o mi-parse.o mi-getopt.o    ../bfd/libbfd.a 
>../readline/libread
>line.a ../opcodes/libopcodes.a ./../intl/libintl.a 
>../libiberty/libiberty.a `if
>test -r ../libtermcap/libtermcap.a; then echo ../libtermcap/libtermcap.a; 
>else e
>cho -ltermcap; fi`     -lm  ../libiberty/libiberty.a -luser32 -limagehlp\
>
>libgdb.a(gdbarch.o): In function `gdbarch_alloc':
>/home/muller/gdb/build/gdb/../../src/gdb/gdbarch.c:509: undefined 
>reference to `
>construct_inferior_arguments'
>/home/muller/gdb/build/gdb/../../src/gdb/gdbarch.c:482: undefined 
>reference to `
>construct_inferior_arguments'
>collect2: ld returned 1 exit status
>make: *** [gdb.exe] Error 1

   For you info:
compiling fork-child.o by calling
make fork-child.o
adding fork-child.o to libgdb.a with
ar t libgdb.a fork-child.o
and running make again
seems to be enough to get a new gdb executable.

But I have no real idea where dependency of fork-child file must be added.


Pierre Muller
Institut Charles Sadron
6,rue Boussingault
F 67083 STRASBOURG CEDEX (France)
mailto:muller@ics.u-strasbg.fr
Phone : (33)-3-88-41-40-07  Fax : (33)-3-88-41-40-99


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]