[libdvdcss-devel] src/libdvdcss.c fail to build on Linux

djcj djcj at gmx.de
Sun Mar 13 08:55:05 CET 2016


I get the following error with gcc 4.8.4 and 5.3.0 on Linux (Ubuntu 
14.04 x86-64) when I try to build the
latest git version (commit 100ac1a3762915042ee65b1bf370399966f61be5 
'Check for empty strings'):

/  CC       src/libdvdcss.lo//
//src/libdvdcss.c: In function 'set_cache_directory'://
//src/libdvdcss.c:237:19: error: invalid operands to binary && (have 
'int' and 'struct passwd')//
//         if( p_pwd && p_pwd[ 0 ] )//
//                   ^//
//make[1]: *** [src/libdvdcss.lo] Error 1/


If I change the line from /if( p_pwd && p_pwd[ 0 ] )/ to /if( p_pwd )/ 
it works.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/libdvdcss-devel/attachments/20160313/7f555526/attachment.html>


More information about the libdvdcss-devel mailing list