This is the mail archive of the cygwin-xfree@cygwin.com mailing list for the Cygwin XFree86 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: artsd sound support



>
> The error is in the config.log
>
> configure:6529: conflicting types for `ioctl'
> /usr/include/sys/ioctl.h:26: previous declaration of `ioctl'
> configure: failed program was:
> #line 6526 "configure"
> #include "confdefs.h"
>
>       #include <sys/ioctl.h>
>           int ioctl(int d, int request,...);
>
> int main() {
>
>
> ; return 0; }
>
> ioctl is defined in the sys/ioctl.h as
>
> int ioctl (int __fd, int __cmd, void *);
>
> Can someone tell me why this would fail?  I'm not a expert programmer
> either but it looks basically correct to me.
>
The configure script does not identify correctly the ioctl parameter list types.
You have to patch it.

Ralf


> -----Original Message-----
> From: Calvin Smith [mailto:calvinrsmith@hotmail.com]
> Sent: Sunday, October 21, 2001 4:03 AM
> To: cygwin-xfree@cygwin.com
> Subject: artsd sound support
>
>
> I started looking at artds support here is what I discoverd:
>
> configured arts and discovered it required audiofile which I then
> downloaded, configured, compiled and installed it fine
>
> configured arts again - this time it found audiofile so far so good.
>
> ran make.  it died with:
> /bin/sh ../../libtool --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..
> -I../..
> /arts/mcop -I../../arts/flow       -I../../arts/flow
> -I../../arts/soundserver
>     -I../../libltdl -I../../libltdl
> -DARTSC_BACKEND='"/usr/local/lib/libartscb
> ackend.la"' -O2 -c artsdsp.c
> gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../arts/mcop -I../../arts/flow
> -I../../
> arts/flow -I../../arts/soundserver -I../../libltdl -I../../libltdl
> -DARTSC_BACKE
> ND=\"/usr/local/lib/libartscbackend.la\" -O2 -c artsdsp.c -o artsdsp.o
> artsdsp.c:79: #error "unknown ioctl type (check config.h, adapt configure
> test).
> .."
> make[3]: *** [artsdsp.lo] Error 1
> make[3]: Leaving directory `/home/Administrator/arts-0.5.4/arts/artsc'
> make[2]: *** [all-recursive] Error 1
> make[2]: Leaving directory `/home/Administrator/arts-0.5.4/arts'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/Administrator/arts-0.5.4'
> make: *** [all-recursive-am] Error 2
>
> a simple check in the source found this:
> #if defined(HAVE_IOCTL_INT_INT_DOTS)
> typedef int ioctl_request_t;
> #elif defined(HAVE_IOCTL_INT_ULONG_DOTS)
> typedef unsigned long ioctl_request_t;
> #elif defined(HAVE_IOCTL_INT_ULONGINT_DOTS)
> typedef unsigned long int ioctl_request_t;
> #else
> #error "unknown ioctl type (check config.h, adapt configure test)..."
> #endif
>
> Since i'm really a windows programer not a linux programmer I have no idea
> what ioctl is.  Can someone here please guide me where to find
> the solution for this?  BTW, I'll keep searching the net till I grasp the
> concept.
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]