[libav-bugs] [Bug 619] alsa-plugins-extra fails to build

bugzilla at libav.org bugzilla at libav.org
Fri May 9 02:32:46 CEST 2014


https://bugzilla.libav.org/show_bug.cgi?id=619

--- Comment #5 from Reinhard Tartler <siretart at tauware.de> 2014-05-09 02:32:46 CEST ---
It seems that Luca's patch is incomplete. The makefile references rate_lavcr.c
instead of the provided rate_lavr.c. After fixing that, I'm getting the
following compilation problems:


make[3]: Entering directory '/tmp/alsa-plugins/alsa-plugins-1.0.27/rate-lavr'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..  
-D_FORTIFY_SOURCE=2 -Wall -g -I/usr/include/alsa   -g -O2 -fstack-protector
--param=ssp-buffer-size=4 -Wformat -Werror=format-security -c -o rate_lavr.lo
rate_lavr.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -Wall -g
-I/usr/include/alsa -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat
-Werror=format-security -c rate_lavr.c  -fPIC -DPIC -o .libs/rate_lavr.o
rate_lavr.c: In function 'pcm_src_init':
rate_lavr.c:84:51: error: 'AV_SAMPLE_FMT_S16' undeclared (first use in this
function)
   av_opt_set_int(rate->avr, "in_sample_format",   AV_SAMPLE_FMT_S16, 0);
                                                   ^
rate_lavr.c:84:51: note: each undeclared identifier is reported only once for
each function it appears in
rate_lavr.c: In function 'pcm_src_convert_s16':
rate_lavr.c:130:27: warning: passing argument 2 of 'avresample_convert' from
incompatible pointer type [enabled by default]
                           &src, src_frames * chans * 2, src_frames);
                           ^
In file included from rate_lavr.c:20:0:
/usr/include/libavresample/avresample.h:350:5: note: expected 'uint8_t **' but
argument is of type 'int16_t **'
 int avresample_convert(AVAudioResampleContext *avr, uint8_t **output,
     ^
rate_lavr.c:130:27: warning: passing argument 5 of 'avresample_convert' from
incompatible pointer type [enabled by default]
                           &src, src_frames * chans * 2, src_frames);
                           ^
In file included from rate_lavr.c:20:0:
/usr/include/libavresample/avresample.h:350:5: note: expected 'uint8_t **' but
argument is of type 'const int16_t **'
 int avresample_convert(AVAudioResampleContext *avr, uint8_t **output,
     ^
rate_lavr.c:133:4: error: expected ')' before 'total_in'
    total_in - src_frames > filter_size ? 0 : 1, src_frames);
    ^
rate_lavr.c:133:4: error: too few arguments to function
'avresample_set_compensation'
In file included from rate_lavr.c:20:0:
/usr/include/libavresample/avresample.h:304:5: note: declared here
 int avresample_set_compensation(AVAudioResampleContext *avr, int sample_delta,
     ^
rate_lavr.c:127:6: warning: unused variable 'total_in' [-Wunused-variable]
  int total_in = avresample_get_delay(rate->avr) + src_frames;
      ^
rate_lavr.c:126:49: warning: unused variable 'i' [-Wunused-variable]
  int consumed = 0, chans=rate->channels, ret=0, i;
                                                 ^
rate_lavr.c:126:42: warning: variable 'ret' set but not used
[-Wunused-but-set-variable]
  int consumed = 0, chans=rate->channels, ret=0, i;
                                          ^
rate_lavr.c:126:6: warning: unused variable 'consumed' [-Wunused-variable]
  int consumed = 0, chans=rate->channels, ret=0, i;
      ^
rate_lavr.c: At top level:
rate_lavr.c:112:13: warning: 'pcm_src_reset' defined but not used
[-Wunused-function]
 static void pcm_src_reset(void *obj)
             ^

Luca, can check what's going on here?

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list