From kde-bugs-dist Sat Jan 10 14:04:07 2004 From: Torsten Kasch Date: Sat, 10 Jan 2004 14:04:07 +0000 To: kde-bugs-dist Subject: [Bug 72311] New: arts' configure misdetects ioctl() prototype on Message-Id: <20040110140407.14954.qmail () ktown ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=107374392432100 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is. http://bugs.kde.org/show_bug.cgi?id=72311 Summary: arts' configure misdetects ioctl() prototype on Solaris (compilation fails) Product: configure Version: unspecified Platform: Compiled Sources OS/Version: Solaris Status: UNCONFIRMED Severity: normal Priority: NOR Component: general AssignedTo: coolo@kde.org ReportedBy: tk@CeBiTec.Uni-Bielefeld.DE Version: (using KDE Devel) Installed from: Compiled sources Compiler: gcc version 2.95.3 20010315 (release) using autoconf 2.53 OS: Solaris Trying to compile arts on my Solaris 8 x86 box breaks with source='artsdsp.c' object='artsdsp.lo' libtool=yes \ depfile='.deps/artsdsp.Plo' tmpdepfile='.deps/artsdsp.TPlo' \ depmode=gcc /bin/ksh ../admin/depcomp \ /bin/ksh ../libtool --silent --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I.. -I../mcop -I../flow -I../flow -I../soundserver -I../libltdl -I/vol/kde-cvs/include -I/vol/qt-3.2.3/include -I/vol/local/include -I/vol/graphics/include -I/opt/oss/include -I../libltdl -DQT_THREAD_SUPPORT -I/opt/oss/include -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DUSE_SOLARIS -DSVR4 -D_REENTRANT -I/vol/gtk-2.2.0/include/glib-2.0 -I/vol/gtk-2.2.0/lib/glib-2.0/include -DARTSC_BACKEND='"/vol/kde-cvs/lib/libartscbackend.la"' -O2 -D_REENTRANT -I/vol/gtk-2.2.0/include/glib-2.0 -I/vol/gtk-2.2.0/lib/glib-2.0/include -c -o artsdsp.lo `test -f 'artsdsp.c' || echo './'`artsdsp.c artsdsp.c:262: conflicting types for `ioctl' /usr/include/unistd.h:315: previous declaration of `ioctl' make[2]: *** [artsdsp.lo] Error 1 make[2]: Leaving directory `/vol/src/kde/cvs/arts/artsc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/vol/src/kde/cvs/arts' make: *** [all] Error 2 This happens because configure incorrectly detects the prototype of ioctl() and writes #define HAVE_IOCTL_INT_ULONGINT_DOTS 3 to config.h while ioctl(2) says the prototpe is int ioctl(int fildes, int request, /* arg */ ...), so it should read #define HAVE_IOCTL_INT_INT_DOTS 1