Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 438874 - media-video/vlc-2.0.4 USE=win32codecs - In function 'DecOpen': dmo.c:549:62: error: 'BI_RGB' undeclared (first use in this function)
Summary: media-video/vlc-2.0.4 USE=win32codecs - In function 'DecOpen': dmo.c:549:62: ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: InVCS
: 443496 443626 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-10-19 00:17 UTC by megabaks
Modified: 2012-12-03 00:37 UTC (History)
13 users (show)

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


Attachments
build.log (build.log,101.26 KB, text/plain)
2012-10-19 00:18 UTC, megabaks
Details
2.0.4 compile fix (vlc-2.0.4-compile-fix.patch,295 bytes, patch)
2012-10-19 14:58 UTC, Tomasz Chilinski
Details | Diff
ebuild which uses compile fix patch for 2.0.4 (vlc-2.0.4.ebuild,10.92 KB, patch)
2012-10-19 14:59 UTC, Tomasz Chilinski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description megabaks 2012-10-19 00:17:59 UTC
with "win32codecs" use enabled build fails with:
=====
dmo.c: In function 'DecOpen':
dmo.c:549:62: error: 'BI_RGB' undeclared (first use in this function)
dmo.c:549:62: note: each undeclared identifier is reported only once for each function it appears in
make[6]: *** [libdmo_plugin_la-dmo.lo] Error 1
=====
Arch/keyword independed

Reproducible: Always
Comment 1 megabaks 2012-10-19 00:18:25 UTC
Created attachment 326900 [details]
build.log
Comment 2 Tomasz Chilinski 2012-10-19 14:58:45 UTC
Created attachment 326938 [details, diff]
2.0.4 compile fix

This fixes 2.0.4 compilation error.
Comment 3 Tomasz Chilinski 2012-10-19 14:59:18 UTC
Created attachment 326940 [details, diff]
ebuild which uses compile fix patch for 2.0.4
Comment 4 megabaks 2012-10-19 16:08:28 UTC
works for me
but copypaste from vlc-2.0.4/modules/video_filter/atmo/AtmoDefs.h != hack???
Comment 5 Tomasz Chilinski 2012-10-19 18:23:30 UTC
(In reply to comment #4)
> works for me
> but copypaste from vlc-2.0.4/modules/video_filter/atmo/AtmoDefs.h != hack???

Yes, u r right - that's a hack, but we have temporary solution.
I think, we have to wait for upstream to get more elegant fix.
Comment 6 Juergen Rose 2012-11-01 17:42:47 UTC
Works for me, too.
Comment 7 devsk 2012-11-10 17:50:02 UTC
CPPFLAGS=-DBI_RGB=0L emerge -1v vlc

worked for me. No need to apply any patches or update the ebuild.
Comment 8 Jeroen Roovers (RETIRED) gentoo-dev 2012-11-16 16:04:01 UTC
*** Bug 443496 has been marked as a duplicate of this bug. ***
Comment 10 nowrap 2012-11-17 13:29:06 UTC
*** Bug 443626 has been marked as a duplicate of this bug. ***
Comment 11 Zac Medico gentoo-dev 2012-12-03 00:37:07 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > *** Bug 443496 has been marked as a duplicate of this bug. ***
> 
> Correct patch here (with the intended ifdef):
> 
> http://git.videolan.org/?p=vlc.git;a=blobdiff;f=modules/codec/dmo/dmo.c;
> h=4f5f3fc67195126e37e1fc2785a5e8d274181b77;
> hp=23292b8519bd2996dcb4b58c8565096b6b21c155;
> hb=5444f9a081fa5cf74b49d4f40e13ea0675d115f5;
> hpb=6d65b58226d2506e0ee99dfcc3b0cc24db650d8c

That fixed it for me. I've gone ahead and added the patch to the ebuild in cvs.