compiling error - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111) +---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52) +---- Thread: compiling error (/showthread.php?tid=43192) |
compiling error - shankaran_r - 2009-01-05 dear all im trying to install xbmc in fedora 8 .but im haveing some error during my compilation the file that im using is XBMC-8.10.src.tar.gz. im getting this error during my compilation [root@192-168-1-144 XBMC]# make make -C guilib make[1]: Entering directory `/usr/local/src/XBMC/guilib' /usr/bin/ccache g++ -MD -c -g -D_DEBUG -Wall -DDBUS_API_SUBJECT_TO_CHANGE -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/hal -I/usr/include/lzo -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAS_SDL_JOYSTICK -DHAS_XRANDR -DHAS_PCRE -D'SVN_REV="exported"' -DINSTALL_PATH="\"/usr/local/share/xbmc\"" -DDLL_PATH_LIBCURL="\"/usr/lib/libcurl.so.4\"" -I. -Icommon -I../xbmc -I../xbmc/cores -I../xbmc/linux -I../xbmc/utils -I/usr/include/freetype2 -I/usr/include/SDL ActionManager.cpp -o ActionManager.o /usr/lib/gcc/i386-redhat-linux/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 `/usr/local/src/XBMC/guilib' make: *** [guilib] Error 2 what could be there problem please advice me. thanks - spiff - 2009-01-05 apparently your libc miss realloc. or most likely; you need to add the include that has realloc to guilib/StdString.h - althekiller - 2009-01-05 Some retarded distros have realloc() commented out of cstdlib. There was another thread with this same issue. - User 42143 - 2009-01-07 althekiller Wrote:Some retarded distros have realloc() commented out of cstdlib. There was another thread with this same issue. Actually, it's GCC that does it and that's because it needs ::realloc() as a real function. It appears that it's XBMC who's to blame here -- specifically this, scattered all over its sources: Code: #define realloc rpl_realloc Not yet sure how it ends up here (it does in 32bit build only for me, strangely enough) yet, sorry. If I'll figure it out, I'll submit a patch. |