Mpd is not starting

Hi, I'm trying to launch mpd on omega onion 2+. I have installed (hopefully) all the dependencies
Package libc (1.1.16-1) installed in root is up to date.
Package glib2 (2.56.1-1) installed in root is up to date.
Package libcurl (7.60.0-3) installed in root is up to date.
Package libpthread (1.1.16-1) installed in root is up to date.
Package libmpdclient (2.11-1) installed in root is up to date.
Package libstdcpp (5.4.0-1) installed in root is up to date.
Package libflac (1.3.2-1) installed in root is up to date.
Package libmad (0.15.1b-4) installed in root is up to date.
Package libvorbisidec (1.0.3-20150104-3) installed in root is up to date.
Package alsa-lib (1.1.6-1) installed in root is up to date.
Package boost (1.67.0-2) installed in root is up to date.
Package boost-container (1.67.0-2) installed in root is up to date.
Package libexpat (2.2.5-1) installed in root is up to date.
Package libaudiofile (0.3.6-4) installed in root is up to date.
Package libfaad2 (2.8.8-1) installed in root is up to date.
Package libffmpeg-mini (3.2.10-3) installed in root is up to date.
Package libid3tag (0.15.1b-4) installed in root is up to date.
Package libmms (0.6.4-4) installed in root is up to date.
Package libogg (1.3.3-1) installed in root is up to date.
Package libsndfile (1.0.28-1) installed in root is up to date.
Package libvorbis (1.3.6-1) installed in root is up to date.
Package libupnp (1.6.19-2) installed in root is up to date.

But I can not start mpd

mpd
Error relocating /usr/bin/mpd: __cxa_init_primary_exception: symbol not found
Error relocating /usr/bin/mpd: _ZNSt15__exception_ptr13exception_ptrC1EPv: symbol not found

I noticed you have cross-posted this issue in the Github packages repository. However, I think I will answer you here as your problem is not development related (at least that is what I think at the moment).

From your Github posting, I see you are running a SNAPSHOT 17.01 somewhere between 17.01.2 and 17.01.3 so it will be difficult to actually debug your problem. I would prefer it if you were using a stable (latest) release if possible - like 17.01.4 plus the 17.01 packages. The problem you are seeing is likely a problem with the version of libstdcpp installed or a mismatch with the libc version in use.

Additionally, with mpd-full, you shouldn't be using libffmpeg-mini but libffmeg-audio-dec instead. libffmpeg-mini is a version of ffmpeg tailored for minidlna and only has a select number of audio codecs and some video codecs (which you probably don't want). Note that the choice of ffmpeg library is not the cause of your problem.

I have the latest trunk version of OpenWrt and packages running on an Omega2p without any problems. There was a major version update of MPD recently (eliminating the need for glib2) which only complicates the issue. If I get some time, I will attempt to install 17.01.4 + MPD on my system and report back my findings.

1 Like

Follow up question -- Is it the case you are running on the OnionOS release and not an official LEDE/OpenWrt build? If that is the case, I suggest you adjust your distfeeds.conf sources to point to the 17.01 packages and not the latest SNAPSHOT downloads. This may or may not solve your problem. The only tests I have made are with official LEDE builds/releases and MPD works just fine with them.

Thank you for your advice!
So I have upgraded the Omega2 as it is written here https://wiki.openwrt.org/doc/howto/generic.sysupgrade
The problem is, what I can not connect Omega to the wifi (and to the Internet as well)

uci show wireless
wireless.ra0=wifi-device
wireless.ra0.type='ralink'
wireless.ra0.mode='9'
wireless.ra0.channel='auto'
wireless.ra0.txpower='100'
wireless.ra0.ht='20'
wireless.ra0.country='US'
wireless.ra0.disabled='0'
wireless.@wifi-iface[0]=wifi-iface
wireless.@wifi-iface[0].device='ra0'
wireless.@wifi-iface[0].network='wlan'
wireless.@wifi-iface[0].mode='ap'
wireless.@wifi-iface[0].encryption='psk2'
wireless.@wifi-iface[0].ApCliAuthMode='WPA2PSK'
wireless.@wifi-iface[0].ApCliEncrypType='AES'
wireless.@wifi-iface[0].ssid='Omega-E245'
wireless.@wifi-iface[0].ApCliSsid='EasyBox-305104'
wireless.@wifi-iface[0].ApCliPassWord='Get_1n$ide'
wireless.@wifi-iface[0].key='Zet_1029834756'
wireless.@wifi-iface[0].ApCliEnable='1'
wireless.@wifi-config[0]=wifi-config
wireless.@wifi-config[0].ssid='EasyBox-305104'
wireless.@wifi-config[0].encryption='WPA2PSK'
wireless.@wifi-config[0].key='Get_1n$ide'
wireless.radio0=wifi-device
wireless.radio0.type='mac80211'
wireless.radio0.channel='11'
wireless.radio0.hwmode='11g'
wireless.radio0.path='platform/10300000.wmac'
wireless.radio0.htmode='HT20'
wireless.radio0.disabled='0'
wireless.default_radio0=wifi-iface
wireless.default_radio0.device='radio0'
wireless.default_radio0.network='lan'
wireless.default_radio0.mode='ap'
wireless.default_radio0.ssid='LEDE'
wireless.default_radio0.encryption='none'

I think I must flash again with -n flag

It also looks like the SD card is not mounting and maybe there are the configs used by wifi adapter