Kodi Community Forum

Full Version: compilation problems
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hi, i have ever that error when try to build xbmc

Code:
make[1]: Entering directory `/home/anubis/XBMC'
make -C tools/XBMCTex/
make[2]: Entering directory `/home/anubis/XBMC/tools/XBMCTex'
rm -f AnimatedGif.o
g++ -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 -DUSE_SDL -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -DHAS_SDL_JOYSTICK -DHAS_XRANDR -DHAS_MMS -DHAS_PCRE -D'SVN_REV="13854"' -DINSTALL_PATH="\"/usr/local/share/xbmc\""  -I../../xbmc/linux -I../../guilib -I../../xbmc/  AnimatedGif.cpp -o AnimatedGif.o
rm -f Bundler.o
g++ -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 -DUSE_SDL -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64  -DHAS_SDL_JOYSTICK -DHAS_XRANDR -DHAS_MMS -DHAS_PCRE -D'SVN_REV="13854"' -DINSTALL_PATH="\"/usr/local/share/xbmc\""  -I../../xbmc/linux -I../../guilib -I../../xbmc/  Bundler.cpp -o Bundler.o
Bundler.cpp: In member function 'int CBundler::WriteBundle(const char*, int)':
Bundler.cpp:38: error: 'malloc' was not declared in this scope
Bundler.cpp:55: error: 'FILE' was not declared in this scope
Bundler.cpp:55: error: 'file' was not declared in this scope
Bundler.cpp:55: error: 'fopen' was not declared in this scope
Bundler.cpp:59: error: 'fwrite' was not declared in this scope
Bundler.cpp:67: error: 'fclose' was not declared in this scope
Bundler.cpp:69: error: 'free' was not declared in this scope
Bundler.cpp:45: warning: unused variable 'j'
Bundler.cpp: In member function 'bool CBundler::AddFile(const char*, int, const void**, DWORD*)':
Bundler.cpp:80: warning: comparison between signed and unsigned integer expressions
Bundler.cpp:81: error: 'tolower' was not declared in this scope
Bundler.cpp:90: error: 'malloc' was not declared in this scope
Bundler.cpp:110: error: 'printf' was not declared in this scope
Bundler.cpp:111: error: 'free' was not declared in this scope
Bundler.cpp:116: error: 'free' was not declared in this scope
Bundler.cpp:127: error: 'realloc' was not declared in this scope
make[2]: *** [Bundler.o] Error 1
make[2]: *** Waiting for unfinished jobs....
In file included from AnimatedGif.cpp:30:
AnimatedGif.h:161: error: 'FILE' has not been declared
AnimatedGif.cpp:161: error: 'unsigned char CAnimatedGifSet::getbyte' is not a static member of 'class CAnimatedGifSet'
AnimatedGif.cpp:161: error: 'FILE' was not declared in this scope
AnimatedGif.cpp:161: error: 'fd' was not declared in this scope
AnimatedGif.cpp:162: error: expected ',' or ';' before '{' token
AnimatedGif.cpp: In member function 'int CAnimatedGifSet::LoadGIF(const char*)':
AnimatedGif.cpp:203: error: 'FILE' was not declared in this scope
AnimatedGif.cpp:203: error: 'fd' was not declared in this scope
AnimatedGif.cpp:203: error: 'fopen' was not declared in this scope
AnimatedGif.cpp:211: error: 'fread' was not declared in this scope
AnimatedGif.cpp:214: error: 'fclose' was not declared in this scope
AnimatedGif.cpp:219: error: 'fclose' was not declared in this scope
AnimatedGif.cpp:240: error: 'fclose' was not declared in this scope
AnimatedGif.cpp:314: warning: unused variable 'iterm'
AnimatedGif.cpp:394: error: 'ftell' was not declared in this scope
AnimatedGif.cpp:395: error: 'fseek' was not declared in this scope
AnimatedGif.cpp:396: error: 'fseek' was not declared in this scope
AnimatedGif.cpp:441: error: 'feof' was not declared in this scope
AnimatedGif.cpp:443: error: 'fclose' was not declared in this scope
make[2]: *** [AnimatedGif.o] Error 1
make[2]: Leaving directory `/home/anubis/XBMC/tools/XBMCTex'
make[1]: *** [XBMCTex] Error 2
make[1]: Leaving directory `/home/anubis/XBMC'
make: *** [all] Error 2
make: Leaving directory `/home/anubis/XBMC'

Errors have occurred!
View compile log? (y/n) : n

using build.sh script and upgrading source any time

thanks for help
Lemme guess...gcc 4.3?
;P..yess
Should be fixed. Thank monkeyman.

http://forum.xbmc.org/showthread.php?tid=34228
indeed, has been fixed, thanks