Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103299 - ogmrip needs gcc-4.0.x fixes.
Summary: ogmrip needs gcc-4.0.x fixes.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Optical Media project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-21 19:22 UTC by Ian Kumlien
Modified: 2005-08-27 21:29 UTC (History)
2 users (show)

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


Attachments
Fixes for the subrip sources. (subrip.diff,1.96 KB, patch)
2005-08-21 19:24 UTC, Ian Kumlien
Details | Diff
Signedness fixes for libogmrip. (libogmrip.diff,1.32 KB, patch)
2005-08-21 19:24 UTC, Ian Kumlien
Details | Diff
Something more along the lines of this? (ogmrip.diff,3.56 KB, patch)
2005-08-22 15:46 UTC, Ian Kumlien
Details | Diff
gcc4 patch (ogmrip-0.9.0-gcc4.patch,5.16 KB, patch)
2005-08-24 11:57 UTC, Olivier Rolland
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ian Kumlien 2005-08-21 19:22:36 UTC
There is some signedness 'bugs' in ogm rip, I'll attatch the diffs when this bug
is opened. (please forward the patch or tell me to)

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Ian Kumlien 2005-08-21 19:24:22 UTC
Created attachment 66516 [details, diff]
Fixes for the subrip sources.

+  int pts100; /* FIXME: Should perhaps be time_t */

I don't know how large that timestamp can be, ir if it's a delta or not..
Comment 2 Ian Kumlien 2005-08-21 19:24:47 UTC
Created attachment 66517 [details, diff]
Signedness fixes for libogmrip.
Comment 3 SpanKY gentoo-dev 2005-08-22 05:56:00 UTC
-  unsigned int pts100;
+  int pts100; /* FIXME: Should perhaps be time_t */

if that comment is true then it should be fixed ... time_t is not always the
same size as int depending on the host architecture, so passing
references/pointers could cause issues
Comment 4 Ian Kumlien 2005-08-22 06:21:57 UTC
(In reply to comment #3)
> -  unsigned int pts100;
> +  int pts100; /* FIXME: Should perhaps be time_t */
> 
> if that comment is true then it should be fixed ... time_t is not always the
> same size as int depending on the host architecture, so passing
> references/pointers could cause issues

well as i stated in the patch comment, if its just a delta or so then it's ok i
assume... but...(In reply to comment #3)
Comment 5 Olivier Rolland 2005-08-22 15:24:32 UTC
The patch to fix the signedness in libogmrip makes ogmrip compile cleanly with
gcc4 but this is not the right way to fix this issue. In fact, there is a bug in
ogmrip_codec_get_chapters and ogmrip_codec_set_chapters definition because the
last chapter to encode might be negative if it should be the last chapter of the
title. That is, the 'end' parameter should be gint, not guint. I'll provide a
patch as soon as I'm back from holydays.
Comment 6 Olivier Rolland 2005-08-22 15:33:42 UTC
Regarding the subrip patch, I think it should be better to change
int vobsub_get_next_packet (void *vobhandle, void **data, int *timestamp)
to
int vobsub_get_next_packet (void *vobhandle, void **data, unsigned int *timestamp)
in both vobsub.h and vobsub.c instead of removing the unsigned qualifier to
pts100 in spudec.c.
Comment 7 Ian Kumlien 2005-08-22 15:46:53 UTC
Created attachment 66595 [details, diff]
Something more along the lines of this?

I think i cought all of the comments, I wonder about set_chapters though,
should that also use signed ints?
Comment 8 SpanKY gentoo-dev 2005-08-22 18:09:37 UTC
that looks acceptable to me at a glance

perhaps try contacting the upstream maintainers too while you're at it ? :)
Comment 9 Olivier Rolland 2005-08-24 11:57:15 UTC
Created attachment 66778 [details, diff]
gcc4 patch

This patch improves Ian's patch: it defines the get_chapters and set_chapters
functions correctly. Thanks Ian for your work.
Comment 10 Ian Kumlien 2005-08-24 13:24:46 UTC
(In reply to comment #9)
> This patch improves Ian's patch: it defines the get_chapters and set_chapters
> functions correctly. Thanks Ian for your work.

NP =), Glad i could help =)
Comment 11 Luis Medinas (RETIRED) gentoo-dev 2005-08-27 21:29:01 UTC
Patch commited in CVS. Special thanks all for your work.