alsaplayer fails to compile
Jeremy Messenger
mezz7 at cox.net
Wed Jul 2 13:57:38 PDT 2003
On 02 Jul 2003 16:27:23 -0400, Adam <blueeskimo at gmx.net> wrote:
> Making all in xosd
> Making all in output
> Making all in alsa-0.5.x
> Making all in alsa-final
> Making all in oss
> source='oss.c' object='oss.lo' libtool=yes depfile='.deps/oss.Plo'
> tmpdepfile='.deps/oss.TPlo' depmode=gcc /bin/sh ../../depcomp /bin/sh
> ../../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I../.. -
> I/usr/local/include -I/usr/X11R6/include -I/usr/local/include
> -D_REENTRANT -I../.. -I../../alsaplayer -fexpensive-optimizations
> -funroll-loops -finline-functions -ffast-math -Wall -O -pipe -O -pipe -c
> -o oss.lo `test -f 'oss.c' || echo './'`oss.c
> mkdir .libs
> cc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/include
> -I/usr/X11R6/include -I/usr/local/include -D_REENTRANT -I../..
> -I../../alsaplayer -fexpensive-optimizations -funroll-loops
> -finline-functions -ffast-math -Wall -O -pipe -O -pipe -c oss.c
> -Wp,-MD,.deps/oss.TPlo -fPIC -DPIC -o .libs/oss.lo
> oss.c: In function `oss_set_buffer':
> oss.c:87: `AFMT_S16_NE' undeclared (first use in this function)
> oss.c:87: (Each undeclared identifier is reported only once
> oss.c:87: for each function it appears in.)
> *** Error code 1
>
> Stop in /usr/ports/audio/alsaplayer/work/alsaplayer-0.99.75/output/oss.
> *** Error code 1
>
> Stop in /usr/ports/audio/alsaplayer/work/alsaplayer-0.99.75/output.
> *** Error code 1
>
> Stop in /usr/ports/audio/alsaplayer/work/alsaplayer-0.99.75.
> *** Error code 1
>
> Stop in /usr/ports/audio/alsaplayer/work/alsaplayer-0.99.75.
> *** Error code 1
>
> Stop in /usr/ports/audio/alsaplayer.
>
>
> *****
>
> Anyone know what is causing this?
I helped one of my friend long time ago, I don't remember where I found the
info from but I am sure it's in google. It looks somehow similar error.. At
the moment, it's all in my head so you can try this patch if you want to.
Replace from AFMT_S16_NE to AFMT_S16_LE like this:
------------patch-output::oss::oss.c------------
--- output/oss/oss.c.orig Wed Jul 2 15:47:10 2003
+++ output/oss/oss.c Wed Jul 2 15:47:34 2003
@@ -84,7 +84,7 @@
val = (count << 16) + hops;
ioctl(oss_fd,SNDCTL_DSP_SETFRAGMENT,&val);
- val = AFMT_S16_NE;
+ val = AFMT_S16_LE;
ioctl(oss_fd,SNDCTL_DSP_SETFMT,&val);
val = *channels - 1;
ioctl(oss_fd,SNDCTL_DSP_STEREO,&val);
------------patch-output::oss::oss.c------------
Warning: This is untest.. If it doesn't work, then I guess you can try to
use the WITHOUT_OSS define.
Cheers,
Mezz
--
bsdforums.org 's moderator, mezz.
More information about the freebsd-ports
mailing list