[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    another problem with kdemultimedia
From:       "Carlos F. A. Paniago" <pan () panix ! ecof ! org ! br>
Date:       2000-04-30 17:21:51
[Download RAW message or body]

Another cimple problem with kdemultimedia CVS 2.0 and FreeBSD 4.0 and
XFree86-4.0.:
---
g++ -DHAVE_CONFIG_H -I. -I. -I.. -I/usr/local/include -I/usr/X11R6/include/X11/q
t -I/usr/X11R6/include  -I/usr/local/include    -O2 -fno-exceptions -fno-rtti -f
no-check-new -Wall -pedantic -W -Wpointer-arith -Wmissing-prototypes -Wwrite-str
ings -Wno-long-long -fno-builtin  -c mixer.cpp
In file included from kmix-platforms.cpp:67,
from mixer.cpp:29:
mixer_oss.cpp: In method `int Mixer_OSS::openMixer()':
mixer_oss.cpp:109: `errno' undeclared (first use this function)
mixer_oss.cpp:109: (Each undeclared identifier is reported only once
mixer_oss.cpp:109: for each function it appears in.)
mixer_oss.cpp:109: `EACCES' undeclared (first use this function)
mixer_oss.cpp:159: aggregate `struct mixer_info l_mix_info' has incomplete type
and cannot be initialized
mixer_oss.cpp:160: `SOUND_MIXER_INFO' undeclared (first use this function)
mixer_oss.cpp:160: confused by earlier errors, bailing out
gmake[3]: *** [mixer.o] Error 1
gmake[3]: Leaving directory `/home/pan/kde2/kdemultimedia/kmix'
gmake[2]: *
---
we have to edit kmix/mixer.cpp and:
put in line 24:
--
#include <errno.h>
#include <unistd.h>
--
This stuff could be better done, puting all the common includes together, and
puting inside a #ifdef, only the diferences: (sys/soundcard.h and
machine/soundcard.h). I suspect that all the OS's will be happy with:
#include <fcntl.h>
#include <errno.h>
#include <unistd.h>
#include <sys/ioctl.h>
#include <sys/types.h>
and the diference is how to put the soundcard.h. Not this code that is
ill structured. Could some one change this?


	Paniago
-- 
Nome:  Carlos Fernando Assis Paniago
Email: pan@panix.ecof.org.br		e	pan@nma.embrapa.br
Web:   http://panix.ecof.org.br/	e	http://www.nma.embrapa.br/ 
--

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic