PDA

View Full Version : compile error on 9805


4tunesfool
2007-08-03, 16:09
I'm sure you know....

g++-4.1 -c -O2 -D_LINUX -D_FILE_DEFINED -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -I. -I../ -I../linux -I../../guilib -I../lib/UnrarXLib -I../lib/libUPnP/Platinum/ThirdParty/Neptune/Source/Core -I../lib/libUPnP/Platinum/Source/Core -I../lib/libUPnP/Platinum/Source/Devices/MediaServer -I../lib/libUPnP/Platinum/ThirdParty/Neptune/Source/System/Posix FileRTV.cpp -o FileRTV.o
In file included from FileRTV.h:16,
from FileRTV.cpp:6:
../lib/libRTV/interface.h:36:7: warning: no newline at end of file
../lib/libRTV/rtv.h:56: error: ‘u8’ does not name a type
../lib/libRTV/rtv.h:57: error: ‘u16’ does not name a type
../lib/libRTV/rtv.h:58: error: ‘u32’ does not name a type
../lib/libRTV/rtv.h:59: error: ‘u64’ does not name a type
../lib/libRTV/rtv.h:62: error: ‘u8’ has not been declared
../lib/libRTV/rtv.h:63: error: ‘u16’ has not been declared
../lib/libRTV/rtv.h:64: error: ‘u32’ has not been declared
../lib/libRTV/rtv.h:65: error: ‘u64’ has not been declared
../lib/libRTV/interface.h:26: error: ‘u64’ does not name a type
../lib/libRTV/interface.h:31: error: ‘u64’ has not been declared
FileRTV.cpp: In member function ‘bool XFILE::CFileRTV::Open(const char*, const char*, int, bool)’:
FileRTV.cpp:57: error: ‘u64’ was not declared in this scope
FileRTV.cpp:57: error: expected `;' before ‘size’
FileRTV.cpp:58: error: ‘size’ was not declared in this scope
FileRTV.cpp:58: error: ‘rtv_get_filesize’ was not declared in this scope
make[1]: *** [FileRTV.o] Error 1
make[1]: Leaving directory `/home/xbmc/XBMC/xbmc/FileSystem'

spiff
2007-08-03, 16:18
try 9807

4tunesfool
2007-08-03, 19:01
Gets further but seems now fails making the XBMC executable.

make[1]: Entering directory `/home/xbmc/XBMC'
g++-4.1 -o XboxMediaCenter xbmc/*.o xbmc/settings/*.o xbmc/cdrip/*.o guilib/*.o guilib/tinyXML/*.o guilib/common/*.o xbmc/FileSystem/*.o xbmc/FileSystem/VideoDatabaseDirectory/*.o xbmc/FileSystem/MusicDatabaseDirectory/*.o xbmc/visualizations/*.o xbmc/cores/*.o xbmc/cores/paplayer/*.o xbmc/linux/*.o xbmc/lib/sqlLite/*.o xbmc/lib/libscrobbler/*.o xbmc/lib/libPython/*.o xbmc/lib/libPython/xbmcmodule/*.o xbmc/xbox/*.o xbmc/cores/DllLoader/*.o xbmc/cores/DllLoader/exports/*.o xbmc/cores/DllLoader/exports/util/*.o xbmc/utils/*.o xbmc/lib/UnrarXLib/*.o xbmc/lib/libGoAhead/*.o xbmc/cores/dvdplayer/*.o xbmc/cores/dvdplayer/DVDSubtitles/*.o xbmc/cores/dvdplayer/DVDInputStreams/*.o xbmc/cores/dvdplayer/DVDCodecs/*.o xbmc/cores/dvdplayer/DVDCodecs/Audio/*.o xbmc/cores/dvdplayer/DVDCodecs/Video/*.o xbmc/cores/dvdplayer/DVDCodecs/Overlay/*.o xbmc/cores/dvdplayer/DVDDemuxers/*.o xbmc/cores/dvdplayer/DVDCodecs/Overlay/libspucc/*.o xbmc/cores/VideoRenderers/*.o xbmc/lib/libGoAhead/libGoAheadD-i486-linux.a xbmc/lib/libXBMS/libxbms-i486-linux.a xbmc/lib/libUPnP/libupnp-i486-linux.a xbmc/lib/libshout/libshout-i486-linux.a xbmc/lib/libRTV/librtv-i486-linux.a xbmc/lib/libXDAAP/libxdaap-i486-linux.a -lsqlite3 -lsmbclient -llzo -lfribidi -lfreetype -ldl -lcdio -lSDL_mixer -lSDL_image -lSDL -lXinerama -lGLU -lGLEW -lGL -rdynamic
xbmc/cores/paplayer/WMACodec.o: In function `WMACodec::DeInit()':
WMACodec.cpp:(.text+0x0): multiple definition of `WMACodec::DeInit()'
xbmc/cores/paplayer/WMACodec-linux.o:WMACodec-linux.cpp:(.text+0x0): first defined here
xbmc/cores/paplayer/WMACodec.o: In function `WMACodec::CanInit()':
WMACodec.cpp:(.text+0xa0): multiple definition of `WMACodec::CanInit()'
xbmc/cores/paplayer/WMACodec-linux.o:WMACodec-linux.cpp:(.text+0xa0): first defined here
xbmc/cores/paplayer/WMACodec.o: In function `WMACodec::Init(CStdStr<char> const&, unsigned int)':
WMACodec.cpp:(.text+0xc0): multiple definition of `WMACodec::Init(CStdStr<char> const&, unsigned int)'
xbmc/cores/paplayer/WMACodec-linux.o:WMACodec-linux.cpp:(.text+0xc0): first defined here
xbmc/cores/paplayer/WMACodec.o: In function `WMACodec::ReadPCM(unsigned char*, int, int*)':
WMACodec.cpp:(.text+0x140): multiple definition of `WMACodec::ReadPCM(unsigned char*, int, int*)'
xbmc/cores/paplayer/WMACodec-linux.o:WMACodec-linux.cpp:(.text+0x140): first defined here
xbmc/cores/paplayer/WMACodec.o: In function `WMACodec::Seek(long long)':
WMACodec.cpp:(.text+0x270): multiple definition of `WMACodec::Seek(long long)'
xbmc/cores/paplayer/WMACodec-linux.o:WMACodec-linux.cpp:(.text+0x270): first defined here
xbmc/cores/paplayer/WMACodec.o: In function `WMACodec::~WMACodec()':
WMACodec.cpp:(.text+0x350): multiple definition of `WMACodec::~WMACodec()'
xbmc/cores/paplayer/WMACodec-linux.o:WMACodec-linux.cpp:(.text+0x350): first defined here
xbmc/cores/paplayer/WMACodec.o: In function `WMACodec::WMACodec()':
WMACodec.cpp:(.text+0x4d0): multiple definition of `WMACodec::WMACodec()'
xbmc/cores/paplayer/WMACodec-linux.o:WMACodec-linux.cpp:(.text+0x4d0): first defined here
xbmc/cores/paplayer/WMACodec.o: In function `WMACodec::~WMACodec()':
WMACodec.cpp:(.text+0xa90): multiple definition of `WMACodec::~WMACodec()'
xbmc/cores/paplayer/WMACodec-linux.o:WMACodec-linux.cpp:(.text+0xa90): first defined here
xbmc/cores/paplayer/WMACodec.o: In function `WMACodec::~WMACodec()':
WMACodec.cpp:(.text+0xc10): multiple definition of `WMACodec::~WMACodec()'
xbmc/cores/paplayer/WMACodec-linux.o:WMACodec-linux.cpp:(.text+0xc10): first defined here
xbmc/cores/paplayer/WMACodec.o: In function `WMACodec::WMACodec()':
WMACodec.cpp:(.text+0xd90): multiple definition of `WMACodec::WMACodec()'
xbmc/cores/paplayer/WMACodec-linux.o:WMACodec-linux.cpp:(.text+0xd90): first defined here
xbmc/cdrip/CDDARipper.o: In function `CCDDARipper::Rip(CStdStr<char> const&, CStdStr<char> const&, MUSIC_INFO::CMusicInfoTag&)':
CDDARipper.cpp:(.text+0x1445): warning: the use of `tempnam' is dangerous, better use `mkstemp'
xbmc/FileSystem/FileDAAP.o: In function `CDaapClient::Release()':
FileDAAP.cpp:(.text+0x277): undefined reference to `DAAP_Client_Release'
xbmc/FileSystem/FileDAAP.o: In function `CDaapClient::GetHost(CStdStr<char> const&)':
FileDAAP.cpp:(.text+0x94b): undefined reference to `DAAP_Client_AddHost'
FileDAAP.cpp:(.text+0x961): undefined reference to `DAAP_ClientHost_Connect'
FileDAAP.cpp:(.text+0xa64): undefined reference to `DAAP_Client_Create'
xbmc/FileSystem/FileDAAP.o: In function `XFILE::CFileDAAP::Open(CURL const&, bool)':
FileDAAP.cpp:(.text+0x10c9): undefined reference to `GenerateHash'
xbmc/FileSystem/FileDAAP.o: In function `XFILE::CFileDAAP::Seek(long long, int)':
FileDAAP.cpp:(.text+0x1721): undefined reference to `GenerateHash'
xbmc/FileSystem/FileRTV.o: In function `XFILE::CFileRTV::Close()':
FileRTV.cpp:(.text+0xcf): undefined reference to `rtv_close_file'
xbmc/FileSystem/FileRTV.o: In function `XFILE::CFileRTV::Read(void*, long long)':
FileRTV.cpp:(.text+0x13a): undefined reference to `rtv_read_file'
xbmc/FileSystem/FileRTV.o: In function `XFILE::CFileRTV::Open(char const*, char const*, int, bool)':
FileRTV.cpp:(.text+0x384): undefined reference to `rtv_get_filesize'
FileRTV.cpp:(.text+0x3b4): undefined reference to `rtv_open_file'
xbmc/FileSystem/RTVDirectory.o: In function `DIRECTORY::CRTVDirectory::GetDirectory(CStdStr<char> const&, CFileItemList&)':
RTVDirectory.cpp:(.text+0xbde): undefined reference to `rtv_discovery'
RTVDirectory.cpp:(.text+0xf6b): undefined reference to `rtv_get_guide_xml'
RTVDirectory.cpp:(.text+0x16fa): undefined reference to `rtv_list_files'
collect2: ld returned 1 exit status
make[1]: *** [XboxMediaCenter] Error 1
make[1]: Leaving directory `/home/xbmc/XBMC'
make: *** [all] Error 2

pike
2007-08-03, 19:42
[cptspiff] quick fix for now; edit guilib/system.h and comment lines 150 and 151 (HAS_FILESYSTEM_RTV and HAS_FILESYSTEM_DAAP)

if you wanna give it a try, sadly cptspiff left branch in this state, he's now gone the whole weekend

mbuchoff
2007-08-05, 00:55
Would it be worthwhile for us to establish some rules or processes when commiting code? Perhaps each commit can be a branch that gets merged back into the trunk once someone else verifies that everything works.

We seem to be broken quite often, so I just wanted to throw the idea out there.

jmarshall
2007-08-05, 02:32
Thanks for your concern, but we've been working fine for the last 6 years or so with our current policy. SVN is very rarely broken, and I don't recall it ever being broken for more than 24 hours at all.

SVN is cutting edge stuff - very occasionally we forget to commit a file or two, but usually it's fixed within a couple of hours (if not sooner). It's not designed for endusers to depend on, and nor will it ever be.

With that said, however, it's highly unlikely to be broken at any point in time.

Cheers,
Jonathan

yuvalt
2007-08-05, 02:34
*thumbs up*, JM

untg99
2007-08-06, 08:55
I'm having a very similar problem with build 9837.
Below is what I get at the end of the 'make'

g++-4.1 -o XboxMediaCenter xbmc/*.o xbmc/settings/*.o xbmc/cdrip/*.o guilib/*.o guilib/tinyXML/*.o guilib/common/*.o xbmc/FileSystem/*.o xbmc/FileSystem/VideoDatabaseDirectory/*.o xbmc/FileSystem/MusicDatabaseDirectory/*.o xbmc/visualizations/*.o xbmc/cores/*.o xbmc/cores/paplayer/*.o xbmc/linux/*.o xbmc/lib/sqlLite/*.o xbmc/lib/libscrobbler/*.o xbmc/lib/libPython/*.o xbmc/lib/libPython/xbmcmodule/*.o xbmc/xbox/*.o xbmc/cores/DllLoader/*.o xbmc/cores/DllLoader/exports/*.o xbmc/cores/DllLoader/exports/util/*.o xbmc/utils/*.o xbmc/lib/UnrarXLib/*.o xbmc/lib/libGoAhead/*.o xbmc/cores/dvdplayer/*.o xbmc/cores/dvdplayer/DVDSubtitles/*.o xbmc/cores/dvdplayer/DVDInputStreams/*.o xbmc/cores/dvdplayer/DVDCodecs/*.o xbmc/cores/dvdplayer/DVDCodecs/Audio/*.o xbmc/cores/dvdplayer/DVDCodecs/Video/*.o xbmc/cores/dvdplayer/DVDCodecs/Overlay/*.o xbmc/cores/dvdplayer/DVDDemuxers/*.o xbmc/cores/dvdplayer/DVDCodecs/Overlay/libspucc/*.o xbmc/cores/VideoRenderers/*.o xbmc/lib/libGoAhead/libGoAheadD-i486-linux.a xbmc/lib/libXBMS/libxbms-i486-linux.a xbmc/lib/libUPnP/libupnp-i486-linux.a xbmc/lib/libshout/libshout-i486-linux.a xbmc/lib/libRTV/librtv-i486-linux.a xbmc/lib/libXDAAP/libxdaap-i486-linux.a -lsqlite3 -lsmbclient -llzo -lfribidi -lfreetype -ldl -lcdio -lSDL_mixer -lSDL_image -lSDL -lXinerama -lGLU -lGLEW -lGL -rdynamic
xbmc/cdrip/CDDARipper.o: In function `CCDDARipper::Rip(CStdStr<char> const&, CStdStr<char> const&, MUSIC_INFO::CMusicInfoTag&)':
/home/davos/XBMC/xbmc/cdrip/CDDARipper.cpp:115: warning: the use of `tempnam' is dangerous, better use `mkstemp'
xbmc/cores/paplayer/paplayer_linux.o: In function `PAPlayer::WaitForStream()':
/home/davos/XBMC/xbmc/cores/paplayer/paplayer_linux.cpp:1093: undefined reference to `snd_pcm_wait'
xbmc/cores/paplayer/paplayer_linux.o: In function `PAPlayer::AddPacketsToStream(int, CAudioDecoder&)':
----Snip more of the same...-----
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:82: undefined reference to `snd_pcm_hw_params_set_rate_near'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:83: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:85: undefined reference to `snd_pcm_hw_params_set_channels'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:86: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:89: undefined reference to `snd_pcm_hw_params_set_period_size_near'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:90: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:93: undefined reference to `snd_pcm_hw_params_set_buffer_size_near'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:94: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:97: undefined reference to `snd_pcm_hw_params_get_period_time'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:98: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:101: undefined reference to `snd_pcm_hw_params'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:102: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:104: undefined reference to `snd_pcm_hw_params_free'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:105: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:110: undefined reference to `snd_pcm_sw_params_malloc'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:111: undefined reference to `snd_pcm_sw_params_current'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:112: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:114: undefined reference to `snd_pcm_sw_params_get_boundary'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:115: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:117: undefined reference to `snd_pcm_sw_params_set_stop_threshold'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:118: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:120: undefined reference to `snd_pcm_sw_params_set_silence_size'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:121: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:123: undefined reference to `snd_pcm_sw_params'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:124: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:126: undefined reference to `snd_pcm_sw_params_free'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:127: undefined reference to `snd_strerror'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:129: undefined reference to `snd_pcm_prepare'
/home/davos/XBMC/xbmc/cores/dvdplayer/ALSADirectSound.cpp:130: undefined reference to `snd_strerror'
collect2: ld returned 1 exit status
make[1]: *** [XboxMediaCenter] Error 1
make[1]: Leaving directory `/home/davos/XBMC'
make: *** [all] Error 2


Not sure if that's an ALSA problem?
I tried reinstalling all the packages that were listed on the HOW-TO page and also alsa-util and alsa-base but to no avail, any ideas as to what I can do to fix this?

untg99
2007-08-06, 09:48
Managed to fix this for those interested with...

sudo apt-get install libsdl1.2debian-alsa

untg99
2007-08-07, 08:46
Could this package install possibly be added to wiki? I tried but the page is locked...

Skindred
2007-08-07, 14:52
pm abazoid,
he has edit powers ^^

or else,
request them yourself (as will I)

d4rk
2007-08-07, 19:16
If you're using ubuntu, the ALSA libs are provided by libasound2 and libasound2-dev. libsdl1.2debian-alsa does not provide ALSA, it installs a version of SDL that has been compiled with ALSA support and therefore installs ALSA as a dependency. libasound2-dev is mentioned in the wiki and README, so I don't think there is anything to add.

untg99
2007-08-08, 02:37
Well, I ran the setup exactly as specified and run the installation for all the packages (I even ran a --reinstall on them when it wasn't working) on two different machines and one worked fine and one didn't work fine.

The one that didn't work, worked after I installed the libsdl1.2debian-alsa package.
I don't know why that was but just saying my experience with it, I got the error that is written here when I tried the 'make'.

molten_universe
2007-08-13, 16:48
I'm trying to compile Rev 9922 on Gentoo and also get the alsa error. Alsa-lib and the alsa-headers are present. What could be missing?

spiff
2007-08-13, 16:55
-lalsa

molten_universe
2007-08-13, 17:57
Yeah it worked! -lasound did the trick, thanks!