[squid-users] Error starting 3.5.16 on FreeBSD-8.4

Odhiambo Washington odhiambo at gmail.com
Fri Apr 8 10:28:54 UTC 2016


Hello Yuri,

Thanks, but this patch is for squid-4.0.8, right??


If applied to 3.5.16, the compilation fails as follows:


depbase=`echo mem/Segment.lo | sed 's|[^/]*$|.deps/&|;s|\.lo$||'`;
/bin/bash ../../libtool  --tag=CXX    --mode=compile g++ -DHAVE_CONFIG_H
-DDEFAULT_STATEDIR=\"/opt/squid-3.5/var/run/squid\"    -I../..
-I../../include  -I../../lib -I../../src  -I../../include  -I/usr/include
 -I/usr/include  -I../../libltdl -I/usr/include
-I/usr/local/include/libxml2  -I/usr/local/include/libxml2 -Wall
-Wpointer-arith -Wwrite-strings -Wcomments -Wshadow -Woverloaded-virtual
-Werror -pipe -D_REENTRANT -I/usr/local/include  -g -O2 -march=native
-I/usr/local/include -MT mem/Segment.lo -MD -MP -MF $depbase.Tpo -c -o
mem/Segment.lo mem/Segment.cc && mv -f $depbase.Tpo $depbase.Plo
libtool: compile:  g++ -DHAVE_CONFIG_H
-DDEFAULT_STATEDIR=\"/opt/squid-3.5/var/run/squid\" -I../.. -I../../include
-I../../lib -I../../src -I../../include -I/usr/include -I/usr/include
-I../../libltdl -I/usr/include -I/usr/local/include/libxml2
-I/usr/local/include/libxml2 -Wall -Wpointer-arith -Wwrite-strings
-Wcomments -Wshadow -Woverloaded-virtual -Werror -pipe -D_REENTRANT
-I/usr/local/include -g -O2 -march=native -I/usr/local/include -MT
mem/Segment.lo -MD -MP -MF mem/.deps/Segment.Tpo -c mem/Segment.cc  -fPIC
-DPIC -o mem/.libs/Segment.o
mem/Segment.cc: In member function 'void Ipc::Mem::Segment::create(off_t)':
mem/Segment.cc:95: error: no matching function for call to
'Ipc::Mem::Segment::createFresh()'
../../src/ipc/mem/Segment.h:57: note: candidates are: bool
Ipc::Mem::Segment::createFresh(int&)
mem/Segment.cc:97: error: no matching function for call to
'Ipc::Mem::Segment::createFresh()'
../../src/ipc/mem/Segment.h:57: note: candidates are: bool
Ipc::Mem::Segment::createFresh(int&)
mem/Segment.cc:107: error: 'xerrno' was not declared in this scope
*** Error code 1

Stop in /usr/home/wash/Tools/Squid/3.5/squid-3.5.16/src/ipc.
*** Error code 1

Stop in /usr/home/wash/Tools/Squid/3.5/squid-3.5.16/src.
*** Error code 1

Stop in /usr/home/wash/Tools/Squid/3.5/squid-3.5.16/src.
*** Error code 1

Stop in /usr/home/wash/Tools/Squid/3.5/squid-3.5.16.



On 7 April 2016 at 22:15, Yuri Voinov <yvoinov at gmail.com> wrote:

>
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> http://bugs.squid-cache.org/show_bug.cgi?id=4486
>
> 07.04.16 20:16, Amos Jeffries пишет:
> > On 7/04/2016 3:16 a.m., Odhiambo Washington wrote:
> >> I am getting the following error in cache.log:
> >>
> >> Squid Cache (Version 3.5.16): Terminated abnormally.
> >> CPU Usage: 0.082 seconds = 0.052 user + 0.030 sys
> >> Maximum Resident Size: 54992 KB
> >> Page faults with physical i/o: 0
> >> FATAL: Ipc::Mem::Segment::create failed to
> >> shm_open(/opt/squid-3.5/var/run/squid/cf__metadata.shm): (17) File
> exists
> >>
> >>
> >> However, that file doesn't exist.
> >>
> >
> > This can happen if you have a startup script the runs 'squid -z' or
> > similar just prior to starting the main proxy, and not waiting
> > sufficiently long for the -z run to finish.
> >
> > Amos
> >
> > _______________________________________________
> > squid-users mailing list
> > squid-users at lists.squid-cache.org
> > http://lists.squid-cache.org/listinfo/squid-users
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iQEcBAEBCAAGBQJXBrHTAAoJENNXIZxhPexGyn8IALAK0K2WLF3NfRX/fszUr/X/
> 6syPQWbGXUkw/ktauWB4HqegDEoDHMdRI5+EDUKNS8eFdfMgC8HY0EOVMowsw2RL
> 6hyKSwWzmVV0p+OzC77dzeAPC2MqlLa5kb8yCTHC1ZDtQv5ZJmgaHsMixzTHCCfj
> fAme3vRG/HCJnQ4BbdybTz1XhYduB8aF91cRTQtQyGCYhkuRKYdVWpxDn1t2/+3D
> lQrqymKFS34C5eqcm1HiaIoXLdiPUUcmLyY8QjXfaAQbrRR6yKLa613pjU6XFYP+
> Aj7WthR4zHJgGPx65QLyEyHvyzAdgYCbjhRnyT7K4yonFvrEBC4a3DV6tePEzZg=
> =+50D
> -----END PGP SIGNATURE-----
>
>
> _______________________________________________
> squid-users mailing list
> squid-users at lists.squid-cache.org
> http://lists.squid-cache.org/listinfo/squid-users
>
>


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254 7 3200 0004/+254 7 2274 3223
"Oh, the cruft."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20160408/78816f5f/attachment.html>


More information about the squid-users mailing list