From owner-freebsd-questions Sat Aug 10 13:47:28 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E133D37B400 for ; Sat, 10 Aug 2002 13:47:19 -0700 (PDT) Received: from clmboh1-smtp3.columbus.rr.com (clmboh1-smtp3.columbus.rr.com [65.24.0.112]) by mx1.FreeBSD.org (Postfix) with ESMTP id E37A343E5E for ; Sat, 10 Aug 2002 13:47:18 -0700 (PDT) (envelope-from jarnold@knightridder.com) Received: from jimarnold.org (a11a174.neo.rr.com [204.210.192.174]) by clmboh1-smtp3.columbus.rr.com (8.11.2/8.11.2) with ESMTP id g7AKlEp03670; Sat, 10 Aug 2002 16:47:15 -0400 (EDT) Received: from [192.168.0.4] (mac [192.168.0.4]) by jimarnold.org (Postfix) with ESMTP id C80A63694; Sat, 10 Aug 2002 16:47:11 -0400 (EDT) Mime-Version: 1.0 X-Sender: jim@spike Message-Id: In-Reply-To: <20020810013148.GA67851@freebsd.tekrealm.net> References: <000901c23e9f$5cddd800$0200a8c0@capm> <20020808160646.GA19691@wop21.wop.wtb.tue.nl> <20020810013148.GA67851@freebsd.tekrealm.net> Date: Sat, 10 Aug 2002 16:47:06 -0400 To: elitetek@tekrealm.net, "Karel J. Bosschaart" From: Jim Arnold Subject: Re: mpg123 core dumps out of cron Cc: Pascal Giannakakis , freebsd-questions@freebsd.org Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 # # $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 .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 > >-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