[squid-users] Help to Compile Squid for Windows

seroto_nin cccc.under at gmail.com
Sun Oct 22 05:40:38 UTC 2017


Hi.
> SBuf.cc:760:61: error: ‘memrchr’ was not declared in this scope 
>      const void *i = memrchr(buf(), (int)c, (size_type)endPos); 

I encounterd this problem too.
To avoid this, you may edit "config.status" as described below after running
"/.configure".
-D["HAVE_MEMRCHR"]=" 1"
+D["HAVE_MEMRCHR"]=" 0"

Perhaps .configure's bug.
".configure" recognizes that system has memrchr() but In fact Windows
doesn't.
So you need to indicate the system does not have memrchr(). 
Then "make" comes to use memrchr() included in squid's source code.
(compat/memrchr.cc)



--
Sent from: http://squid-web-proxy-cache.1019090.n4.nabble.com/Squid-Users-f1019091.html


More information about the squid-users mailing list