Compile problems: undefined bzip2 symbols

I decided to take a stab at working on the code, so I forked the code, got it, started a branch, etc. according to Elan’s instructions, but when I tried to build I got the following:



Checking Dependencies...<br />
<br />
Ld /Users/xuserx/xbmc-fork/build/Debug/XBMC normal i386<br />
	 cd /Users/xuserx/xbmc-fork<br />
	 /Developer/usr/bin/g++-4.0 -o /Users/xuserx/xbmc-fork/build/ Debug/XBMC -L/Users/xuserx/xbmc-fork/build/Debug -L/Users/xuserx/<br />
xbmc-fork/guilib/freetype2 -L/Users/xuserx/xbmc-fork/xbmc/lib/<br />
filezilla -L/Users/xuserx/xbmc-fork/xbmc/lib/libcdio -L/Users/xuserx/ xbmc-fork/xbmc/lib/libCDRip -L/Users/xuserx/xbmc-fork/xbmc/lib/<br />
libfribidi -L/Users/xuserx/xbmc-fork/xbmc/lib/libGoAhead -L/Users/ xuserx/xbmc-fork/xbmc/lib/libiconv -L/Users/xuserx/xbmc-fork/xbmc/ lib/liblzo -L/Users/xuserx/xbmc-fork/xbmc/lib/libPython/linux/tmp -L/ Users/xuserx/xbmc-fork/xbmc/lib/libRTV -L/Users/xuserx/xbmc-fork/ xbmc/lib/libshout -L/Users/xuserx/xbmc-fork/xbmc/lib/libSpeex -L/ Users/xuserx/xbmc-fork/xbmc/lib/libUPnP -L/Users/xuserx/xbmc-fork/ xbmc/lib/libXBMS -L/Users/xuserx/xbmc-fork/xbmc/lib/libXDAAP -L/Users/ xuserx/xbmc-fork/xbmc/lib/libXenium -L/Users/xuserx/xbmc-fork/xbmc/ lib/mikxbox -L/Users/xuserx/xbmc-fork/xbmc/lib/sqLite -L/Users/ xuserx/xbmc-fork/xbmc/lib/zlib -L/opt/local/lib -L/Users/xuserx/xbmc- fork/xbmc/lib/libportaudio -L/Users/xuserx/xbmc-fork/xbmc/lib/<br />
libffmpeg-OSX -L/opt/local/lib/mysql5/mysql -L/opt/local/lib/mysql5- devel/mysql -L/opt/local/lib/samba3 -L/Users/xuserx/xbmc- fork/../../../../../Source/samba-3.0.28/source/bin -L/Users/xuserx/ xbmc-fork/system/python -L/Users/xuserx/xbmc-fork/xbmc/lib/libPython/<br />
linux -L/Users/xuserx/xbmc-fork/xbmc/lib/libcdio-osx -F/Users/xuserx/ xbmc-fork/build/Debug -filelist /Users/xuserx/xbmc-fork/build/ XBMC.build/Debug/XBMC.build/Objects-normal/i386/XBMC.LinkFileList - framework CoreFoundation -framework AudioToolbox -framework AudioUnit - framework Cocoa -framework CoreAudio -framework CoreServices - framework Foundation -framework OpenGL -lfreetype -lfribidi -lGLEW - liconv -llzo -lz -framework AppKit -framework ApplicationServices - <br />
lstdc++.6 -lxdaap-osx -lrtv-osx -lportaudio-osx -lGoAhead-osx -<br />
framework IOKit -framework QuickTime -framework Carbon -lavutil-osx - lavcodec-osx -lavformat-osx -lswscale-osx -lpostproc-osx -lmad.0.2.1 - lvorbis -lsqlite3.0 -lSDL -lSDL_mixer -lSDLmain -lShout-osx - lsmbclient -lpcre.0.0.1 -lSDL_image -framework DiskArbitration -lcdio- osx -lfontconfig -logg -lmysqlclient -arch i386 -mmacosx-version-<br />
min=10.5 -header-pad_max_install_names -isysroot /Developer/SDKs/ MacOSX10.5.sdk Undefined symbols:<br />
   "_BZ2_bzDecompress", referenced from:<br />
	   _matroska_parse_block in libavformat-osx.a(matroskadec.o)<br />
   "_BZ2_bzDecompressInit", referenced from:<br />
	   _matroska_parse_block in libavformat-osx.a(matroskadec.o)<br />
   "_BZ2_bzDecompressEnd", referenced from:<br />
	   _matroska_parse_block in libavformat-osx.a(matroskadec.o)<br />
ld: symbol(s) not found<br />
collect2: ld returned 1 exit status



I'm assuming this is talking about bzip2, but I didn't see anything in the instructions about macporting that in, so I did it anyway. Even after getting bzip2, I still got this message. I apologize for not being more helpful, and I'm sure I'm missing something silly. I've only had experience working in .Net, but I thought it would be interesting to dive in and take a look.

Any ideas? This is a straight copy from Elan's fork from last night, nothing changed. Thanks!

Be sure to use v0.5 branch, not master. I made fix for this and elan pulled it to v0.5


Thanks for your help. I found the branch, and I'll try this once I get home.

@jeppster, sorry for the confusion, v0.5 branch is the one you want.



@tv, thanks again for the fix!

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.