Page 1 of 1

vlc-git Nov 09, 2015: Unable to compile...

Posted: 09 Nov 2015 10:09
by andrew46
I have been unable to compile vlc-git (Nov 09 2015) under Linux with the following error:

Code: Select all

CXX demux/dash/mpd/libadaptative_plugin_la-DASHSegment.lo In file included from ../include/vlc_common.h:902:0, from ./demux/adaptative/../adaptative/playlist/Url.hpp:29, from ./demux/adaptative/../adaptative/playlist/ICanonicalUrl.hpp:23, from ./demux/adaptative/../adaptative/playlist/SegmentInformation.hpp:27, from ./demux/adaptative/../adaptative/playlist/BaseRepresentation.h:32, from demux/hls/playlist/Representation.hpp:24, from demux/hls/playlist/Representation.cpp:26: demux/hls/playlist/Representation.cpp: In member function ‘virtual void hls::playlist::Representation::runLocalUpdates(mtime_t, uint64_t)’: demux/hls/playlist/Representation.cpp:133:86: error: expected ‘)’ before ‘PRId64’ msg_Dbg(playlist->getVLCObject(), "Updated playlist ID %s, next update in %" PRId64 "s", ^ ../include/vlc_messages.h:78:23: note: in definition of macro ‘msg_Generic’ __func__, __VA_ARGS__) ^ demux/hls/playlist/Representation.cpp:133:9: note: in expansion of macro ‘msg_Dbg’ msg_Dbg(playlist->getVLCObject(), "Updated playlist ID %s, next update in %" PRId64 "s", ^ ../include/vlc_messages.h:78:34: warning: spurious trailing ‘%’ in format [-Wformat=] __func__, __VA_ARGS__) ^ ../include/vlc_messages.h:86:5: note: in expansion of macro ‘msg_Generic’ msg_Generic(p_this, VLC_MSG_DBG, __VA_ARGS__) ^ demux/hls/playlist/Representation.cpp:133:9: note: in expansion of macro ‘msg_Dbg’ msg_Dbg(playlist->getVLCObject(), "Updated playlist ID %s, next update in %" PRId64 "s", ^ ../include/vlc_messages.h:78:34: warning: too many arguments for format [-Wformat-extra-args] __func__, __VA_ARGS__) ^ ../include/vlc_messages.h:86:5: note: in expansion of macro ‘msg_Generic’ msg_Generic(p_this, VLC_MSG_DBG, __VA_ARGS__) ^ demux/hls/playlist/Representation.cpp:133:9: note: in expansion of macro ‘msg_Dbg’ msg_Dbg(playlist->getVLCObject(), "Updated playlist ID %s, next update in %" PRId64 "s", ^ make[4]: *** [demux/hls/playlist/libadaptative_plugin_la-Representation.lo] Error 1 make[4]: *** Waiting for unfinished jobs.... demux/hls/playlist/HLSSegment.cpp:55:6: warning: unused parameter ‘chunk’ [-Wunused-parameter] void HLSSegment::onChunkDownload(block_t **pp_block, SegmentChunk *chunk, BaseRepresentation *) ^ make[4]: Leaving directory `/tmp/vlc/modules' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/vlc/modules' make[2]: *** [all] Error 2 make[2]: Leaving directory `/tmp/vlc/modules' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/tmp/vlc' make: *** [all] Error 2 root@ilium/home/andrew/source/vlc-git#
I suspect my build environment as I am able to compile the same tree on a different Linux distro. Any insights into this problem would be appreciated.

Re: vlc-git Nov 09, 2015: Unable to compile...

Posted: 09 Nov 2015 13:22
by Jean-Baptiste Kempf
Your compiler is probably too old... Which is it?

Re: vlc-git Nov 09, 2015: Unable to compile...

Posted: 09 Nov 2015 19:34
by andrew46
The compiler:

Code: Select all

andrew@ilium~$ gcc --version gcc (GCC) 4.8.2 Copyright (C) 2013 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. andrew@ilium~$