Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Aug 2002 16:47:06 -0400
From:      Jim Arnold <jarnold@knightridder.com>
To:        elitetek@tekrealm.net, "Karel J. Bosschaart" <karelj@wop21.wop.wtb.tue.nl>
Cc:        Pascal Giannakakis <capm@gmx.net>, freebsd-questions@freebsd.org
Subject:   Re: mpg123 core dumps out of cron
Message-ID:  <a05111b18b97b2b36744d@[192.168.0.4]>
In-Reply-To: <20020810013148.GA67851@freebsd.tekrealm.net>
References:  <a05111b03b977ae813aa6@[192.168.0.4]> <000901c23e9f$5cddd800$0200a8c0@capm> <a05111b04b97819fe6c03@[192.168.0.4]> <20020808160646.GA19691@wop21.wop.wtb.tue.nl> <20020810013148.GA67851@freebsd.tekrealm.net>

next in thread | previous in thread | raw e-mail | index | archive | help
At 6:31 PM -0700 8/9/02, Andrew Stuart wrote:
>I havent checked out mpg321, but the problem with mpg123 is they enabled
>esound support in the makefile (if you have esound installed on the
>system already), unfortantly there is no knob to turn this off, so short
>of manually ripping the commands outta the ports Makefile your stuck..
>
>if you want to hack at it yourself.. edit audio/mpg123/Makefile
>
>and remove:
>WANT_ESOUND=    yes
>
>.if defined(HAVE_ESOUND)
>USE_ESOUND=     yes
>ALL_TARGET=     freebsd-esd
>
>and modify:
>.elif defined(HAVE_NAS)
>
>changing it to look like :
>.if defined(HAVE_NAS)
>
>
>and you should have a fully fuctional esd-less mpg123 that will work in
>scripts and cron/at/etc
>
>:)


Unless I did something wrong this did not work. I first deleted mpg123 with
pkg_deinstall, modified the Makefile as you suggested above, then built mpg123
again from the port.

I am still dumping core when it's run out of cron. Below is my 
modified Makefile for mpg123.

Directory: /max/mp3/best/
Playing MPEG stream from abba_takeachance.mp3 ...
/home/jim/bin/wakeup_music.sh: line 3: 50991 Segmentation fault 
(core dumped) /usr/local/bin/mpg123 -z --list /max/mp3/wakeup.m3u

Thanks,
Jim

# New ports collection makefile for:    mpg123
# Date created:                 25 June 1997
# Whom:                         Carey Jones <mcj@acquiesce.org>
#
# $FreeBSD: ports/audio/mpg123/Makefile,v 1.44 2002/07/08 09:57:13 des Exp $
#

PORTNAME=       mpg123
PORTVERSION=    0.59r
PORTREVISION=   8
CATEGORIES=     audio ipv6
MASTER_SITES=   http://www.mpg123.de/mpg123/ \
                 http://www-ti.informatik.uni-tuebingen.de/~hippm/mpg123/ \
                 ftp://ftp.tu-clausthal.de/pub/unix/audio/mpg123/ \
                 http://ftp.tu-clausthal.de/pub/unix/audio/mpg123/
DISTFILES=      mpg123-0.59r-pl1.tar.gz

PATCH_SITES=    ftp://ftp.kame.net/pub/kame/misc/ \
                 http://www.unix-ag.org/Linux-Alpha/Packages/ \
                 ${MASTER_SITE_LOCAL:S/%SUBDIR%/sobomax/}
PATCHFILES=     mpg123-059r-v6-20000713b.diff.gz \
                 mpg123-059r-recode-20010410.diff.gz \
                 l3.diff.gz
PATCH_DIST_STRIP=       -p1

MAINTAINER=     des@FreeBSD.org


.if defined(WITH_ICONV)
MAKE_ARGS+=     WITH_ICONV=yes
.if defined(DEFAULT_RECODE)
MAKE_ARGS+=     DEFAULT_RECODE=${DEFAULT_RECODE}
.endif
LIB_DEPENDS+=   iconv.3:${PORTSDIR}/converters/libiconv
.endif

.if defined(WITH_NAS)
HAVE_NAS=       yes
LIB_DEPENDS=    audio.2:${PORTSDIR}/audio/nas
MAKE_ENV+=      HAVE_NAS=${HAVE_NAS}
.endif

MAN1=           mpg123.1

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 400014
MAKE_ENV+=      USE_INET6=yes
.endif


.if defined(HAVE_NAS)
PKGNAMESUFFIX=  -nas
ALL_TARGET=     freebsd-nas
.else
ALL_TARGET=     freebsd
.endif

pre-fetch:
.if !defined(WITH_NAS)
         @${ECHO_MSG}
         @${ECHO_MSG} "If you want to compile with NAS support,"
         @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITH_NAS=yes\""
         @${ECHO_MSG}
.endif
.if !defined(WITH_ICONV)
         @${ECHO_MSG}
         @${ECHO_MSG} "If you want to enable ID3 tags charset recoding,"
         @${ECHO_MSG} "hit Ctrl-C and use \"make WITH_ICONV=yes\"; you can"
         @${ECHO_MSG} "also specify DEFAULT_RECODE in 'from:to' format"
         @${ECHO_MSG}
.endif
.if ${MACHINE_ARCH} == "i386"
.if ${OSVERSION} >= 430000
.if ${MACHINE_CPU:M3dnow}
OPT_ARCH=       3dnow
.elif ${MACHINE_CPU:Mi586}
OPT_ARCH=       i586
.elif ${MACHINE_CPU:Mi486}
OPT_ARCH=       i486
.endif
.else
.if !defined(OPT_ARCH) || ((${OPT_ARCH} != "i486") && (${OPT_ARCH} != "i586") \
     && (${OPT_ARCH} != "3dnow"))
         @${ECHO_MSG} 
"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
         @${ECHO_MSG} "Note: you can set OPT_ARCH to optimize for your 
hardware."
         @${ECHO_MSG} "(e.g. make OPT_ARCH=i486)."
         @${ECHO_MSG} "Valid values are: i486, i586, 3dnow"
         @${ECHO_MSG} 
"+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
OPT_ARCH?=      i586
.endif
.endif
.endif

.if defined(OPT_ARCH)
MAKE_ARGS+=     OPT_ARCH=${OPT_ARCH}
.endif

.include <bsd.port.post.mk>





>
>-Andrew
>
>On Thu, 08 Aug 2002 at 18:06:46 +0200, Karel J. Bosschaart wrote:
>>  On Thu, Aug 08, 2002 at 08:52:59AM -0400, Jim Arnold wrote:
>>  > > > Thought it would be nifty to have my system play a tune to wake
>>  > >> me up in the morning. When I try to run mpg123 out of cron the
>>  > >> program complains about "exec: esd: not found" and the core dumps.
>>  > >
>>  > >Yes, it is realy nice to wake up with your fav tune, i utilize "mpg321"
>>  > >together with "at". mpg321, not mpg123. :)
>>  > >
>>  > >pkg_add -r mpg321
>>  >
>>  >
>>  > Thanks! Didn't know about mpg321. Works like a charm!
>>  >
>>  mpg123 used to work for me for a long time from cron until some recent
>>  upgrades, since then I'm also getting the esd error. I'll go and try
>>  mpg321 as well.
>>
>>  Karel.
>>
>>  To Unsubscribe: send mail to majordomo@FreeBSD.org
>>  with "unsubscribe freebsd-questions" in the body of the message


-- 
________________________________________
Jim Arnold -  Ohio.com - jarnold@knightridder.com
Cell: 330.730.0797	Voice: 330.572.2822
AOL IM: instantjim    /    Yahoo: jim0266    


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a05111b18b97b2b36744d>