error: conflicting types for ‘malloc’

Programming, for all ages and all languages.
Post Reply
kr651129
Posts: 18
Joined: Fri Dec 02, 2011 11:02 pm

error: conflicting types for ‘malloc’

Post by kr651129 »

The subject basically says it all, I'm compiling binutils 2.9.1 and when I configure it I get the following error and I have googled it and have found nothing

Code: Select all

../../binutils-2.8.1/binutils/../libiberty/cplus-dem.c: At top level:
../../binutils-2.8.1/binutils/../libiberty/cplus-dem.c:3039:8: error: conflicting types for ‘malloc’
../../binutils-2.8.1/binutils/../libiberty/cplus-dem.c:3040:8: warning: conflicting types for built-in function ‘realloc’ [enabled by default]
make[1]: *** [cplus-dem.o] Error 1
make[1]: Leaving directory `/usr/src/build-binutils/binutils'
make: *** [all-binutils] Error 2
thoughts?
gerryg400
Member
Member
Posts: 1801
Joined: Thu Mar 25, 2010 11:26 pm
Location: Melbourne, Australia

Re: error: conflicting types for ‘malloc’

Post by gerryg400 »

The binutils version numbering scheme means that the version you are using 2.8 or 2.9 is very old. In the scheme 2.10 is newer than 2.9, and 2.22 is the newest. (I think)
If a trainstation is where trains stop, what is a workstation ?
User avatar
Love4Boobies
Member
Member
Posts: 2111
Joined: Fri Mar 07, 2008 5:36 pm
Location: Bucharest, Romania

Re: error: conflicting types for ‘malloc’

Post by Love4Boobies »

Heh, five new versions of the C standard have been finalized since that version of Binutils (C99, TC1, TC2, TC3, C1X).
"Computers in the future may weigh no more than 1.5 tons.", Popular Mechanics (1949)
[ Project UDI ]
kr651129
Posts: 18
Joined: Fri Dec 02, 2011 11:02 pm

Re: error: conflicting types for ‘malloc’

Post by kr651129 »

Well, I'm an idiot, I was trying to build my cross compiler while I was at work because it takes a while for the make-all and I just wasn't paying attention because I was at work and downloaded the wrong versions lol. Thanks for the help :)
Post Reply