asyncIO with pthreads ?

From: Chris Foote <chris@dont-contact.us>
Date: Tue, 29 Sep 1998 17:30:04 +0930 (CST)

Does anyone know if the mit-pthreads package works with squid ?

Compile is barfing on squid's enums.h file (squid version 1.2-beta25):

Making all in lib...
Making all in scripts...
Making all in src...
gcc -g -O2 -Wall -D_REENTRANT -I. -I../include -I../include -I/usr/pkg/pthreads/include -c access_log.c
In file included from squid.h:335,
                 from access_log.c:38:
enums.h:132: syntax error before `0x1'
access_log.c: In function `accessLogTime':
access_log.c:344: warning: implicit declaration of function `strftime'
*** Error code 1

Stop.

(platform is NetBSD 1.3 for i386 with pthreads-1_60_beta6 package;
 options to configure were:
 --prefix=/usr/local/squid --enable-async-io
 and path mods to /usr/pkg/pthreads/$directories in the src/Makefile
)

enums.h wasn't touched by the configure script.

I'm not sure if the following code in enums.h is valid:

enum {
    FD_NONE,
    FD_LOG,
    FD_FILE,
    FD_SOCKET,
    FD_PIPE,
    FD_UNKNOWN
};

Is it supposed to be part of a typedef, as in the following ? :
typedef enum {
    FD_NONE,
    FD_LOG,
    FD_FILE,
    FD_SOCKET,
    FD_PIPE,
    FD_UNKNOWN
} some_name;

I have no idea :-)

Cheers,

Chris Foote SE Net
Technical Manager 222 Grote Street
SE Network Access Adelaide SA 5000
e-mail chris@senet.com.au Australia
phone : (08) 8221 5221 PGP Public Key available from
fax: (08) 8221 5220 http://www.senet.com.au/PGP
support: (08) 8221 5792
Received on Tue Sep 29 1998 - 01:01:13 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:42:12 MST