Discussion:
[libdvdcss-devel] src/libdvdcss.c fail to build on Linux
djcj
2016-03-13 07:55:05 UTC
Permalink
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.

Loading...