vlc build for RHEL5

There were a few problems building vlc for rhel5, quite a few dependencies as well. Here are my spec and src.rpm

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) I'm not sure where min(a,b) is supposed to be defined, anyone know the real header file for that?


Add new comment

This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.

About the Author...

Slides from LISA 2019 Linux systems troubleshooting #LISA2019 https://t.co/D4dMKflK6R Tue Oct 29 05:59:30 +0000 2019

https://t.co/AGeihMALAv configuring grub2 with EFI Fri Sep 13 05:20:01 +0000 2019

I published a Thing on @thingiverse! https://t.co/IYpRyEb7Hz #thingalert Tue Jul 23 19:27:57 +0000 2019

Nokogiri install on MacOSX https://t.co/v3An0miW9L Fri Jul 12 15:06:49 +0000 2019

HTML email with plain mailer plugin on Jenkins https://t.co/Z6FSDMDjy8 Thu Jul 11 21:07:25 +0000 2019