[blfs-dev] gvfs-1.34.1 won't compile with libcdio-1.0.0 installed

Bruce Dubbs bruce.dubbs at gmail.com
Sun Dec 3 08:08:40 PST 2017


John Burrell wrote:
> The compile gives:
>
> gvfsbackendcdda.c: In function ‘fetch_metadata’:
> gvfsbackendcdda.c:173:12: error: too many arguments to function ‘cdio_get_cdtext’
>     cdtext = cdio_get_cdtext (cdio, 0);
>              ^~~~~~~~~~~~~~~
> In file included from /usr/include/cdio/cdio.h:62:0,
>                   from /usr/include/cdio/paranoia/cdda.h:31,
>                   from /usr/include/cdio/paranoia/paranoia.h:31,
>                   from gvfsbackendcdda.c:51:
> /usr/include/cdio/disc.h:77:13: note: declared here
>     cdtext_t *cdio_get_cdtext (CdIo_t *p_cdio);
>               ^~~~~~~~~~~~~~~
> gvfsbackendcdda.c:182:74: error: ‘CDTEXT_TITLE’ undeclared (first use in this function); did you mean
>   ‘CDTEXT_FIELD_TITLE’?
>       cdda_backend->album_title = cdtext_string_to_utf8 (cdtext_get_const (CDTEXT_TITLE, cdtext));
>                                                                            ^~~~~~~~~~~~
>                                                                            CDTEXT_FIELD_TITLE
> gvfsbackendcdda.c:182:74: note: each undeclared identifier is reported only once for each function it
>   appears in
> gvfsbackendcdda.c:182:88: error: incompatible type for argument 2 of ‘cdtext_get_const’
>       cdda_backend->album_title = cdtext_string_to_utf8 (cdtext_get_const (CDTEXT_TITLE, cdtext));
>                                                                                          ^~~~~~
> In file included from /usr/include/cdio/cdio.h:59:0,
>                   from /usr/include/cdio/paranoia/cdda.h:31,
>                   from /usr/include/cdio/paranoia/paranoia.h:31,
>                   from gvfsbackendcdda.c:51:
> /usr/include/cdio/cdtext.h:262:13: note: expected ‘cdtext_field_t {aka enum <anonymous>}’ but argumen
> t is of type ‘const cdtext_t * {aka const struct cdtext_s *}’
>   const char *cdtext_get_const (const cdtext_t *p_cdtext, cdtext_field_t field,
>
>
> and a whole bunch more.
>
> I'll revert to libcdio-0.94 for the moment until gvfs gets updated.

Yes, we've been having a problem with libcdio-1.

Try this for a workaround:

sudo sed '/LIBCDIO_VERSION_NUM/s/1/10000/' /usr/include/cdio/version.h

   -- Bruce



More information about the blfs-dev mailing list