[vlc-devel] Build errors (brp checks).

Dominique Leuenberger dominique at leuenberger.net
Fri Aug 28 09:54:45 CEST 2009


Hi everybody,

As you already know by now, the openSUSE packages have to pass a BRP  
check at the end which is just heuristically analysing some known  
issues.

At the moment, I get the following report:

I: Program is likely to break with new gcc. Try -fno-strict-aliasing.
W: vlc-beta strict-aliasing-punning ../access/rtmp/rtmp_amf_flv.c:965, 983
W: vlc-beta strict-aliasing-punning input/vlm.c:584
W: vlc-beta strict-aliasing-punning rtmp_amf_flv.c:965, 983
E: vlc-beta 64bit-portability-issue alsa.c:505, 547, 560
E: vlc-beta 64bit-portability-issue v4l2.c:698

I: Program returns random data in a function
E: vlc-beta no-return-in-nonvoid-function config/dirs_xdg.c:233

The gcc output for the E: (Errors) is as follows:
for alsa.c:

alsa.c: In function 'OpenAudioDevAlsa':
alsa.c:505: warning: passing argument 3 of  
'snd_pcm_hw_params_set_rate_near' makes pointer from integer without a  
cast
/usr/include/alsa/pcm.h:622: note: expected 'unsigned int *' but  
argument is of type 'unsigned int'
alsa.c:547: warning: passing argument 3 of  
'snd_pcm_hw_params_set_period_time_near' makes pointer from integer  
without a cast
/usr/include/alsa/pcm.h:638: note: expected 'unsigned int *' but  
argument is of type 'unsigned int'
alsa.c:560: warning: passing argument 3 of  
'snd_pcm_hw_params_set_buffer_time_near' makes pointer from integer  
without a cast
/usr/include/alsa/pcm.h:676: note: expected 'unsigned int *' but  
argument is of type 'unsigned int'


for v4l2:
v4l2.c: In function 'GetV4L2Params':
v4l2.c:695: warning: passing argument 2 of '__rawmemchr' makes integer  
from pointer without a cast
/usr/include/bits/string2.h:394: note: expected 'int' but argument is  
of type 'const char *'
v4l2.c:695: warning: passing argument 2 of '__builtin_strchr' makes  
integer from pointer without a cast
v4l2.c:695: note: expected 'int' but argument is of type 'const char *'
v4l2.c:697: warning: passing argument 2 of '__rawmemchr' makes integer  
from pointer without a cast
/usr/include/bits/string2.h:394: note: expected 'int' but argument is  
of type 'const char *'
v4l2.c:697: warning: passing argument 2 of '__builtin_strchr' makes  
integer from pointer without a cast
v4l2.c:697: note: expected 'int' but argument is of type 'const char *'
v4l2.c:697: warning: initialization makes integer from pointer without a cast
v4l2.c:698: warning: passing argument 1 of 'atoi' makes pointer from  
integer without a cast
/usr/include/stdlib.h:284: note: expected 'const char *' but argument  
is of type 'int'

for dirs_xdg.c:
config/dirs_xdg.c: In function 'config_GetUserDir':
config/dirs_xdg.c:233: warning: control reaches end of non-void function


some of those might already be fixed by now of course, as the last  
build I ran was against git commit id=660d9ff (Aug 27 15.09.43)

Regards,
Dominique



More information about the vlc-devel mailing list