Menu

#42 `make moc` fails with `libasap_decoder.so moc/libasap_decoder.c:26:10: fatal error: config.h: No such file or directory 26 | #include "config.h" | ^~~~~~~~~~ compilation terminated. make: *** [moc/moc.mk:14: libasap_decoder.so] Error 1`.

2.1.2_ALPHA
closed-rejected
None
5
2025-02-09
2025-02-09
Drei Eck
No

I am building this, latest git checkout (git commit hash: f855c94), on Artix GNU/Linux (rolling release).

Doing a make moc fails with moc/libasap_decoder.c:26:10: fatal error: config.h: No such file or directory:

libasap_decoder.so
moc/libasap_decoder.c:26:10: fatal error: config.h: No such file or directory
   26 | #include "config.h"
      |          ^~~~~~~~~~
compilation terminated.
make: *** [moc/moc.mk:14: libasap_decoder.so] Error 1

Regards!

Discussion

  • Piotr Fusik

    Piotr Fusik - 2025-02-09

    What version of MOC are you building against?

     
    • Drei Eck

      Drei Eck - 2025-02-09

      mocp --version:

                This is : Music On Console
                Version : 2.5.2
               Revision : 2930
                  Built : Jan 19 2025 05:50:26
          Compiled with : OSS SNDIO ALSA JACK Network streams resample
             Running on : Linux 6.12.11-xanmod-customconfig-clang x86_64
                 Author : Damian Pietras
               Homepage : http://moc.daper.net/
                 E-Mail : mocmaint@daper.net
              Copyright : (C) 2003-2016 Damian Pietras and others
                License : GNU General Public License, version 2 or later
      

      pacman -Qql moc-pulse | grep -v '/$':

      /usr/bin/mocp
      /usr/lib/moc/decoder_plugins/libaac_decoder.so
      /usr/lib/moc/decoder_plugins/libffmpeg_decoder.so
      /usr/lib/moc/decoder_plugins/libflac_decoder.so
      /usr/lib/moc/decoder_plugins/libmodplug_decoder.so
      /usr/lib/moc/decoder_plugins/libmp3_decoder.so
      /usr/lib/moc/decoder_plugins/libsndfile_decoder.so
      /usr/lib/moc/decoder_plugins/libspeex_decoder.so
      /usr/lib/moc/decoder_plugins/libvorbis_decoder.so
      /usr/lib/moc/decoder_plugins/libwavpack_decoder.so
      /usr/share/doc/moc/README
      /usr/share/doc/moc/README_equalizer
      /usr/share/doc/moc/THANKS
      /usr/share/doc/moc/config.example
      /usr/share/doc/moc/keymap.example
      /usr/share/man/man1/mocp.1.gz
      /usr/share/moc/themes/black_theme
      /usr/share/moc/themes/darkdot_theme
      /usr/share/moc/themes/example_theme
      /usr/share/moc/themes/green_theme
      /usr/share/moc/themes/moca_theme
      /usr/share/moc/themes/nightly_theme
      /usr/share/moc/themes/red_theme
      /usr/share/moc/themes/transparent-background
      /usr/share/moc/themes/yellow_red_theme
      

      My installation of moc does not include any header files, but the error message looks as it searches for config.h in asap's local source repository anyway, not in a system directory.

       

      Last edit: Drei Eck 2025-02-09
  • Piotr Fusik

    Piotr Fusik - 2025-02-09
    • assigned_to: Piotr Fusik
     
  • Piotr Fusik

    Piotr Fusik - 2025-02-09

    config.h, common.h, decoder.h and files.h are definitely MOC header files.
    Did you follow the "Building the MOC plugin on Unix-like systems" instructions from the INSTALL file?

     
    • Drei Eck

      Drei Eck - 2025-02-09

      config.h, common.h, decoder.h and files.h are definitely MOC header files.

      I asked the package maintainer to include those in the package.

      And later I will check which parts of the MOC sources are really needed to build it, and try to adapt.

      Regards!

       

      Last edit: Drei Eck 2025-02-09
  • Piotr Fusik

    Piotr Fusik - 2025-02-09
    • status: open --> closed-rejected
     

Log in to post a comment.

MongoDB Logo MongoDB