Author Topic: Squid Cache  (Read 27739 times)

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5098
  • Karma: +117/-1
    • View Profile
Re: Squid Cache
« Reply #15 on: January 23, 2022, 09:44:19 am »
Hi Harald, basically a Pentium 4 Northwood and as you can see, no SSE3 support. Paul can explain why squid is using SSE3. The trp report is accurate and this build of squid will not run on your processor.
Gotta say that Intel has crappy CPU naming, especially with Xenon's
Thanks.

Digi

  • Jr. Member
  • **
  • Posts: 69
  • Karma: +4/-1
  • http://os2.snc.ru/
    • View Profile
    • OS/2 ports and applications
Re: Squid Cache
« Reply #16 on: January 27, 2022, 06:12:38 am »
What package is missing on my system to run squid?

C:\Programs\squid\sbin>chkdll32 squid.exe
Loading DLL 'libcn0' --> D:\UNIXROOT\USR\LIB\LIBCN0.DLL.
Loading DLL 'libcx0' --> D:\UNIXROOT\USR\LIB\LIBCX0.DLL.
Loading DLL 'gtls30' --> D:\UNIXROOT\USR\LIB\GTLS30.DLL.
Loading DLL 'tcpip32' --> C:\MPTN\DLL\TCPIP32.DLL.
Loading DLL 'gssapi' --> NOT loaded!
Unable to load DLL 'gssapi'.  DosLoadModule returned: 2
OS/2 reports 'GSSAPI' contributed to the failure.
Loading DLL 'krb5' --> NOT loaded!
Unable to load DLL 'krb5'.  DosLoadModule returned: 2
OS/2 reports 'KRB5' contributed to the failure.
Loading DLL 'com_err' --> NOT loaded!
Unable to load DLL 'com_err'.  DosLoadModule returned: 2
OS/2 reports 'COM_ERR' contributed to the failure.
Loading DLL 'doscalls' --> loaded.
Loading DLL 'pthr01' --> D:\UNIXROOT\USR\LIB\PTHR01.DLL.

tisa

  • Newbie
  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
Re: Squid Cache
« Reply #17 on: January 27, 2022, 08:13:44 am »
Hi Paul! Thanks for your job to porting Squid. I tried version 5.3, in the log file:

ERROR: loading file '/squid/share/errors/templates/ERR_PROTOCOL_UNKNOWN': (2) No such file or directory
WARNING: failed to find or read error text file ERR_PROTOCOL_UNKNOWN
This is solved by copying not filed files from a distribution for Linux, for example ... After that, Squid starts, but in cache.log there are more curses, and Squid does not respond. Also does not work "Squid -k shutdown" for example ...

**************************************************************************************
Initializing IP Cache...
commSetNonBlocking FD 7: (22) Invalid argument
...
Logfile: opening log daemon:/squid/var/logs/access.log
Logfile Daemon: opening log /squid/var/logs/access.log
commSetNonBlocking FD 10: (22) Invalid argument
commSetNonBlocking FD 10: (22) Invalid argument
commSetNonBlocking FD 12: (38) Socket operation on non-socket
commSetNonBlocking FD 15: (38) Socket operation on non-socket
commUnsetNonBlocking FD 15: (38) Socket operation on non-socket
...
Finished loading MIME types and icons.
commSetNonBlocking FD 18: (22) Invalid argument
...
**************************************************************************************

On the same configuration of Squid 3.5.23 works perfectly - uptime is more than 400 days about 50 users.
Thanks again for your excellent work.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5098
  • Karma: +117/-1
    • View Profile
Re: Squid Cache
« Reply #18 on: January 27, 2022, 08:31:57 am »
Hi Digi,
Code: [Select]
Y:\>yum provides gssapi.dll
heimdal-libs-1.5.3-1.oc00.i386 : Heimdal kerberos shared libraries
Repo        : arcanoae-rel
Matched from:
Other       : gssapi.dll



heimdal-libs-1.5.3-2.oc00.i386 : Heimdal kerberos shared libraries
Repo        : arcanoae-rel
Matched from:
Other       : gssapi.dll



heimdal-libs-7.7.0-4.oc00.i686 : Heimdal kerberos shared libraries
Repo        : installed
Matched from:
Other       : gssapi.dll

Basically the same response from yum provides krb5.dll and com_err.dll
« Last Edit: January 27, 2022, 08:34:45 am by Dave Yeo »

Digi

  • Jr. Member
  • **
  • Posts: 69
  • Karma: +4/-1
  • http://os2.snc.ru/
    • View Profile
    • OS/2 ports and applications
Re: Squid Cache
« Reply #19 on: January 28, 2022, 12:54:11 pm »
Hi Digi,
Code: [Select]
Y:\>yum provides gssapi.dll

Thanks! For some reason anpm didn't show me this.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2288
  • Karma: +176/-0
    • View Profile
Re: Squid Cache
« Reply #20 on: January 28, 2022, 10:16:43 pm »
Hi all, sorry for my absence from this thread. I've been extremely busy in my personal and work life, and haven't had much time for anything OS/2 related.

A couple of comments:
1) ERR_PROTOCOL_UNKNOWN missing - I have no idea why 'make install'  didn't install that file  - I guess it didn't show in my testing as I installed over an existing squid  installation
2) SIGILL for Harald -I am targetting -mtune=pentium4 - so perhaps this triggers the instructions that aren't supported by older CPUs
3)  "Squid -k shutdown" not working - known issue - not sure why - note that using 'go -ka pid' doesn't kill it either
4) dependencies on kerberos, et al - this wasn't intended - for the next build, I'll see if we can stop needing them - I don't see any advantage in the typical usages of squid of OS/2 for these
5) logs about 'commSetNonBlocking FD 10: (22) Invalid argument' & 'commSetNonBlocking FD 12: (38) Socket operation on non-socket' I see these too - again, not sure why yet

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5098
  • Karma: +117/-1
    • View Profile
Re: Squid Cache
« Reply #21 on: January 29, 2022, 12:07:58 am »
Hi all, sorry for my absence from this thread. I've been extremely busy in my personal and work life, and haven't had much time for anything OS/2 related.

A couple of comments:
1) ERR_PROTOCOL_UNKNOWN missing - I have no idea why 'make install'  didn't install that file  - I guess it didn't show in my testing as I installed over an existing squid  installation

My old install was missing it as well

Quote
2) SIGILL for Harald -I am targetting -mtune=pentium4 - so perhaps this triggers the instructions that aren't supported by older CPUs

What is your march? Personally I've been doing march=pentium4 -mtune=generic which should work better on most CPU's. Is there any assembler involved?

Quote
3)  "Squid -k shutdown" not working - known issue - not sure why - note that using 'go -ka pid' doesn't kill it either
4) dependencies on kerberos, et al - this wasn't intended - for the next build, I'll see if we can stop needing them - I don't see any advantage in the typical usages of squid of OS/2 for these
5) logs about 'commSetNonBlocking FD 10: (22) Invalid argument' & 'commSetNonBlocking FD 12: (38) Socket operation on non-socket' I see these too - again, not sure why yet

Does it work for you?
And thanks for the work.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2288
  • Karma: +176/-0
    • View Profile
Re: Squid Cache
« Reply #22 on: September 24, 2022, 11:08:47 am »
Sorry for the long delay here.... I found the cause of the SIGILL - I believe this should be fixed in https://smedley.id.au/tmp/squid-5.3-os2-20220924.zip

Simply put, the configure script for squid tries to use 'native' cpu optimisation - which overrode my normal defaults.

PS the kerberos dependency should be gone too.

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2288
  • Karma: +176/-0
    • View Profile
Re: Squid Cache
« Reply #23 on: September 25, 2022, 12:18:23 am »
https://smedley.id.au/tmp/squid-5.3-os2-20220925.zip should fix the commSetNonBlocking FD 10: (22) Invalid argument'
« Last Edit: September 25, 2022, 02:31:04 am by Martin Iturbide »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2288
  • Karma: +176/-0
    • View Profile
Re: Squid Cache
« Reply #24 on: September 25, 2022, 03:46:32 am »

Paul Smedley

  • Hero Member
  • *****
  • Posts: 2288
  • Karma: +176/-0
    • View Profile
Re: Squid Cache
« Reply #25 on: September 26, 2022, 11:07:20 am »
https://smedley.id.au/tmp/squid-5.7-os2-20220926.zip should fix the issues with 'squid -k shutdown' not working