Kodi Community Forum

Full Version: compile error on rev 9738
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all,

first of all i want to mention that this is really a great project and i really appreciate the good work.

Some days ago i installed ubuntu on my htpc and just tried to get xbmc to work. And it worked very well. I was able to see my hd content even from rar.

Today i wanted to get the latest additions and tried to compile from svn again.
This time it wont work, and i have just no clue wth it wont.
I even reinstalled ubuntu but had no luck on compiling the actual branch.

The error i get is :

t0mt0m@htpc:~/XBMC$ make
make -C guilib
make[1]: Entering directory `/home/t0mt0m/XBMC/guilib'
rm -f ActionManager.o
g++-4.1 -c -g -D_XBMC_DEBUG -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I. -Icommon -I../xbmc -I../xbmc/cores -I../xbmc/linux -I/usr/include/freetype2 -I/usr/include/SDL ActionManager.cpp -o ActionManager.o
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstdlib:122: error: ‘::malloc’ has not been declared
/usr/lib/gcc/i486-linux-gnu/4.1.2/../../../../include/c++/4.1.2/cstdlib:130: error: ‘::realloc’ has not been declared
make[1]: *** [ActionManager.o] Error 1
make[1]: Leaving directory `/home/t0mt0m/XBMC/guilib'
make: *** [guilib] Error 2


Most likely i made an stupid mistake, but im out of ideas, even google cant help on this one.

My setup is a foxconnboard with E6400 on it, it has 2GB Ram and an nvidia 7300GS.

I hope i gave enough informations to help me out.
Thanks so much in advance

t0mt0m
I'm pretty sure revision 9739 is broken.
Please make sure that both libstdc++6-4.1-dev and libc6-dev are up to date.

Code:
sudo apt-get update
sudo apt-get install libstdc++6-4.1-dev libc6-dev
got both of them installed

t0mt0m@htpc:~/XBMC$ sudo apt-get install libstdc++6-4.1-dev libc6-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libstdc++6-4.1-dev is already the newest version.
libc6-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
I too have this problem.
I tried ./configure --disable-gl and make compiles and links with no problems.
But without the --disable-gl option it seems to have this issue.
Hope this helps.
Just got revision 9745 off of svn. Still broken, new error:

http://pastebin.ca/640140
babazoid Wrote:Just got revision 9745 off of svn. Still broken, new error:

http://pastebin.ca/640140

Read the README. You're missing Xinerama.

P.S. Thanks ajayv for providng extra debug information.
hey

i did

Code:
sudo apt-get install libxinerama1 libxinerama-dev

and now all works great.
Stupid me, i saw that missing in configure.log but didnt realize what it means.

Thanks so much

t0mt0m
Did you rerun configure? I didn't hit your specific problem, but after adding xinerama you must rerun configure to get proper makefiles (and do a make clean of course)
d4rk Wrote:Read the README. You're missing Xinerama.

P.S. Thanks ajayv for providng extra debug information.

My bad, compiled like 2 days ago without a problem, I didn't realize those dependencies had been added. Doh.
Yes i rerun configure and it works well now.

thanks again