pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

compile failure in multimedia/gst-plugins0.10-bad?



I'm compiling my bulk of updated stuff for the new pkgsrc-2011Q2 branch,
using a pkg_comp chroot with a 5.0 userland.

With multimedia/gst-plugins0.10-bad I see a failure like this:

  CC     libgstfragmented_la-m3u8.lo
m3u8.c: In function 'int_from_string':
m3u8.c:113: warning: comparison is always false due to limited range of data 
type
m3u8.c:113: warning: comparison is always false due to limited range of data 
type 
  CC     libgstfragmented_la-gsthlsdemux.lo
gsthlsdemux.c: In function 'gst_hls_demux_sink_event':
gsthlsdemux.c:373: error: expected expression before 'void'
gsthlsdemux.c:373: warning: format not a string literal and no format arguments
gsthlsdemux.c:373: error: expected ',' or ';' before numeric constant
gsthlsdemux.c:378: error: expected expression before 'void'
gsthlsdemux.c:378: warning: format not a string literal and no format arguments
gsthlsdemux.c:378: error: expected ',' or ';' before numeric constant
gsthlsdemux.c: In function 'gst_hls_demux_loop':
gsthlsdemux.c:607: error: expected expression before 'void'
gsthlsdemux.c:607: warning: format not a string literal and no format arguments
gsthlsdemux.c:607: error: expected ',' or ';' before numeric constant
gsthlsdemux.c: In function 'gst_hls_demux_fetch_location':
gsthlsdemux.c:870: error: expected expression before 'void'
gsthlsdemux.c:870: warning: format not a string literal and no format arguments
gsthlsdemux.c:870: error: expected ',' or ';' before numeric constant
gmake[3]: *** [libgstfragmented_la-gsthlsdemux.lo] Error 1
gmake[3]: Leaving directory 
`/pkg_comp/obj/pkgsrc/multimedia/gst-plugins0.10-bad/default/gst-plugins-bad-0.10.22/gst/hls'

The lines with errors look like this:

    369       } else if (!gst_m3u8_client_update (demux->client, playlist)) {
    370         /* In most cases, this will happen if we set a wrong url in the
    371          * source element and we have received the 404 HTML response ins
tead of
    372          * the playlist */
->  373         GST_ELEMENT_ERROR (demux, STREAM, DECODE, ("Invalid playlist."),
 NULL);
    374         return FALSE;
    375       }
    376
    377       if (!ret && gst_m3u8_client_is_live (demux->client)) {
->  378         GST_ELEMENT_ERROR (demux, RESOURCE, NOT_FOUND,
    379             ("Failed querying the playlist uri, "
    380                 "required for live sources."), NULL);
    381         return FALSE;
    382       }

    605 cache_error:
    606   {      
->  607     GST_ELEMENT_ERROR (demux, RESOURCE, NOT_FOUND,
    608         ("Could not cache the first fragments"), NULL);
    609     gst_hls_demux_stop (demux);
    610     return;
    611   }     

    868 state_change_error:
    869   {
->  870     GST_ELEMENT_ERROR (demux, CORE, STATE_CHANGE, 
    871         ("Error changing state of the fetcher element."), NULL);
    872     bret = FALSE;
    873     goto quit;
    874   }

If this somehow indicates wrong (old) versions of prerequisite headers,
this was obviously not detected by the configure script of
gst0.10-plugins-bad.

GST_ELEMENT_ERROR is defined in
./.buildlink/include/gstreamer-0.10/gst/gstelement.h:

/**
 * GST_ELEMENT_ERROR:
 * @el:     the element that generates the error
 * @domain: like CORE, LIBRARY, RESOURCE or STREAM (see #gstreamer-GstGError)
 * @code:   error code defined for that domain (see #gstreamer-GstGError)
 * @text:   the message to display (format string and args enclosed in
            parentheses)
 * @debug:  debugging information for the message (format string and args
            enclosed in parentheses)
 * 
 * Utility function that elements can use in case they encountered a fatal
 * data processing error. The pipeline will post an error message and the
 * application will be requested to stop further media processing.
 */
#define GST_ELEMENT_ERROR(el, domain, code, text, debug)                \
G_STMT_START {                                                          \
  gchar *__txt = _gst_element_error_printf text;                        \
  gchar *__dbg = _gst_element_error_printf debug;                       \
  if (__txt)                                                            \
    GST_WARNING_OBJECT (el, "error: %s", __txt);                        \
  if (__dbg)                                                            \
    GST_WARNING_OBJECT (el, "error: %s", __dbg);                        \
  gst_element_message_full (GST_ELEMENT(el), GST_MESSAGE_ERROR,         \
    GST_ ## domain ## _ERROR, GST_ ## domain ## _ERROR_ ## code,        \
    __txt, __dbg, __FILE__, GST_FUNCTION, __LINE__);                    \
} G_STMT_END


Does anyone else see this?

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- There's no point being grown-up if you 
\X/ rhialto/at/xs4all.nl    -- can't be childish sometimes. -The 4th Doctor


Home | Main Index | Thread Index | Old Index