Spek 0.8.3 make error in Arch Linux, regardless of sudo or not, cannot build Spek from source, dependencies already satisfied

50 views
Skip to first unread message

David H

unread,
May 24, 2020, 2:24:45 PM5/24/20
to spek-users
Error output:
make
make  all-recursive
make[1]: Entering directory '/home/david/Downloads/spek-0.8.3'
Making all in data
make[2]: Entering directory '/home/david/Downloads/spek-0.8.3/data'
Making all in icons
make[3]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons'
Making all in 16x16
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons/16x16'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons/16x16'
Making all in 22x22
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons/22x22'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons/22x22'
Making all in 24x24
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons/24x24'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons/24x24'
Making all in 32x32
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons/32x32'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons/32x32'
Making all in 48x48
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons/48x48'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons/48x48'
Making all in scalable
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons/scalable'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons/scalable'
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons'
make[3]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons'
make[3]: Entering directory '/home/david/Downloads/spek-0.8.3/data'
  ITMRG  spek.desktop
make[3]: Leaving directory '/home/david/Downloads/spek-0.8.3/data'
make[2]: Leaving directory '/home/david/Downloads/spek-0.8.3/data'
Making all in man
make[2]: Entering directory '/home/david/Downloads/spek-0.8.3/man'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/david/Downloads/spek-0.8.3/man'
Making all in po
make[2]: Entering directory '/home/david/Downloads/spek-0.8.3/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/david/Downloads/spek-0.8.3/po'
Making all in src
make[2]: Entering directory '/home/david/Downloads/spek-0.8.3/src'
  CXX      libspek_a-spek-audio.o
spek-audio.cc: In constructor ‘Audio::Audio()’:
spek-audio.cc:82:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations]
   82 |     av_register_all();
      |                     ^
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:2050:6: note: declared here
 2050 | void av_register_all(void);
      |      ^~~~~~~~~~~~~~~
spek-audio.cc: In member function ‘std::unique_ptr<AudioFile> Audio::open(const string&)’:
spek-audio.cc:105:45: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  105 |             if (format_context->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
      |                                             ^~~~~
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:105:45: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  105 |             if (format_context->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
      |                                             ^~~~~
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:105:45: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  105 |             if (format_context->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
      |                                             ^~~~~
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:120:33: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  120 |         codec_context = stream->codec;
      |                                 ^~~~~
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:120:33: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  120 |         codec_context = stream->codec;
      |                                 ^~~~~
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:120:33: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  120 |         codec_context = stream->codec;
      |                                 ^~~~~
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc: In constructor ‘AudioFileImpl::AudioFileImpl(AudioError, AVFormatContext*, int, const string&, int, int, int, int, double, bool, int, bool)’:
spek-audio.cc:205:19: error: ‘avcodec_alloc_frame’ was not declared in this scope; did you mean ‘avcodec_send_frame’?
  205 |     this->frame = avcodec_alloc_frame();
      |                   ^~~~~~~~~~~~~~~~~~~
      |                   avcodec_send_frame
spek-audio.cc: In destructor ‘virtual AudioFileImpl::~AudioFileImpl()’:
spek-audio.cc:221:9: error: ‘avcodec_free_frame’ was not declared in this scope; did you mean ‘avcodec_send_frame’?
  221 |         avcodec_free_frame(&this->frame);
      |         ^~~~~~~~~~~~~~~~~~
      |         avcodec_send_frame
spek-audio.cc:230:37: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  230 |         av_free_packet(&this->packet);
      |                                     ^
In file included from /usr/include/libavformat/avformat.h:317,
                 from spek-audio.cc:21:
/usr/include/libavcodec/avcodec.h:4473:6: note: declared here
 4473 | void av_free_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
spek-audio.cc:234:85: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  234 | dec_context = this->format_context->streams[this->audio_stream]->codec;
      |                                                                  ^~~~~

In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:234:85: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  234 | dec_context = this->format_context->streams[this->audio_stream]->codec;
      |                                                                  ^~~~~

In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:234:85: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  234 | dec_context = this->format_context->streams[this->audio_stream]->codec;
      |                                                                  ^~~~~

In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc: In member function ‘virtual int AudioFileImpl::read()’:
spek-audio.cc:261:13: error: ‘avcodec_get_frame_defaults’ was not declared in this scope; did you mean ‘avcodec_get_frame_class’?
  261 |             avcodec_get_frame_defaults(this->frame);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |             avcodec_get_frame_class

spek-audio.cc:262:85: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  262 | dec_context = this->format_context->streams[this->audio_stream]->codec;
      |                                                                  ^~~~~

In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:262:85: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  262 | dec_context = this->format_context->streams[this->audio_stream]->codec;
      |                                                                  ^~~~~

In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:262:85: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  262 | dec_context = this->format_context->streams[this->audio_stream]->codec;
      |                                                                  ^~~~~

In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:264:98: warning: ‘int avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  264 | c_decode_audio4(codec_context, this->frame, &got_frame, &this->packet);
      |                                                                      ^

In file included from /usr/include/libavformat/avformat.h:317,
                 from spek-audio.cc:21:
/usr/include/libavcodec/avcodec.h:4779:5: note: declared here
 4779 | int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
      |     ^~~~~~~~~~~~~~~~~~~~~
spek-audio.cc:305:41: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  305 |             av_free_packet(&this->packet);
      |                                         ^
In file included from /usr/include/libavformat/avformat.h:317,
                 from spek-audio.cc:21:
/usr/include/libavcodec/avcodec.h:4473:6: note: declared here
 4473 | void av_free_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
spek-audio.cc:313:41: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  313 |             av_free_packet(&this->packet);
      |                                         ^
In file included from /usr/include/libavformat/avformat.h:317,
                 from spek-audio.cc:21:
/usr/include/libavcodec/avcodec.h:4473:6: note: declared here
 4473 | void av_free_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
make[2]: *** [Makefile:540: libspek_a-spek-audio.o] Error 1
make[2]: Leaving directory '/home/david/Downloads/spek-0.8.3/src'
make[1]: *** [Makefile:439: all-recursive] Error 1
make[1]: Leaving directory '/home/david/Downloads/spek-0.8.3'
make: *** [Makefile:374: all] Error 2

david:~/Downloads/spek-0.8.3 $ sudo make
[sudo] password for david:
make  all-recursive
make[1]: Entering directory '/home/david/Downloads/spek-0.8.3'
Making all in data
make[2]: Entering directory '/home/david/Downloads/spek-0.8.3/data'
Making all in icons
make[3]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons'
Making all in 16x16
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons/16x16'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons/16x16'
Making all in 22x22
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons/22x22'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons/22x22'
Making all in 24x24
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons/24x24'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons/24x24'
Making all in 32x32
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons/32x32'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons/32x32'
Making all in 48x48
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons/48x48'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons/48x48'
Making all in scalable
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons/scalable'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons/scalable'
make[4]: Entering directory '/home/david/Downloads/spek-0.8.3/data/icons'
make[4]: Nothing to be done for 'all-am'.
make[4]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons'
make[3]: Leaving directory '/home/david/Downloads/spek-0.8.3/data/icons'
make[3]: Entering directory '/home/david/Downloads/spek-0.8.3/data'
make[3]: Nothing to be done for 'all-am'.
make[3]: Leaving directory '/home/david/Downloads/spek-0.8.3/data'
make[2]: Leaving directory '/home/david/Downloads/spek-0.8.3/data'
Making all in man
make[2]: Entering directory '/home/david/Downloads/spek-0.8.3/man'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/david/Downloads/spek-0.8.3/man'
Making all in po
make[2]: Entering directory '/home/david/Downloads/spek-0.8.3/po'
make[2]: Nothing to be done for 'all'.
make[2]: Leaving directory '/home/david/Downloads/spek-0.8.3/po'
Making all in src
make[2]: Entering directory '/home/david/Downloads/spek-0.8.3/src'
  CXX      libspek_a-spek-audio.o
spek-audio.cc: In constructor ‘Audio::Audio()’:
spek-audio.cc:82:21: warning: ‘void av_register_all()’ is deprecated [-Wdeprecated-declarations]
   82 |     av_register_all();
      |                     ^
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:2050:6: note: declared here
 2050 | void av_register_all(void);
      |      ^~~~~~~~~~~~~~~
spek-audio.cc: In member function ‘std::unique_ptr<AudioFile> Audio::open(const string&)’:
spek-audio.cc:105:45: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  105 |             if (format_context->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
      |                                             ^~~~~
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:105:45: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  105 |             if (format_context->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
      |                                             ^~~~~
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:105:45: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  105 |             if (format_context->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO) {
      |                                             ^~~~~
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:120:33: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  120 |         codec_context = stream->codec;
      |                                 ^~~~~
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:120:33: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  120 |         codec_context = stream->codec;
      |                                 ^~~~~
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:120:33: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  120 |         codec_context = stream->codec;
      |                                 ^~~~~
In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc: In constructor ‘AudioFileImpl::AudioFileImpl(AudioError, AVFormatContext*, int, const string&, int, int, int, int, double, bool, int, bool)’:
spek-audio.cc:205:19: error: ‘avcodec_alloc_frame’ was not declared in this scope; did you mean ‘avcodec_send_frame’?
  205 |     this->frame = avcodec_alloc_frame();
      |                   ^~~~~~~~~~~~~~~~~~~
      |                   avcodec_send_frame
spek-audio.cc: In destructor ‘virtual AudioFileImpl::~AudioFileImpl()’:
spek-audio.cc:221:9: error: ‘avcodec_free_frame’ was not declared in this scope; did you mean ‘avcodec_send_frame’?
  221 |         avcodec_free_frame(&this->frame);
      |         ^~~~~~~~~~~~~~~~~~

      |         avcodec_send_frame
spek-audio.cc:230:37: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  230 |         av_free_packet(&this->packet);
      |                                     ^
In file included from /usr/include/libavformat/avformat.h:317,
                 from spek-audio.cc:21:
/usr/include/libavcodec/avcodec.h:4473:6: note: declared here
 4473 | void av_free_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
spek-audio.cc:234:85: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  234 | dec_context = this->format_context->streams[this->audio_stream]->codec;
      |                                                                  ^~~~~

In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:234:85: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  234 | dec_context = this->format_context->streams[this->audio_stream]->codec;
      |                                                                  ^~~~~

In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:234:85: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  234 | dec_context = this->format_context->streams[this->audio_stream]->codec;
      |                                                                  ^~~~~

In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc: In member function ‘virtual int AudioFileImpl::read()’:
spek-audio.cc:261:13: error: ‘avcodec_get_frame_defaults’ was not declared in this scope; did you mean ‘avcodec_get_frame_class’?
  261 |             avcodec_get_frame_defaults(this->frame);
      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~

      |             avcodec_get_frame_class
spek-audio.cc:262:85: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  262 | dec_context = this->format_context->streams[this->audio_stream]->codec;
      |                                                                  ^~~~~

In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:262:85: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  262 | dec_context = this->format_context->streams[this->audio_stream]->codec;
      |                                                                  ^~~~~

In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:262:85: warning: ‘AVStream::codec’ is deprecated [-Wdeprecated-declarations]
  262 | dec_context = this->format_context->streams[this->audio_stream]->codec;
      |                                                                  ^~~~~

In file included from spek-audio.cc:21:
/usr/include/libavformat/avformat.h:885:21: note: declared here
  885 |     AVCodecContext *codec;
      |                     ^~~~~
spek-audio.cc:264:98: warning: ‘int avcodec_decode_audio4(AVCodecContext*, AVFrame*, int*, const AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  264 | c_decode_audio4(codec_context, this->frame, &got_frame, &this->packet);
      |                                                                      ^

In file included from /usr/include/libavformat/avformat.h:317,
                 from spek-audio.cc:21:
/usr/include/libavcodec/avcodec.h:4779:5: note: declared here
 4779 | int avcodec_decode_audio4(AVCodecContext *avctx, AVFrame *frame,
      |     ^~~~~~~~~~~~~~~~~~~~~
spek-audio.cc:305:41: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  305 |             av_free_packet(&this->packet);
      |                                         ^
In file included from /usr/include/libavformat/avformat.h:317,
                 from spek-audio.cc:21:
/usr/include/libavcodec/avcodec.h:4473:6: note: declared here
 4473 | void av_free_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
spek-audio.cc:313:41: warning: ‘void av_free_packet(AVPacket*)’ is deprecated [-Wdeprecated-declarations]
  313 |             av_free_packet(&this->packet);
      |                                         ^
In file included from /usr/include/libavformat/avformat.h:317,
                 from spek-audio.cc:21:
/usr/include/libavcodec/avcodec.h:4473:6: note: declared here
 4473 | void av_free_packet(AVPacket *pkt);
      |      ^~~~~~~~~~~~~~
make[2]: *** [Makefile:540: libspek_a-spek-audio.o] Error 1
make[2]: Leaving directory '/home/david/Downloads/spek-0.8.3/src'
make[1]: *** [Makefile:439: all-recursive] Error 1
make[1]: Leaving directory '/home/david/Downloads/spek-0.8.3'
make: *** [Makefile:374: all] Error 2

Reply all
Reply to author
Forward
0 new messages