Re: Successfuly Ported/Compiled Squid on NT

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Fri, 17 Apr 1998 23:25:52 +0200

--MimeMultipartBoundary
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Martin Hamilton wrote:

> b) mail.exe doesn't exist, so when Squid dies it grumbles about that

Well... ;-)

> c) Squid stopped accepting connections, but didn't actually die as a
> process :-( I wasn't running it under RunCache, just directly as a
> binary

Anything in the logs (squid and NT event log), or did it simply go to
sleep for no apparent reason?

> d) Had the odd access failure exception - it's not clear to me what
> Squid was trying to access. I'm running it inside it's own little
> area, without admin priviledges, and with (I thought) all of the
> paths in squid.conf changed to reference this. Probably finger
> trouble on my part, this

access failure exception? What kind of "access failure"?

> e) After my rebuild/restart, I now see lots of messages saying that
> there was a "size mismatch" in storeSwapInFileOpened. The difference
> seems to be typically between 7 and 10 bytes, but varies. I wondered
> whether this was a side-effect of the timezone fix, but haven't
> really looked into what info is being squirted around

Your cache directory is probably not mounted in binary mode. (mount -b)
This could count for both both the size mismatch and some of the poor
performance...

> f) the icons shar archive and lack of "uudecode" I mentioned before

Yes. uudecode is not delivered with cygwin32 currently. You can use
winzip to unpack the shar archive (unpack it to the same directory), or
compile a uudecode binary yourself (or write one in perl)...

> g) general niggle - the installation of error HTML and icons, which I
> mentioned before

Installs fine here when I manually unpack the icons using winzip, and
have the install directory mounted in binary mode. Both icon files and
error pages are installed in the install directory as usual.

Requirements to build Squid on NT:
* CygWIN32 b19.1
* uudecode or winzip
* A install & cache directory mounted in binary mode
* /bin/sh
* Squid 1.2.beta19 + my timezone patch
* My regexp patch, or configure --enable-gnuregex

How to unpack the icons using winzip:
  Open icons.shar in standard mode (not expert mode)
  Extract the icons to the same directory (where icons.shar is).

How to mount the install directory in binary mode:
  mkdir c:\squid
  mount -b 'c:\squid' /usr/local/squid

How to get /bin/sh:
a) mkdir /bin
   cp -p $CYGROOT/H-i386-cygwin32/bin/sh /bin/sh
b) mount -b $CYGROOT\\H-i386-cygwin32\\bin /bin

I'd recommend mounting the cygwin bin directory as /bin and /usr/bin.

perl uudecode: (no -o option)

#!/usr/bin/perl
while(<>) {
  last if /^begin/;
}
chop;
(($perm,$file) = /^begin ([0-9]+) (.*)$/) || die("No begin");
open(OUT,">$file") || die("Can't open $file for writing");
chmod oct $perm,$file;
while(<>) {
  last if /^end/;
  chop;
  print OUT unpack("u",$_);
}
close OUT;

--MimeMultipartBoundary--
Received on Tue Jul 29 2003 - 13:15:47 MDT

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