I can get async IO working under Digital UNIX with native cc.
But, with gcc:
$ gcc -v
Reading specs from /usr/local/lib/gcc-lib/alphaev5-dec-osf4.0b/2.8.1/specs
gcc version 2.8.1
$ ./configure --enable-async-io --enable-icmp --enable-htcp --enable-forw-via-db
--enable-cache-digests
........
$ make
.......
gcc -g -O2 -Wall -D_REENTRANT -I. -I../include -I../include -c aiops.c
In file included from
/usr/local/lib/gcc-lib/alphaev5-dec-osf4.0b/2.8.1/include/excpt.h:85,
from
/usr/local/lib/gcc-lib/alphaev5-dec-osf4.0b/2.8.1/include/pthread_exception.h:14
7,
from
/usr/local/lib/gcc-lib/alphaev5-dec-osf4.0b/2.8.1/include/pthread.h:282,
from aiops.c:41:
/usr/include/pdsc.h:506: warning: `/*' within comment
In file included from
/usr/local/lib/gcc-lib/alphaev5-dec-osf4.0b/2.8.1/include/pthread.h:290,
from aiops.c:41:
/usr/include/c_asm.h:193: parse error before `asm'
*** Exit 1
Stop.
*** Exit 1
Stop.
On 09-Oct-98 Chris Tilbury wrote:
> On Fri, Oct 09, 1998 at 10:20:47AM +0400, Sergey S. Kosyakov wrote:
>
>> But gcc fails when compiling with '--enable-async-io'.
>>
>> On 09-Oct-98 David Luyer wrote:
>> >
>> > Sergey S. Kosyakov wrote:
>> >
>> > [ complaints about Squid not compiling with Digital Unix cc in K&R C mode
>> > snipped -- cc on Digital Unix default mode is -std0 or K&R C ]
>> >
>> > These aren't bugs. Use "cc -std1". Squid says it needs an ANSI C
>> > compiler
>> > and suggests gcc. Either using the ansi flags to cc (-std1) or using gcc
>> > as suggested work just fine. There's no reason squid should support K&R
>> > C.
>
> So use "cc -std1", then, as David suggests, or show us what happens when you
> try and build it with async IO using gcc.
>
> It strikes me that the bug here is not that Squid requires ANSI C, but that
> you can't get async IO working under Digital UNIX. You'll get more help
> fixing the latter problem than the former.
>
> Cheers,
>
>
>
>
> Chris
>
> --
> Chris Tilbury, UNIX Systems Administrator, IT Services, University of Warwick
> EMAIL: cudch+s@csv.warwick.ac.uk PHONE: +44 1203 523365(V)/+44 1203 523267(F)
> URL: http://www.warwick.ac.uk/staff/Chris.Tilbury
--- ---------------------------------- Sergey Kosyakov Laboratory of Distributed Computing Department of High-Performance Computing and Applied Network Research Landau Institute for Theoretical Physics E-Mail: ks@itp.ac.ru Date: 09-Oct-98 Time: 14:16:27 ---------------------------------- ---Received on Fri Oct 09 1998 - 03:36:01 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:24 MST