Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 98486 - mpg123 "could not open default NAS server"
Summary: mpg123 "could not open default NAS server"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-09 11:37 UTC by ta2002
Modified: 2007-06-30 23:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
strace of running mpg123 (strace.out,9.53 KB, text/plain)
2006-10-02 04:54 UTC, ta2002
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ta2002 2005-07-09 11:37:02 UTC
Trying to play a file ("mpg123 file.mp3") gets:

High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2 and 3.
Version 0.59s-r9 (2000/Oct/27). Written and copyrights by Michael Hipp.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
could not open default NAS server
$

This used to work, but one of the (many) packages
updated in the last month seems to have broken it.

I have tried all versions of mpg123 in portage
with the same result. If I compile mpg123 without
the nas USE flag, it works fine, but I still think
that mpg123 should work without HAVING to use nas.

Reproducible: Always
Steps to Reproduce:
1. Build mpg123 with the nas USE flag.
2. mpg123 /path/to/file.mp3
Actual Results:  
Wouldn't play the file, and gave the above message.

Expected Results:  
Played the file!

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.4.
20040808-r1, 2.6.12-gentoo-r4 i686)
=================================================================
System uname: 2.6.12-gentoo-r4 i686 Pentium III (Katmai)
Gentoo Base System version 1.6.12
Python:              dev-lang/python-2.3.5 [2.3.5 (#1, Jul  6 2005, 18:19:47)]
dev-lang/python:     2.3.5
sys-apps/sandbox:    [Not Present]
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.8.5-r3, 1.7.9-r1, 1.5, 1.9.5, 1.6.3, 1.4_p6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe -fomit-frame-pointer -msse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/
share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /
usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config 
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/Linux/
distributions/gentoo"
LINGUAS="en ru"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aac aalib acpi alsa apache2 arts avi berkdb bitmap-fonts caps 
cdparanoia cjk crypt cups dga directfb divx4linux dvd emboss encode faad fam 
fbcon ffmpeg flac freetype gd ggi gif gmp gphoto2 gpm gtk2 idea imagemagick imap 
imlib ipv6 javascript jikes joystick jpeg kde lcms libcaca libwww live 
lm_sensors mad matroska matrox mbox memlimit mmx mmxext motif mp3 mpeg mpi mysql 
nas ncurses network nls nptl nptlonly ogg oggvorbis opengl pam pdflib perl png 
qt quicktime readline rtc samba scanner sdl silc speex spell sse ssl svga tcpd 
theora tiff truetype truetype-fonts type1-fonts unicode usb userlocales utf8 
vanilla vorbis wifi xinerama xml2 xmms xv xvid zlib linguas_en linguas_ru 
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Jesus Rivero (Neurogeek) 2005-12-18 10:03:24 UTC
Hello, I wasn't able to reproduce the error using nas-1.7-r1 and mpg123-059s-r9. 

I emerged USE="nas" emerge -av mpg123 and it would play the file.. 
Any other step so i can reproduce the error?

Neurogeek
Comment 2 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-01 21:51:04 UTC
Reopen if it's still an issue.
Comment 3 ta2002 2006-10-02 04:52:28 UTC
Just rebuilt mpg123 on a different machine. Same problem.

Different info now:

$ equery list mpg123
[ Searching for package 'mpg123' in all categories among: ]
 * installed packages
[I--] [  ] media-sound/mpg123-0.59s-r11 (0)

$ emerge -p --info
Portage 2.1.1-r1 (default-linux/amd64/2006.1/desktop, gcc-3.4.5, glibc-2.3.6-r3, 2.6.15-gentoo-r7 x86_64)
=================================================================
System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.6.14
Last Sync: Mon, 02 Oct 2006 07:00:08 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/gcc-config: 1.3.13-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -O2 -pipe -mfpmath=sse"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/lib/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=k8 -O2 -pipe -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_NZ.UTF-8"
LINGUAS="en ru"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/sunrise"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X aac aalib acpi alsa arts audiofile berkdb bitmap-fonts bzip2 caps cdparanoia cdr cjk crypt css cups dbus dga directfb dlloader dri dvd dvdr dvdread elibc_glibc encode exif expat fbcon ffmpeg flac gcj ggi gif glibc-omitfp gmp gphoto2 gpm gstreamer gtk2 hal idea imagemagick imap imlib input_devices_keyboard input_devices_mouse input_devices_synaptics ipv6 javascript jbig joystick jpeg kde kernel_linux lcms libcaca libwww linguas_en linguas_ru live lm_sensors mad matroska mbox memlimit mng mp3 mpeg mysql nas ncurses network nls no-old-linux nodrm nptl nptlonly ogg opengl pcre pdflib perl png ppds qt3 quicktime readline rtc samba scanner sdl silc sndfile speex spell ssl stream sysfs tcpd theora threads tiff timidity truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales utf8 vcd video_cards_radeon video_cards_vesa vorbis wifi xinerama xml xmms xorg xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS, MAKEOPTS, PORTAGE_RSYNC_EXTRA_OPTS

I don't know if this matters, but it looks like nas has become some kind of default.

$ ls -al /usr/bin/mpg123*
lrwxrwxrwx 1 root root     10 2006-10-02 11:35:56 /usr/bin/mpg123 -> mpg123-nas*
-rwxr-xr-x 1 root root 183112 2006-10-02 11:35:56 /usr/bin/mpg123-nas*

Actually, the strace (which I don't understand much of) came out small enough to include (actually, it didn't, but I will attach it).
Comment 4 ta2002 2006-10-02 04:54:09 UTC
Created attachment 98596 [details]
strace of running mpg123
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2007-04-08 18:07:30 UTC
Can you reproduce this w/ 0.65?
Comment 6 ta2002 2007-04-10 09:48:39 UTC
I had completely forgot about this (filed twenty-one months ago), and
have long ago switched to another alternative.

Nevertheless, I did install the latest version, and it does play mp3
files without any problems,...

BUT it seems the ebuild now restricts the audio output to ONE destination
with the USE flag priorities determined by the Gentoo developer. I don't
know if the source code has this limitation, but basically, I could have
achieved this result before a long time ago just by "USE=-nas" (since the
new ebuild completely ignores the nas USE flag with any of the esd, sdl,
oss, or alsa USE flags set).

If the program truly can't handle more than one audio output without a
recompilation, then you should probably close this bug as INVALID.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2007-06-30 23:36:04 UTC
(In reply to comment #6)
> I had completely forgot about this (filed twenty-one months ago), and
> have long ago switched to another alternative.
> 
> Nevertheless, I did install the latest version, and it does play mp3
> files without any problems,...

Well, closing then. For any other issues, please file a new bug. Thanks for testing.