Mail Archives: cygwin/2001/10/22/14:35:54
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.
-----Original Message-----
From: Calvin Smith [mailto:calvinrsmith AT hotmail DOT com]
Sent: Sunday, October 21, 2001 4:03 AM
To: cygwin-xfree AT cygwin DOT 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
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -