This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug build/13372] New: missing stdlib.h in sim/ppc/events.c


http://sourceware.org/bugzilla/show_bug.cgi?id=13372

             Bug #: 13372
           Summary: missing stdlib.h in sim/ppc/events.c
           Product: gdb
           Version: 7.3
            Status: NEW
          Severity: normal
          Priority: P2
         Component: build
        AssignedTo: unassigned@sourceware.org
        ReportedBy: ben_golding@yahoo.co.uk
    Classification: Unclassified


Build error occurs during 'make all'
Compiling cross-gdb for PowerPC architecture.

I believe the fix would be to add
  #include <stdlib.h>
to sim/ppc/events.c
(at least I verified this as a workaround)

------------------------------------
In file included from ../../../../gdb-7.3.1/sim/ppc/mon.c:43,
                 from ../../../../gdb-7.3.1/sim/ppc/inline.c:63,
                 from idecode.c:27:
/usr/include/stdlib.h:597: error: conflicting types for 'free'
../../../../gdb-7.3.1/sim/ppc/events.c:117: error: previous implicit
declaration of 'free' was here
make[3]: *** [idecode.o] Error 1
------------------------------------
gdb-7.3.1 (or recent snapshot gdb-7.3.50.20111101.tar.bz2)

Linux 2.6.9-89.ELlargesmp #1 SMP Mon Apr 20 10:43:12 EDT 2009 x86_64 x86_64
x86_64 GNU/Linux

OS:        RedHat Enterprise Linux 4.0 U8

../../gdb-7.3.1/configure
--with-gmp=/slowfs/de02sls01/bgolding_tmp/crosstools/build/prefix
--with-mpfr=/slowfs/de02sls01/bgolding_tmp/crosstools/build/prefix
--with-mpc=/slowfs/de02sls01/bgolding_tmp/crosstools/build/prefix
--enable-static-link --target=powerpc-eabi
--prefix=/slowfs/de02sls01/bgolding_tmp/crosstools/build/powerpc-eabi/prefix

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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