Skip to content
This repository has been archived by the owner on Jan 21, 2021. It is now read-only.

Error on build-mpv Compile #27

Closed
mmstick opened this issue Dec 27, 2013 · 5 comments
Closed

Error on build-mpv Compile #27

mmstick opened this issue Dec 27, 2013 · 5 comments

Comments

@mmstick
Copy link

mmstick commented Dec 27, 2013

Distro: Ubuntu 14.04

Error Messages:

mpvcore/mp_msg.c:193:13: warning: 'mp_msg_log_va' defined but not used [-Wunused-function]
static void mp_msg_log_va(struct mp_log _log, int lev, const char *format,
^
mpvcore/mplayer.c:5092:5: warning: no previous prototype for 'mpv_main' [-Wmissing-prototypes]
int mpv_main(int argc, char argv[])
^
mpvcore/mplayer.c:5103:5: warning: no previous prototype for '__main' [-Wmissing-prototypes]
int _main(int argc, char *argv[])
^
mpvcore/mplayer.c: In function 'handle_heartbeat_cmd':
mpvcore/mplayer.c:3447:19: warning: ignoring return value of 'system', declared with attribute warn_unused_result [-Wunused-result]
system(opts->heartbeat_cmd);
^
mpvcore/mplayer.c: In function 'parse_cfgfiles':
mpvcore/mplayer.c:677:18: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
write(conffile_fd, DEF_CONFIG, sizeof(DEF_CONFIG) - 1);
^
sub/dec_sub.c:106:12: warning: no previous prototype for 'sub_get_last_sd' [-Wmissing-prototypes]
struct sd *sub_get_last_sd(struct dec_sub *sub)
^
audio/filter/af_export.c: In function 'control':
audio/filter/af_export.c:122:12: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
write(s->fd, (void
) &null, 1);
^
audio/out/ao_portaudio.c: In function 'check_pa_ret':
audio/out/ao_portaudio.c:73:20: error: 'paUnanticipatedHostError' undeclared (first use in this function)
if (ret == paUnanticipatedHostError) {
^
audio/out/ao_portaudio.c:73:20: note: each undeclared identifier is reported only once for each function it appears in
audio/out/ao_portaudio.c:74:13: error: unknown type name 'PaHostErrorInfo'
const PaHostErrorInfo* hosterr = Pa_GetLastHostErrorInfo();
^
audio/out/ao_portaudio.c:74:13: error: implicit declaration of function 'Pa_GetLastHostErrorInfo' [-Werror=implicit-function-declaration]
audio/out/ao_portaudio.c:74:46: warning: initialization makes pointer from integer without a cast [enabled by default]
const PaHostErrorInfo* hosterr = Pa_GetLastHostErrorInfo();
^
audio/out/ao_portaudio.c:76:27: error: request for member 'errorText' in something not a structure or union
hosterr->errorText);
^
audio/out/ao_portaudio.c: In function 'find_device':
audio/out/ao_portaudio.c:102:5: error: implicit declaration of function 'Pa_GetDeviceCount' [-Werror=implicit-function-declaration]
int count = Pa_GetDeviceCount();
^
audio/out/ao_portaudio.c:115:24: error: 'PaDeviceInfo' has no member named 'defaultHighOutputLatency'
info->defaultHighOutputLatency * 1000,
^
audio/out/ao_portaudio.c:116:24: error: 'PaDeviceInfo' has no member named 'defaultSampleRate'
info->defaultSampleRate);
^
audio/out/ao_portaudio.c: At top level:
audio/out/ao_portaudio.c:153:28: error: unknown type name 'PaStreamCallbackTimeInfo'
const PaStreamCallbackTimeInfo timeInfo,
^
audio/out/ao_portaudio.c:154:28: error: unknown type name 'PaStreamCallbackFlags'
PaStreamCallbackFlags statusFlags,
^
audio/out/ao_portaudio.c: In function 'uninit':
audio/out/ao_portaudio.c:201:9: error: implicit declaration of function 'Pa_IsStreamActive' [-Werror=implicit-function-declaration]
if (!cut_audio && Pa_IsStreamActive(priv->stream) == 1) {
^
audio/out/ao_portaudio.c: In function 'init':
audio/out/ao_portaudio.c:226:5: error: implicit declaration of function 'Pa_GetDefaultOutputDevice' [-Werror=implicit-function-declaration]
int pa_device = Pa_GetDefaultOutputDevice();
^
audio/out/ao_portaudio.c:238:5: error: unknown type name 'PaStreamParameters'
PaStreamParameters sp = {
^
audio/out/ao_portaudio.c:239:9: error: field name not in record or union initializer
.device = pa_device,
^
audio/out/ao_portaudio.c:239:9: error: (near initialization for 'sp')
audio/out/ao_portaudio.c:240:9: error: field name not in record or union initializer
.channelCount = ao->channels.num,
^
audio/out/ao_portaudio.c:240:9: error: (near initialization for 'sp')
audio/out/ao_portaudio.c:240:9: warning: excess elements in scalar initializer [enabled by default]
audio/out/ao_portaudio.c:240:9: warning: (near initialization for 'sp') [enabled by default]
audio/out/ao_portaudio.c:241:9: error: field name not in record or union initializer
.suggestedLatency
^
audio/out/ao_portaudio.c:241:9: error: (near initialization for 'sp')
audio/out/ao_portaudio.c:242:42: error: 'PaDeviceInfo' has no member named 'defaultHighOutputLatency'
= Pa_GetDeviceInfo(pa_device)->defaultHighOutputLatency,
^
audio/out/ao_portaudio.c:242:13: warning: excess elements in scalar initializer [enabled by default]
= Pa_GetDeviceInfo(pa_device)->defaultHighOutputLatency,
^
audio/out/ao_portaudio.c:242:13: warning: (near initialization for 'sp') [enabled by default]
audio/out/ao_portaudio.c:248:13: error: unknown type name 'PaStreamParameters'
PaStreamParameters test = sp;
^
audio/out/ao_portaudio.c:249:17: error: request for member 'sampleFormat' in something not a structure or union
test.sampleFormat = fmt->pa_format;
^
audio/out/ao_portaudio.c:250:13: error: implicit declaration of function 'Pa_IsFormatSupported' [-Werror=implicit-function-declaration]
if (Pa_IsFormatSupported(NULL, &test, ao->samplerate) == paNoError)
^
audio/out/ao_portaudio.c:261:7: error: request for member 'sampleFormat' in something not a structure or union
sp.sampleFormat = fmt->pa_format;
^
audio/out/ao_oss.c: In function 'init':
audio/out/ao_portaudio.c:268:37: error: 'paFramesPerBufferUnspecified' undeclared (first use in this function)
paFramesPerBufferUnspecified, paNoFlag,
^
audio/out/ao_oss.c:363:18: warning: ignoring return value of 'write', declared with attribute warn_unused_result [-Wunused-result]
write(p->audio_fd, data, p->outburst);
^
audio/out/ao_portaudio.c:269:37: error: 'stream_callback' undeclared (first use in this function)
stream_callback, ao)))
^
audio/out/ao_portaudio.c:269:37: warning: passing argument 2 of 'Pa_OpenStream' makes integer from pointer without a cast [enabled by default]
In file included from audio/out/ao_portaudio.c:26:0:
/usr/include/portaudio.h:325:9: note: expected 'PaDeviceID' but argument is of type 'void *'
PaError Pa_OpenStream( PortAudioStream
* stream,
^
audio/out/ao_portaudio.c:269:37: warning: passing argument 3 of 'Pa_OpenStream' makes integer from pointer without a cast [enabled by default]
stream_callback, ao)))
^
In file included from audio/out/ao_portaudio.c:26:0:
/usr/include/portaudio.h:325:9: note: expected 'int' but argument is of type 'int '
PaError Pa_OpenStream( PortAudioStream
* stream,
^
audio/out/ao_portaudio.c:269:37: warning: passing argument 8 of 'Pa_OpenStream' makes integer from pointer without a cast [enabled by default]
stream_callback, ao)))
^
In file included from audio/out/ao_portaudio.c:26:0:
/usr/include/portaudio.h:325:9: note: expected 'PaSampleFormat' but argument is of type 'struct ao '
PaError Pa_OpenStream( PortAudioStream
* stream,
^
audio/out/ao_portaudio.c:269:37: error: too few arguments to function 'Pa_OpenStream'
stream_callback, ao)))
^
In file included from audio/out/ao_portaudio.c:26:0:
/usr/include/portaudio.h:325:9: note: declared here
PaError Pa_OpenStream( PortAudioStream
* stream,
^
audio/out/ao_portaudio.c: In function 'play':
audio/out/ao_portaudio.c:293:5: error: implicit declaration of function 'Pa_IsStreamStopped' [-Werror=implicit-function-declaration]
if (Pa_IsStreamStopped(priv->stream) == 1)
^
audio/out/ao_portaudio.c: In function 'get_delay':
audio/out/ao_portaudio.c:316:5: error: implicit declaration of function 'Pa_GetStreamTime' [-Werror=implicit-function-declaration]
double stream_time = Pa_GetStreamTime(priv->stream);
^
audio/out/ao_portaudio.c: At top level:
audio/out/ao_portaudio.c:145:13: warning: 'fill_silence' defined but not used [-Wunused-function]
static void fill_silence(unsigned char ptr, int len)
^
cc1: some warnings being treated as errors
make: *
* [audio/out/ao_portaudio.o] Error 1
make: *** Waiting for unfinished jobs....

@breed808
Copy link
Contributor

cc1: some warnings being treated as errors

It looks like the compiler is treating warnings as errors, and thus failing the build. This might be caused by a -Werror flag being set somewhere.

@bylee20
Copy link
Owner

bylee20 commented Dec 31, 2013

What is your version of PulseAudio? It seems that your PulseAudio API is not compatible with expected one.

@mmstick
Copy link
Author

mmstick commented Dec 31, 2013

The version in Ubuntu 14.04

apt-cache policy pulseaudio
pulseaudio:
Installed: 1:4.0-0ubuntu7
Candidate: 1:4.0-0ubuntu7
Version table:
*** 1:4.0-0ubuntu7 0
500 http://us.archive.ubuntu.com/ubuntu/ trusty/main amd64 Packages
100 /var/lib/dpkg/status

@bylee20
Copy link
Owner

bylee20 commented Jan 4, 2014

Oh, sorry, I've meant portauido not pulseaudio. What is your version of PortAudio?

@bylee20
Copy link
Owner

bylee20 commented Jan 4, 2014

In the case of Ubuntu 13.10, portaudio19-dev should be installed in order to compile CMPlayer, by the way.

@bylee20 bylee20 closed this as completed Jan 29, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants