Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236251 - media-libs/libdvdread is missing <inttypes.h> include
Summary: media-libs/libdvdread is missing <inttypes.h> include
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: High normal
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-31 06:20 UTC by BT
Modified: 2008-09-23 00:34 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
test to reproduce libdvdread error (test.c,85 bytes, text/plain)
2008-08-31 06:23 UTC, BT
Details
MediaTomb build.log (build.log,50.45 KB, text/plain)
2008-08-31 06:24 UTC, BT
Details

Note You need to log in before you can comment on or make changes to this bug.
Description BT 2008-08-31 06:20:39 UTC
It appears that ifo_types.h in media-libs/libdvdread is missing the <inttypes.h> include. This causes the current SVN versions of net-misc/mediatomb to fail, as it uses libdvdread for the new DVD image parsing feature.

The MediaTomb devs have confirmed this as a an issue with libdvdread and not their code. Interestingly, libdvdread works for the MediaTomb devs as they use Fedora, which has already issued a patch. The patch works as-is against media-libs/libdvdread and allows SVN MediaTomb to build successfully.

Fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=428910
Fedora patch: http://cvs.fedoraproject.org/viewvc/rpms/libdvdread/F-7/libdvdread-inttypes.patch

Can you please confirm and fix this issue, as it will block the soon to be released MediaTomb 0.12.0 from entering Portage.

Reproducible: Always

Steps to Reproduce:
1. Download the test.c attachment.
2. Compile test.c: $ gcc -I/usr/include/dvdread test.c
Actual Results:  
In file included from /usr/include/dvdread/ifo_read.h:24,
                 from test.c:2:
/usr/include/dvdread/ifo_types.h:32:2: error: #error "Must include <inttypes.h>
or <stdint.h> before any libdvdread header."
In file included from /usr/include/dvdread/ifo_read.h:24,
                 from test.c:2:

Expected Results:  
Successful compile of test.c

media-libs/libdvdnav which has a patched internal copy of libdvdread, has the <inttypes.h> include in ifo_types.h.
Comment 1 BT 2008-08-31 06:23:06 UTC
Created attachment 164153 [details]
test to reproduce libdvdread error

test.c reproduces the MediaTomb libdvdread includes and resulting error.
Comment 2 BT 2008-08-31 06:24:35 UTC
Created attachment 164155 [details]
MediaTomb build.log

MediaTomb build.log with the libdvdread error.
Comment 3 Wormo (RETIRED) gentoo-dev 2008-08-31 06:27:06 UTC
Thanks for the report, assigning to maintainers
Comment 4 BT 2008-09-23 00:34:22 UTC
The MediaTomb developers have fixed this issue with a workaround on their end.