Skip to content

mocp - no valid sound driver #244

Description

@Meilenstein

Hello,
I try to switch from macports to pkgsrc on my Mac OS X 10.15 with all applications.
Now I have the problem, that the music on console (mocp) isn't compiled with jack.
For my understanding, the programm needs jack as sound driver.
With the other sounddrivers "null" and "sndio" the programm starts but I have no sound.

$ mocp -SF
Mar 13 15:00:20.163607: main.c:804 main(): This is Music On Console (revision Unversioned directory)
Mar 13 15:00:20.163984: main.c:810 main(): Configured: '--without-oss' '--without-rcc' '--without-timidity' '--without-musepack' '--without-alsa' '--without-ffmpeg' '--without-jack' '--without-modplug' '--without-samplerate' '--without-sidplay2' '--without-speex' '--without-wavpack' '--prefix=/opt/pkg' '--build=x86_64-apple-darwin18' '--host=x86_64-apple-darwin18' '--mandir=/opt/pkg/share/man' '--enable-option-checking=yes' 'build_alias=x86_64-apple-darwin18' 'host_alias=x86_64-apple-darwin18' 'CC=clang' 'CFLAGS=-pipe -pipe -I/opt/pkg/include -DLDAP_DEPRECATED -I/opt/pkg/include/faad2 -I/opt/pkg/include/db4 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include/ncurses' 'LDFLAGS=-L/opt/pkg/lib -L/usr/lib' 'LIBS=' 'CPPFLAGS=-I/opt/pkg/include -DLDAP_DEPRECATED -I/opt/pkg/include/faad2 -I/opt/pkg/include/db4 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include/ncurses' 'CXX=clang++' 'CXXFLAGS=-pipe -pipe -I/opt/pkg/include -DLDAP_DEPRECATED -I/opt/pkg/include/faad2 -I/opt/pkg/include/db4 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include/ncurses' 'PKG_CONFIG=/Users/pbulk/build/audio/moc/work/.tools/bin/pkg-config'
Mar 13 15:00:20.164016: main.c:816 main(): Running on: Darwin 19.3.0 x86_64
Mar 13 15:00:20.164039: main.c:479 log_command_line(): mocp -SF
Mär 13 15:00:20.169792: decoder.c:674 load_plugins(): Loaded 5 decoders: aac flac mp3 sndfile vorbis
Mär 13 15:00:20.169849: server.c:328 server_init(): Starting MOC Server
Mär 13 15:00:20.169946: log.c:195 log_init_stream(): Writing log to: stdout
Mär 13 15:00:20.170196: server.c:298 log_process_stack_size(): Process's stack size: 8388608
Mär 13 15:00:20.170225: server.c:315 log_pthread_stack_size(): PThread's stack size: 524288

FATAL_ERROR: No valid sound driver!

Mär 13 15:00:20.170261: audio.c:932 find_working_driver(): FATAL ERROR: No valid sound driver!

Activity

  1. self-assigned this
    on Mar 13, 2020
  2. jperkin commented on Mar 13, 2020

    @jperkin
    Collaborator

    Thanks, I'll take a look at enabling jack support.

  3. jperkin commented on Mar 13, 2020

    @jperkin
    Collaborator

    I've uploaded a test package with jack enabled, could you just check it works ok?

    Run this to install it:

    $ pkg_add -U https://us-east.manta.joyent.com/pkgsrc/public/test-packages/moc-2.5.2nb6.tgz
    

    Thanks.

  4. Meilenstein commented on Mar 19, 2020

    @Meilenstein
    Author

    Hello.
    sorry for my late answer.
    I tried your packages but it seems it doesn't work.

    $ pkgin list | grep moc
    moc-2.5.2nb6         Curses based console audio player
    

    I start jack like when I used macports before:
    jackd -d coreaudio &

    then I try to start moc

    $ mocp -R jack
    Running the server...
    FATAL_ERROR: No valid sound driver!
    FATAL_ERROR: Server exited!
    

    In addition, it seems that moc is not compiled with jack

    Apr  4 12:13:35.202582: main.c:804 main(): This is Music On Console (revision Unversioned directory)
    Apr  4 12:13:35.202962: main.c:810 main(): Configured: '--without-oss' '--without-rcc' '--without-timidity' '--without-musepack' '--without-alsa' '--without-ffmpeg' '--without-jack' '--without-modplug' '--without-samplerate' '--without-sidplay2' '--without-speex' '--without-wavpack' '--prefix=/opt/pkg' '--build=x86_64-apple-darwin18' '--host=x86_64-apple-darwin18' '--mandir=/opt/pkg/share/man' '--enable-option-checking=yes' 'build_alias=x86_64-apple-darwin18' 'host_alias=x86_64-apple-darwin18' 'CC=clang' 'CFLAGS=-pipe -pipe -I/opt/pkg/include -DLDAP_DEPRECATED -I/opt/pkg/include/faad2 -I/opt/pkg/include/db4 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include/ncurses' 'LDFLAGS=-L/opt/pkg/lib -L/usr/lib' 'LIBS=' 'CPPFLAGS=-I/opt/pkg/include -DLDAP_DEPRECATED -I/opt/pkg/include/faad2 -I/opt/pkg/include/db4 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include/ncurses' 'CXX=clang++' 'CXXFLAGS=-pipe -pipe -I/opt/pkg/include -DLDAP_DEPRECATED -I/opt/pkg/include/faad2 -I/opt/pkg/include/db4 -D_XOPEN_SOURCE_EXTENDED=1 -I/opt/pkg/include/ncurses' 'PKG_CONFIG=/Users/pbulk/build/audio/moc/work/.tools/bin/pkg-config'```
    
    
  5. Meilenstein commented on Apr 4, 2020

    @Meilenstein
    Author

    Strange. I installed your package again and now it works ... !!
    Thanks a lot!!

  6. Meilenstein commented on Apr 17, 2020

    @Meilenstein
    Author

    Hey.
    I did an upgrade with pkgin yesterday and now the unpatched version is "back again"

    Apr 17 11:14:20.865990: main.c:804 main(): This is Music On Console (revision Unversioned directory)
    Apr 17 11:14:20.866377: main.c:810 main(): Configured: '--without-oss' '--without-rcc' '--without-timidity' '--without-musepack' '--without-alsa' '--without-ffmpeg' '--without-jack' '--without-modplug' '--without-samplerate' '--without-sidplay2' '--without-speex' '--without-wavpack'```
    
  7. jperkin commented on Apr 17, 2020

    @jperkin
    Collaborator

    Yeh, I only enabled the option in the test package that I uploaded, the main repository is still using the default options. I'll enable the option now and it will show up in the next build.

  8. jperkin commented on Apr 21, 2020

    @jperkin
    Collaborator

    Ok the version in the repository is now built with jack enabled. I also enabled jack by default across a bunch of other packes.

  9. added a commit that references this issue on Sep 21, 2020
  10. added a commit that references this issue on Oct 19, 2020
  11. added a commit that references this issue on Oct 27, 2020
  12. 76 remaining items

  13. added a commit that references this issue on Jun 1, 2026
  14. added a commit that references this issue on Jul 26, 2026
  15. added a commit that references this issue on Aug 31, 2026
  16. added a commit that references this issue on Sep 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions