Opened 3 years ago

Last modified 11 months ago

#12640 assigned Bug Report - General

mythplugins/configure fails to find cdio/cdda.h

Reported by: Craig Treleaven <ctreleaven@…> Owned by: paulh
Priority: minor Milestone: 29.2
Component: Plugin - MythMusic Version: 0.27.6
Severity: medium Keywords:
Cc: Ticket locked: no

Description

I haven't attempted to build mythplugins for a couple of years. All the pre-reqs are installed. However, mythplugins reports

...
        libcdio        support will not be included in MythMusic

config.ep includes:

check_lib cdio/cdio.h cdio_open -lcdio
check_header cdio/cdio.h
check_cpp
BEGIN /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.vMrvu20m.c
    1	#include <cdio/cdio.h>
    2	int x;
END /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.vMrvu20m.c
/usr/bin/clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_DARWIN_C_SOURCE -DPIC -pipe -std=c99 -fomit-frame-pointer -fPIC -g -Wall -Wno-parentheses -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wno-pointer-to-int-cast -Wstrict-prototypes -O3 -fno-math-errno -fno-signed-zeros -O3 -fno-math-errno -fno-signed-zeros -Qunused-arguments -Werror=implicit-function-declaration -Werror=return-type -E -o /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.WyESZ2FS.o /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.vMrvu20m.c
check_func cdio_open -lcdio
check_ld -lcdio
check_cc
BEGIN /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.vMrvu20m.c
    1	extern int cdio_open();
    2	int main(void){ cdio_open(); }
END /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.vMrvu20m.c
/usr/bin/clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_DARWIN_C_SOURCE -DPIC -pipe -std=c99 -fomit-frame-pointer -fPIC -g -Wall -Wno-parentheses -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wno-pointer-to-int-cast -Wstrict-prototypes -O3 -fno-math-errno -fno-signed-zeros -O3 -fno-math-errno -fno-signed-zeros -Qunused-arguments -Werror=implicit-function-declaration -Werror=return-type -c -o /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.WyESZ2FS.o /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.vMrvu20m.c
/usr/bin/clang -Wl,-dynamic,-search_paths_first -o /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.RJcXchI4 /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.WyESZ2FS.o -lcdio -framework CoreFoundation -framework VideoDecodeAcceleration -framework QuartzCore -lxml2 -lcrypto -lass -lfftw3_threads -lfftw3f -lfftw3 -lmp3lame -lm -liconv -L/opt/local/lib -lfreetype -lx264 -lmp3lame -lfaac -lm -lbz2 -lz
check_lib cdio/cdda.h cdio_cddap_open -lcdio_cdda
check_header cdio/cdda.h
check_cpp
BEGIN /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.vMrvu20m.c
    1	#include <cdio/cdda.h>
    2	int x;
END /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.vMrvu20m.c
/usr/bin/clang -D_ISOC99_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_DARWIN_C_SOURCE -DPIC -pipe -std=c99 -fomit-frame-pointer -fPIC -g -Wall -Wno-parentheses -Wno-format-zero-length -Wdisabled-optimization -Wpointer-arith -Wno-pointer-sign -Wwrite-strings -Wtype-limits -Wundef -Wno-pointer-to-int-cast -Wstrict-prototypes -O3 -fno-math-errno -fno-signed-zeros -O3 -fno-math-errno -fno-signed-zeros -Qunused-arguments -Werror=implicit-function-declaration -Werror=return-type -E -o /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.WyESZ2FS.o /opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.vMrvu20m.c
/opt/local/var/macports/build/_Users_craigtreleaven_MacPortsTemp_mythtv.27/mythtv-plugins.27/work/.tmp/mythplugins_conf.vMrvu20m.c:1:10: fatal error: 'cdio/cdda.h' file not found
#include <cdio/cdda.h>
         ^
1 error generated.

I think configure should be using pkg-config. On this system pkg-config reports:

$ pkg-config --libs libcdio libcdio++ libcdio_paranoia
-L/opt/local/lib -lcdio++ -lcdio -lm -Wl,-framework,CoreFoundation -Wl,-framework,IOKit -Wl,-framework,DiskArbitration -lcdio_paranoia -lcdio_cdda -lcdio -lm -liconv -Wl,-rpath,/opt/local/lib -Wl,-framework,CoreFoundation -Wl,-framework,IOKit -Wl,-framework,DiskArbitration 

Attaching config.ep

Attachments (2)

config.ep (21.0 KB) - added by Craig Treleaven <ctreleaven@…> 3 years ago.
cdio_paranoia.patch (9.1 KB) - added by mail@… 2 years ago.
Patch fix

Download all attachments as: .zip

Change History (11)

Changed 3 years ago by Craig Treleaven <ctreleaven@…>

Attachment: config.ep added

comment:1 Changed 2 years ago by ctreleaven@…

This is still a problem with MythTV 0.28. I can upload new samples but the code is the same as 0.27.

This is really a MythMusic issue; could the owner and component be changed to more appropriate values?

comment:2 Changed 2 years ago by Peter Bennett

Component: MythTV - configure scriptPlugin - MythMusic
Owner: changed from JYA to paulh
Status: newassigned

As requested, changed component to MythMusic and owner to paulh.

Changed 2 years ago by mail@…

Attachment: cdio_paranoia.patch added

Patch fix

comment:3 Changed 2 years ago by mail@…

I've also seen the same issue on 0.28 on Gentoo. I've created a patch which solves the issue for me, and allows both locations of cdio.h and paranoia.h. Please find attached to this ticket.

comment:4 Changed 2 years ago by Stuart Auchterlonie

Milestone: unknown29.0

comment:5 Changed 23 months ago by paulh

Wondering if we can't just use pkg-config to add the proper include path?

What does running pkg-config --cflags libcdio_paranoia give you.

comment:6 Changed 23 months ago by ctreleaven@…

Yup, looks like that should work fine.

$ pkg-config  --cflags libcdio_paranoia
-I/opt/local/include

comment:7 Changed 13 months ago by Stuart Auchterlonie

Milestone: 29.029.1

comment:8 Changed 11 months ago by Stuart Auchterlonie

Milestone: 29.10.28.2

Moving remaining open tickets to 0.28.2 milestone

comment:9 Changed 11 months ago by Stuart Auchterlonie

Milestone: 0.28.229.2

Moving remaining open tickets to 29.2 milestone

Note: See TracTickets for help on using tickets.