Homebrew-core: mpc - incompatible error

Created on 23 Jul 2017  路  9Comments  路  Source: Homebrew/homebrew-core

Same issue as https://github.com/Homebrew/homebrew-core/issues/15923

dyld: Library not loaded: /usr/local/opt/libmpdclient/lib/libmpdclient.2.dylib
  Referenced from: /usr/local/bin/mpc
  Reason: Incompatible library version: mpc requires version 3.0.0 or later, but libmpdclient.2.dylib provides version 0.0.0
Trace/BPT trap: 5

Most helpful comment

I think there's still something wrong with libmpdclient. Both mpc and ncmpcpp won't connect to my mpd instance, showing Operation now in progress . Here's a trace of mpc's attempt:

dtrace: system integrity protection is on, some features will not be available

SYSCALL(args)            = return
mpd error: Operation now in progress
open("/dev/dtracehelper\0", 0x2, 0x7FFF5C49A8F0)                 = 3 0
ioctl(0x3, 0x80086804, 0x7FFF5C49A878)           = 0 0
close(0x3)               = 0 0
thread_selfid(0x3, 0x80086804, 0x7FFF5C49A878)           = 148204 0
bsdthread_register(0x7FFFC0625080, 0x7FFFC0625070, 0x2000)               = 1073741919 0
ulock_wake(0x1, 0x7FFF5C49A02C, 0x0)             = -1 Err#2
issetugid(0x1, 0x7FFF5C49A02C, 0x0)              = 0 0
mprotect(0x10379F000, 0x88, 0x1)                 = 0 0
mprotect(0x1037A1000, 0x1000, 0x0)               = 0 0
mprotect(0x1037B7000, 0x1000, 0x0)               = 0 0
mprotect(0x1037B8000, 0x1000, 0x0)               = 0 0
mprotect(0x1037CE000, 0x1000, 0x0)               = 0 0
mprotect(0x103774000, 0x1000, 0x1)               = 0 0
mprotect(0x10379F000, 0x88, 0x3)                 = 0 0
mprotect(0x10379F000, 0x88, 0x1)                 = 0 0
getpid(0x10379F000, 0x88, 0x1)           = 33807 0
stat64("/AppleInternal/XBS/.isChrooted\0", 0x7FFF5C499EE8, 0x1)          = -1 Err#2
stat64("/AppleInternal\0", 0x7FFF5C499F80, 0x1)          = -1 Err#2
csops(0x840F, 0x7, 0x7FFF5C499A10)               = -1 Err#22
dtrace: error on enabled probe ID 2158 (ID 561: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 40
ulock_wake(0x1, 0x7FFF5C499F90, 0x0)             = -1 Err#2
csops(0x840F, 0x7, 0x7FFF5C4992F0)               = -1 Err#22
shm_open(0x7FFFC0618DE7, 0x0, 0x0)               = 3 0
mmap(0x0, 0x1000, 0x1, 0x1, 0x3, 0x0)            = 0x1037CF000 0
close_nocancel(0x3)              = 0 0
open_nocancel("/etc/.mdns_debug\0", 0x0, 0x0)            = -1 Err#2
dtrace: error on enabled probe ID 2158 (ID 561: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 40
dtrace: error on enabled probe ID 2158 (ID 561: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 40
kqueue(0x7FFF5C49B3A0, 0x6, 0x7FBDB9003200)              = 3 0
kevent(0x3, 0x7FFF5C49B540, 0x1)                 = 0 0
socket(0x1, 0x1, 0x0)            = 4 0
setsockopt(0x4, 0xFFFF, 0x1022)          = 0 0
setsockopt(0x4, 0xFFFF, 0x1100)          = 0 0
connect_nocancel(0x4, 0x7FFF5C49B350, 0x6A)              = 0 0
sendto_nocancel(0x4, 0x7FBDB8C02CD0, 0x1C)               = 28 0
select_nocancel(0x5, 0x7FFF5C49B340, 0x0)                = 1 0
recvfrom_nocancel(0x4, 0x7FFF5C49B310, 0x4)              = 4 0
socketpair(0x1, 0x1, 0x0)                = 0 0
setsockopt(0x5, 0xFFFF, 0x1100)          = 0 0
sendto_nocancel(0x4, 0x7FBDB8C027E0, 0x32)               = 50 0
sendmsg_nocancel(0x4, 0x7FFF5C49B2C0, 0x0)               = 1 0
close_nocancel(0x6)              = 0 0
select_nocancel(0x6, 0x7FFF5C49B2C0, 0x0)                = 1 0
recvfrom_nocancel(0x5, 0x7FFF5C49B290, 0x4)              = 4 0
close_nocancel(0x5)              = 0 0
socketpair(0x1, 0x1, 0x0)                = 0 0
setsockopt(0x5, 0xFFFF, 0x1100)          = 0 0
sendto_nocancel(0x4, 0x7FBDB8C027E0, 0x32)               = 50 0
sendmsg_nocancel(0x4, 0x7FFF5C49B2C0, 0x0)               = 1 0
close_nocancel(0x6)              = 0 0
select_nocancel(0x6, 0x7FFF5C49B2C0, 0x0)                = 1 0
recvfrom_nocancel(0x5, 0x7FFF5C49B290, 0x4)              = 4 0
close_nocancel(0x5)              = 0 0
kevent(0x3, 0x7FFF5C49B540, 0x1)                 = 0 0
kevent(0x3, 0x0, 0x0)            = 1 0
kevent(0x3, 0x0, 0x0)            = 1 0
recvfrom_nocancel(0x4, 0x7FFF5C49B340, 0x1C)             = 28 0
recvfrom_nocancel(0x4, 0x7FBDB8C02D40, 0x25)             = 37 0
select_nocancel(0x5, 0x7FFF5C49B370, 0x0)                = 1 0
kevent(0x3, 0x7FFF5C49AE40, 0x1)                 = 0 0
recvfrom_nocancel(0x4, 0x7FFF5C49B340, 0x1C)             = 28 0
recvfrom_nocancel(0x4, 0x7FBDB8C027E0, 0x31)             = 49 0
select_nocancel(0x5, 0x7FFF5C49B370, 0x0)                = 0 0
kevent(0x3, 0x7FFF5C49AE40, 0x1)                 = 0 0
sendto_nocancel(0x4, 0x7FBDB8C02D50, 0x1C)               = 28 0
sendto_nocancel(0x4, 0x7FBDB8C02D50, 0x1C)               = 28 0
close_nocancel(0x3)              = 0 0
sysctlbyname(net.statistics, 0xE, 0x7FFFC936EB00, 0x7FFF5C49B290, 0x0)           = -1 Err#2
proc_info(0x2, 0x840F, 0x11)             = 56 0
proc_info(0x2, 0x840F, 0x11)             = 56 0
dtrace: error on enabled probe ID 2158 (ID 561: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 40
issetugid(0x7FFF5C49B050, 0x4, 0x7FFF5C49ADC8)           = 0 0
open("/Users/yacoob/brew/bin/mpc\0", 0x8004, 0x7FFFC0664583)             = 3 0
fcntl(0x3, 0x32, 0x7FFF5C49A650)                 = 0 0
close(0x3)               = 0 0
openat(0xFFFFFFFE, "/System/Library/Preferences/Logging/Subsystems/com.apple.network.plist\0", 0x1000104, 0x7FFF5C49ABB8)                = 3 0
lseek(0x3, 0x0, 0x2)             = 433 0
dtrace: error on enabled probe ID 2149 (ID 463: syscall::pread:return): invalid kernel access in action #12 at DIF offset 44
close(0x3)               = 0 0
openat(0xFFFFFFFE, "/Library/Preferences/Logging/Subsystems/com.apple.network.plist\0", 0x1000104, 0x7FFF5C49ABB8)               = -1 Err#2
socket(0x20, 0x2, 0x2)           = 3 0
setsockopt(0x3, 0xFFFF, 0x1022)          = 0 0
ioctl(0x3, 0xC0644E03, 0x7FFF5C49B1A0)           = 0 0
connect(0x3, 0x7FFF5C49B178, 0x20)               = 0 0
setsockopt(0x3, 0xFFFF, 0x1002)          = 0 0
fcntl(0x3, 0x3, 0x0)             = 2 0
fcntl(0x3, 0x4, 0x6)             = 0 0
sendto(0x3, 0x7FFF5C49B318, 0x24)                = 36 0
recvfrom(0x3, 0x7FFF5C49B2F0, 0x28)              = 40 0
sendto(0x3, 0x7FFF5C49B318, 0x24)                = 36 0
recvfrom(0x3, 0x7FFF5C49B2F0, 0x28)              = 40 0
socket(0x1E, 0x1, 0x6)           = 5 0
fcntl(0x5, 0x1, 0x0)             = 0 0
fcntl(0x5, 0x2, 0x1)             = 0 0
fcntl(0x5, 0x3, 0x0)             = 2 0
fcntl(0x5, 0x4, 0x6)             = 0 0
connect(0x5, 0x7FBDB8C02D50, 0x1C)               = -1 Err#36
close(0x5)               = 0 0
socket(0x2, 0x1, 0x6)            = 5 0
fcntl(0x5, 0x1, 0x0)             = 0 0
fcntl(0x5, 0x2, 0x1)             = 0 0
fcntl(0x5, 0x3, 0x0)             = 2 0
fcntl(0x5, 0x4, 0x6)             = 0 0
connect(0x5, 0x7FBDB8C02770, 0x10)               = -1 Err#36
close(0x5)               = 0 0
dtrace: error on enabled probe ID 2133 (ID 951: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 92

ncmpcpp behaves the same - can't connect showing EINPROGRESS. Both clients connect fine over unix socket. Clients from other hosts connect to this mpd instance just fine. Nothing has changed in my network configuration, and the connection problems started after libmpdclient got upgraded. Last but not least - I can telnet localhost 6600 and talk to my mpd just fine, so I'm guessing there's something wrong in what both mpc and ncmpcpp are doing.

All 9 comments

Is the change merge? Is still not working.

Now it's merged. brew update && brew upgrade

I think there's still something wrong with libmpdclient. Both mpc and ncmpcpp won't connect to my mpd instance, showing Operation now in progress . Here's a trace of mpc's attempt:

dtrace: system integrity protection is on, some features will not be available

SYSCALL(args)            = return
mpd error: Operation now in progress
open("/dev/dtracehelper\0", 0x2, 0x7FFF5C49A8F0)                 = 3 0
ioctl(0x3, 0x80086804, 0x7FFF5C49A878)           = 0 0
close(0x3)               = 0 0
thread_selfid(0x3, 0x80086804, 0x7FFF5C49A878)           = 148204 0
bsdthread_register(0x7FFFC0625080, 0x7FFFC0625070, 0x2000)               = 1073741919 0
ulock_wake(0x1, 0x7FFF5C49A02C, 0x0)             = -1 Err#2
issetugid(0x1, 0x7FFF5C49A02C, 0x0)              = 0 0
mprotect(0x10379F000, 0x88, 0x1)                 = 0 0
mprotect(0x1037A1000, 0x1000, 0x0)               = 0 0
mprotect(0x1037B7000, 0x1000, 0x0)               = 0 0
mprotect(0x1037B8000, 0x1000, 0x0)               = 0 0
mprotect(0x1037CE000, 0x1000, 0x0)               = 0 0
mprotect(0x103774000, 0x1000, 0x1)               = 0 0
mprotect(0x10379F000, 0x88, 0x3)                 = 0 0
mprotect(0x10379F000, 0x88, 0x1)                 = 0 0
getpid(0x10379F000, 0x88, 0x1)           = 33807 0
stat64("/AppleInternal/XBS/.isChrooted\0", 0x7FFF5C499EE8, 0x1)          = -1 Err#2
stat64("/AppleInternal\0", 0x7FFF5C499F80, 0x1)          = -1 Err#2
csops(0x840F, 0x7, 0x7FFF5C499A10)               = -1 Err#22
dtrace: error on enabled probe ID 2158 (ID 561: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 40
ulock_wake(0x1, 0x7FFF5C499F90, 0x0)             = -1 Err#2
csops(0x840F, 0x7, 0x7FFF5C4992F0)               = -1 Err#22
shm_open(0x7FFFC0618DE7, 0x0, 0x0)               = 3 0
mmap(0x0, 0x1000, 0x1, 0x1, 0x3, 0x0)            = 0x1037CF000 0
close_nocancel(0x3)              = 0 0
open_nocancel("/etc/.mdns_debug\0", 0x0, 0x0)            = -1 Err#2
dtrace: error on enabled probe ID 2158 (ID 561: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 40
dtrace: error on enabled probe ID 2158 (ID 561: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 40
kqueue(0x7FFF5C49B3A0, 0x6, 0x7FBDB9003200)              = 3 0
kevent(0x3, 0x7FFF5C49B540, 0x1)                 = 0 0
socket(0x1, 0x1, 0x0)            = 4 0
setsockopt(0x4, 0xFFFF, 0x1022)          = 0 0
setsockopt(0x4, 0xFFFF, 0x1100)          = 0 0
connect_nocancel(0x4, 0x7FFF5C49B350, 0x6A)              = 0 0
sendto_nocancel(0x4, 0x7FBDB8C02CD0, 0x1C)               = 28 0
select_nocancel(0x5, 0x7FFF5C49B340, 0x0)                = 1 0
recvfrom_nocancel(0x4, 0x7FFF5C49B310, 0x4)              = 4 0
socketpair(0x1, 0x1, 0x0)                = 0 0
setsockopt(0x5, 0xFFFF, 0x1100)          = 0 0
sendto_nocancel(0x4, 0x7FBDB8C027E0, 0x32)               = 50 0
sendmsg_nocancel(0x4, 0x7FFF5C49B2C0, 0x0)               = 1 0
close_nocancel(0x6)              = 0 0
select_nocancel(0x6, 0x7FFF5C49B2C0, 0x0)                = 1 0
recvfrom_nocancel(0x5, 0x7FFF5C49B290, 0x4)              = 4 0
close_nocancel(0x5)              = 0 0
socketpair(0x1, 0x1, 0x0)                = 0 0
setsockopt(0x5, 0xFFFF, 0x1100)          = 0 0
sendto_nocancel(0x4, 0x7FBDB8C027E0, 0x32)               = 50 0
sendmsg_nocancel(0x4, 0x7FFF5C49B2C0, 0x0)               = 1 0
close_nocancel(0x6)              = 0 0
select_nocancel(0x6, 0x7FFF5C49B2C0, 0x0)                = 1 0
recvfrom_nocancel(0x5, 0x7FFF5C49B290, 0x4)              = 4 0
close_nocancel(0x5)              = 0 0
kevent(0x3, 0x7FFF5C49B540, 0x1)                 = 0 0
kevent(0x3, 0x0, 0x0)            = 1 0
kevent(0x3, 0x0, 0x0)            = 1 0
recvfrom_nocancel(0x4, 0x7FFF5C49B340, 0x1C)             = 28 0
recvfrom_nocancel(0x4, 0x7FBDB8C02D40, 0x25)             = 37 0
select_nocancel(0x5, 0x7FFF5C49B370, 0x0)                = 1 0
kevent(0x3, 0x7FFF5C49AE40, 0x1)                 = 0 0
recvfrom_nocancel(0x4, 0x7FFF5C49B340, 0x1C)             = 28 0
recvfrom_nocancel(0x4, 0x7FBDB8C027E0, 0x31)             = 49 0
select_nocancel(0x5, 0x7FFF5C49B370, 0x0)                = 0 0
kevent(0x3, 0x7FFF5C49AE40, 0x1)                 = 0 0
sendto_nocancel(0x4, 0x7FBDB8C02D50, 0x1C)               = 28 0
sendto_nocancel(0x4, 0x7FBDB8C02D50, 0x1C)               = 28 0
close_nocancel(0x3)              = 0 0
sysctlbyname(net.statistics, 0xE, 0x7FFFC936EB00, 0x7FFF5C49B290, 0x0)           = -1 Err#2
proc_info(0x2, 0x840F, 0x11)             = 56 0
proc_info(0x2, 0x840F, 0x11)             = 56 0
dtrace: error on enabled probe ID 2158 (ID 561: syscall::sysctl:return): invalid kernel access in action #10 at DIF offset 40
issetugid(0x7FFF5C49B050, 0x4, 0x7FFF5C49ADC8)           = 0 0
open("/Users/yacoob/brew/bin/mpc\0", 0x8004, 0x7FFFC0664583)             = 3 0
fcntl(0x3, 0x32, 0x7FFF5C49A650)                 = 0 0
close(0x3)               = 0 0
openat(0xFFFFFFFE, "/System/Library/Preferences/Logging/Subsystems/com.apple.network.plist\0", 0x1000104, 0x7FFF5C49ABB8)                = 3 0
lseek(0x3, 0x0, 0x2)             = 433 0
dtrace: error on enabled probe ID 2149 (ID 463: syscall::pread:return): invalid kernel access in action #12 at DIF offset 44
close(0x3)               = 0 0
openat(0xFFFFFFFE, "/Library/Preferences/Logging/Subsystems/com.apple.network.plist\0", 0x1000104, 0x7FFF5C49ABB8)               = -1 Err#2
socket(0x20, 0x2, 0x2)           = 3 0
setsockopt(0x3, 0xFFFF, 0x1022)          = 0 0
ioctl(0x3, 0xC0644E03, 0x7FFF5C49B1A0)           = 0 0
connect(0x3, 0x7FFF5C49B178, 0x20)               = 0 0
setsockopt(0x3, 0xFFFF, 0x1002)          = 0 0
fcntl(0x3, 0x3, 0x0)             = 2 0
fcntl(0x3, 0x4, 0x6)             = 0 0
sendto(0x3, 0x7FFF5C49B318, 0x24)                = 36 0
recvfrom(0x3, 0x7FFF5C49B2F0, 0x28)              = 40 0
sendto(0x3, 0x7FFF5C49B318, 0x24)                = 36 0
recvfrom(0x3, 0x7FFF5C49B2F0, 0x28)              = 40 0
socket(0x1E, 0x1, 0x6)           = 5 0
fcntl(0x5, 0x1, 0x0)             = 0 0
fcntl(0x5, 0x2, 0x1)             = 0 0
fcntl(0x5, 0x3, 0x0)             = 2 0
fcntl(0x5, 0x4, 0x6)             = 0 0
connect(0x5, 0x7FBDB8C02D50, 0x1C)               = -1 Err#36
close(0x5)               = 0 0
socket(0x2, 0x1, 0x6)            = 5 0
fcntl(0x5, 0x1, 0x0)             = 0 0
fcntl(0x5, 0x2, 0x1)             = 0 0
fcntl(0x5, 0x3, 0x0)             = 2 0
fcntl(0x5, 0x4, 0x6)             = 0 0
connect(0x5, 0x7FBDB8C02770, 0x10)               = -1 Err#36
close(0x5)               = 0 0
dtrace: error on enabled probe ID 2133 (ID 951: syscall::write_nocancel:return): invalid kernel access in action #12 at DIF offset 92

ncmpcpp behaves the same - can't connect showing EINPROGRESS. Both clients connect fine over unix socket. Clients from other hosts connect to this mpd instance just fine. Nothing has changed in my network configuration, and the connection problems started after libmpdclient got upgraded. Last but not least - I can telnet localhost 6600 and talk to my mpd just fine, so I'm guessing there's something wrong in what both mpc and ncmpcpp are doing.

@yacaovsnc please report this upstream https://github.com/MusicPlayerDaemon/libmpdclient/issues

...so I take it you don't see any problems like that?

@yacoob this should now be fixed if you brew update and brew upgrade
https://github.com/Homebrew/homebrew-core/pull/15993

I've had the same issue and confirm it is now fixed for me.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dredmorbius picture dredmorbius  路  3Comments

Thirudhas picture Thirudhas  路  4Comments

tejasmanohar picture tejasmanohar  路  3Comments

yuna9 picture yuna9  路  4Comments

gregvirgin picture gregvirgin  路  3Comments