At one point the compile will crash due to min() not begin defined.
mkv.cpp: In member function 'virtual bool dvd_chapter_codec_c::Enter()':
mkv.cpp:5848: error: no matching function for call to 'min(size_t&, long long unsigned int)'
mkv.cpp: In member function 'virtual bool dvd_chapter_codec_c::Leave()':
mkv.cpp:5871: error: no matching function for call to 'min(size_t&, long long unsigned int)'
gmake[4]: *** [libmkv_plugin_a-mkv.o] Error 1
gmake[4]: Leaving directory `/usr/ports/multimedia/vlc/work/vlc-0.8.6e/modules/demux'
gmake[3]: *** [all-modules] Error 1
gmake[3]: Leaving directory `/usr/ports/multimedia/vlc/work/vlc-0.8.6e/modules/demux'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/usr/ports/multimedia/vlc/work/vlc-0.8.6e/modules'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory `/usr/ports/multimedia/vlc/work/vlc-0.8.6e'
gmake: *** [all] Error 2
*** Error code 2
I added a definition to min as a patch, and it seems to work fine...
#define min(a,b) (((a) (b)) ? (a):(b))
I'm not sure where min(a,b) is supposed to be defined, anyone know the real header file for that?
There were a few problems building vlc for rhel5, quite a few dependencies as well.
Here are my spec and src.rpm