[Slackbuilds-users] libdv: a problem and a possible fix

Willy Sudiarto Raharjo willysr at slackbuilds.org
Thu May 26 14:22:34 UTC 2016


> recently I've built libdv using the slackbuild, and got a problem.
> 
> Basically, the source libdv/enc_input.c uses a macro (VIDEO_MAX_FRAME)
> possibly defined in /usr/include/linux/videodev.h. Looking at that file,
> the macro isn't defined, and so the build process stop with a proper
> error.
> 
> I have to say I'm not using the stock kernel, but 3.16.3. I 
> don't know if this problem is specific to this kernel or if it applies
> to the stock 14.1 kernel as well (or to -current).
> 
> Making some investigation, I've found that this macro is defined at
> /usr/include/linux/videodev2.h, and it's defined with 32. Also,
> at least one case was solved defining this macro at the application
> level, such as
> https://lists.debian.org/debian-glibc/2006/07/msg00149.html, for
> instance (although recognizing this case is not about libdv at all).
> 
> What I did was defining that macro in libdv/enc_input.c if it's not
> still not defined. I've built a patch to that file and included it at
> the SlackBuild script. The git patch goes attached.
> 
> Another option, which I didn't try, was to substitute #include videodev.h to
> #include videodev2.h.
> 
> Hope this can help the community!

Hi Luiz

May i know which Slackware version do you use ?
14.1 or current?



-- 
Willy Sudiarto Raharjo

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.slackbuilds.org/pipermail/slackbuilds-users/attachments/20160526/337d45a5/attachment.asc>


More information about the SlackBuilds-users mailing list