[libdvdcss-devel] src/libdvdcss.c fail to build on Linux
djcj <[email protected]> Sun, 13 Mar 2016 08:55:05 +0100
| Newsgroups | gmane.comp.video.videolan.libdvdcss,gmane.comp.video.videolan.libdvdcss.devel |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format.
--===============6804181407906237677==
Content-Type: multipart/alternative;
boundary="------------070601040905000702080105"
This is a multi-part message in MIME format.
--------------070601040905000702080105
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
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.
--------------070601040905000702080105
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
<html>
<head>
<meta http-equiv=3D"content-type" content=3D"text/html; charset=3Dutf=
-8">
</head>
<body text=3D"#000000" bgcolor=3D"#FFFFFF">
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<br>
<div class=3D"moz-forward-container"> latest git version (commit
100ac1a3762915042ee65b1bf370399966f61be5 'Check for empty
strings'):<br>
<br>
<i>=C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 src/libdvdcss.lo</=
i><i><br>
</i><i>src/libdvdcss.c: In function 'set_cache_directory':</i><i><b=
r>
</i><i>src/libdvdcss.c:237:19: error: invalid operands to binary
&& (have 'int' and 'struct passwd')</i><i><br>
</i><i>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 if( p_pwd &=
amp;& p_pwd[ 0 ] )</i><i><br>
</i><i>=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 ^</i><i><br>
</i><i>make[1]: *** [src/libdvdcss.lo] Error 1</i><br>
<br>
<br>
If I change the line from <i>if( p_pwd && p_pwd[ 0 ] )</i>
to <i>if( p_pwd )</i> it works.<br>
<br>
</div>
</body>
</html>
--------------070601040905000702080105--
--===============6804181407906237677==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
libdvdcss-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libdvdcss-devel
--===============6804181407906237677==--