Search squid archive

Re: Error starting 3.5.16 on FreeBSD-8.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
 
Don't think so. I've gave latest 4.0.8 tarball from site. Applied patch - viola! - issue is gone.

08.04.16 23:32, Odhiambo Washington пишет:
> Hi Yuri,
>
> I applied the patch against 4.0.8, not 3.5.16. Check my e-mail well well :-)
>
> Could it be that you have a different code base from the tarballs available for everyone?
>
>
>
> On 8 April 2016 at 20:26, Yuri Voinov <yvoinov@xxxxxxxxx <mailto:yvoinov@xxxxxxxxx>> wrote:
>
>
> Note: Codebase for 4.0.x is different with 3.5.x.  So, most patches for 4.x.x series can't be applied onto 3.5.x.
>
> 08.04.16 23:23, Odhiambo Washington пишет:
> > Hi Yuri,
>
>
>
>       > Sorry to be a thorn in the flesh in this one.
>
>
>
>       > Which source code were you applying this patch against?
>
>
>
>       > I applied this patch on the released squid-4.0.8.tar.xz and
>       it doesn't apply cleanly for starters... Maybe I am doing it
>       wrongly? Just doing patch < /path/to/patch
>
>
>
>       > wash@mail:~/ILI/Squid/4.x/squid-4.0.8$ <mailto:wash@mail:~/ILI/Squid/4.x/squid-4.0.8$> patch <
>       ../squid-4-14633.patch
>
>       > Hmm...  Looks like a unified diff to me...
>
>       > The text leading up to this was:
>
>       > --------------------------
>
>       > |------------------------------------------------------------
>
>       > |revno: 14633
>
>       > |revision-id:
>       squid3@xxxxxxxxxxxxx-20160408073547-xtjco0mpai4lr920 <mailto:squid3@xxxxxxxxxxxxx-20160408073547-xtjco0mpai4lr920>
>
>       > |parent:
>       chtsanti@xxxxxxxxxxxxxxxxxxxxx-20160407163610-yl8zzhc08l1ysv5f <mailto:chtsanti@xxxxxxxxxxxxxxxxxxxxx-20160407163610-yl8zzhc08l1ysv5f>
>
>       > |committer: Amos Jeffries <squid3@xxxxxxxxxxxxx <mailto:squid3@xxxxxxxxxxxxx>
>       <mailto:squid3@xxxxxxxxxxxxx> <mailto:squid3@xxxxxxxxxxxxx>>
>
>
>       > |branch nick: trunk
>
>       > |timestamp: Fri 2016-04-08 19:35:47 +1200
>
>       > |message:
>
>       > |  Fix shm_open error message after rev.14625
>
>       > |------------------------------------------------------------
>
>       > |# Bazaar merge directive format 2 (Bazaar 0.90)
>
>       > |# revision_id:
>       squid3@xxxxxxxxxxxxx-20160408073547-xtjco0mpai4lr920 <mailto:squid3@xxxxxxxxxxxxx-20160408073547-xtjco0mpai4lr920>
>
>       > |# target_branch:
>       http://bzr.squid-cache.org/bzr/squid3/trunk/
>
>       > |# testament_sha1: c1983f6601c29e4d03f936e60ecee221a860f932
>
>       > |# timestamp: 2016-04-08 07:51:00 +0000
>
>       > |# source_branch: http://bzr.squid-cache.org/bzr/squid3/trunk
>
>       > |# base_revision_id:
>       chtsanti@xxxxxxxxxxxxxxxxxxxxx-20160407163610-\ <mailto:chtsanti@xxxxxxxxxxxxxxxxxxxxx-20160407163610-%5C>
>
>       > |#   yl8zzhc08l1ysv5f
>
>       > |#
>
>       > |# Begin patch
>
>       > |=== modified file 'src/ipc/mem/Segment.cc'
>
>       > |--- src/ipc/mem/Segment.cc     2016-04-03 23:41:58 +0000
>
>       > |+++ src/ipc/mem/Segment.cc     2016-04-08 07:35:47 +0000
>
>       > --------------------------
>
>       > Patching file src/ipc/mem/Segment.cc using Plan A...
>
>       > Hunk #1 failed at 91.
>
>       > Hunk #2 succeeded at 105 (offset -4 lines).
>
>       > Hunk #3 succeeded at 121 (offset -4 lines).
>
>       > Hunk #4 succeeded at 151 (offset -1 lines).
>
>       > 1 out of 4 hunks failed--saving rejects to
>       src/ipc/mem/Segment.cc.rej
>
>       > Hmm...  The next patch looks like a unified diff to me...
>
>       > The text leading up to this was:
>
>       > --------------------------
>
>       > |
>
>       > |=== modified file 'src/ipc/mem/Segment.h'
>
>       > |--- src/ipc/mem/Segment.h      2016-03-24 17:02:25 +0000
>
>       > |+++ src/ipc/mem/Segment.h      2016-04-08 07:35:47 +0000
>
>       > --------------------------
>
>       > Patching file src/ipc/mem/Segment.h using Plan A...
>
>       > Hunk #1 succeeded at 53.
>
>       > Hmm...  Ignoring the trailing garbage.
>
>       > done
>
>
>
>
>
>       > Then when I compile, the compilation fails as follows (though
>       without the patch the compilation succeeds):
>
>
>
>       > libtool: compile:  clang++ -DHAVE_CONFIG_H
>       -DDEFAULT_STATEDIR=\"/opt/squid-4/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 -Werror
>       -Qunused-arguments -Wno-deprecated-register -D_REENTRANT -g -O2
>       -march=native -std=c++11 -I/usr/local/include -MT mem/Pages.lo -MD
>       -MP -MF mem/.deps/Pages.Tpo -c mem/Pages.cc  -fPIC -DPIC -o
>       mem/.libs/Pages.o
>
>       > libtool: compile:  clang++ -DHAVE_CONFIG_H
>       -DDEFAULT_STATEDIR=\"/opt/squid-4/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 -Werror
>       -Qunused-arguments -Wno-deprecated-register -D_REENTRANT -g -O2
>       -march=native -std=c++11 -I/usr/local/include -MT mem/Pages.lo -MD
>       -MP -MF mem/.deps/Pages.Tpo -c mem/Pages.cc -o mem/Pages.o
>       >/dev/null 2>&1
>
>       > depbase=`echo mem/PageStack.lo | sed
>       's|[^/]*$|.deps/&|;s|\.lo$||'`; /bin/sh ../../libtool
>       --tag=CXX    --mode=compile clang++ -DHAVE_CONFIG_H
>       -DDEFAULT_STATEDIR=\"/opt/squid-4/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
>       -Werror -Qunused-arguments -Wno-deprecated-register  -D_REENTRANT
>       -g -O2 -march=native -std=c++11 -I/usr/local/include -MT
>       mem/PageStack.lo -MD -MP -MF $depbase.Tpo -c -o mem/PageStack.lo
>       mem/PageStack.cc && mv -f $depbase.Tpo $depbase.Plo
>
>       > libtool: compile:  clang++ -DHAVE_CONFIG_H
>       -DDEFAULT_STATEDIR=\"/opt/squid-4/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 -Werror
>       -Qunused-arguments -Wno-deprecated-register -D_REENTRANT -g -O2
>       -march=native -std=c++11 -I/usr/local/include -MT mem/PageStack.lo
>       -MD -MP -MF mem/.deps/PageStack.Tpo -c mem/PageStack.cc  -fPIC
>       -DPIC -o mem/.libs/PageStack.o
>
>       > libtool: compile:  clang++ -DHAVE_CONFIG_H
>       -DDEFAULT_STATEDIR=\"/opt/squid-4/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 -Werror
>       -Qunused-arguments -Wno-deprecated-register -D_REENTRANT -g -O2
>       -march=native -std=c++11 -I/usr/local/include -MT mem/PageStack.lo
>       -MD -MP -MF mem/.deps/PageStack.Tpo -c mem/PageStack.cc -o
>       mem/PageStack.o >/dev/null 2>&1
>
>       > depbase=`echo mem/Segment.lo | sed
>       's|[^/]*$|.deps/&|;s|\.lo$||'`; /bin/sh ../../libtool
>       --tag=CXX    --mode=compile clang++ -DHAVE_CONFIG_H
>       -DDEFAULT_STATEDIR=\"/opt/squid-4/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
>       -Werror -Qunused-arguments -Wno-deprecated-register  -D_REENTRANT
>       -g -O2 -march=native -std=c++11 -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:  clang++ -DHAVE_CONFIG_H
>       -DDEFAULT_STATEDIR=\"/opt/squid-4/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 -Werror
>       -Qunused-arguments -Wno-deprecated-register -D_REENTRANT -g -O2
>       -march=native -std=c++11 -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:96:22: error: too few arguments to function
>       call, single argument 'err' was not specified
>
>       >     if (!createFresh() && errno == EEXIST) {
>
>       >          ~~~~~~~~~~~ ^
>
>       > ../../src/ipc/mem/Segment.h:56:5: note: 'createFresh'
>       declared here
>
>       >     bool createFresh(int &err);
>
>       >     ^
>
>       > mem/Segment.cc:98:21: error: too few arguments to function
>       call, single argument 'err' was not specified
>
>       >         createFresh();
>
>       >         ~~~~~~~~~~~ ^
>
>       > ../../src/ipc/mem/Segment.h:56:5: note: 'createFresh'
>       declared here
>
>       >     bool createFresh(int &err);
>
>       >     ^
>
>       > mem/Segment.cc:108:9: error: use of undeclared identifier
>       'xerrno'
>
>       >         xerrno = errno;
>
>       >         ^
>
>       > mem/Segment.cc:110:66: error: use of undeclared identifier
>       'xerrno'
>
>       >         debugs(54, 5, "ftruncate " << theName <<
>       ": " << xstrerr(xerrno));
>
>
>       ^
>
>       > ../../src/Debug.h:107:21: note: expanded from macro 'debugs'
>
>       >             _dbo << CONTENT; \
>
>       >                     ^
>
>       > mem/Segment.cc:112:45: error: use of undeclared identifier
>       'xerrno'
>
>       >                theName.termedBuf(), xstrerr(xerrno));
>
>       >                                             ^
>
>       > 5 errors generated.
>
>       > *** Error code 1
>
>
>
>       > Stop.
>
>       > make[3]: stopped in
>       /usr/home/wash/ILI/Squid/4.x/squid-4.0.8/src/ipc
>
>       > *** Error code 1
>
>
>
>       > Stop.
>
>       > make[2]: stopped in
>       /usr/home/wash/ILI/Squid/4.x/squid-4.0.8/src
>
>       > *** Error code 1
>
>
>
>       > Stop.
>
>       > make[1]: stopped in
>       /usr/home/wash/ILI/Squid/4.x/squid-4.0.8/src
>
>       > *** Error code 1
>
>
>
>       > Stop.
>
>       > make: stopped in /usr/home/wash/ILI/Squid/4.x/squid-4.0.8
>
>
>
>
>
>       > Okay, I know I am being a bug here myself since I am focused
>       on 3.5 now more than 4.x but I also like giving the little
>       feedback I can from these FreeBSD servers I have:-)
>
>
>
>
>
>
>
>
>
>
>
>       > On 8 April 2016 at 17:19, Yuri Voinov <yvoinov@xxxxxxxxx <mailto:yvoinov@xxxxxxxxx>
>       <mailto:yvoinov@xxxxxxxxx> <mailto:yvoinov@xxxxxxxxx>> wrote:
>
>
>
>
>
>       > Seems fixed.
>
>
>
>       > http://bugs.squid-cache.org/show_bug.cgi?id=4486#c2
>
>
>
>       > 08.04.16 18:05, Amos Jeffries пишет:
>
>       > > On 8/04/2016 10:28 p.m., Odhiambo Washington wrote:
>
>       > >> Hello Yuri,
>
>       > >>
>
>       > >> Thanks, but this patch is for squid-4.0.8, right??
>
>       > >>
>
>
>
>       > > Yes the patch in that bug report is specific to the
>       latest 4.0 snapshot,
>
>       > > which Yuri is running.
>
>
>
>       > > As Alex mentioned the errno usage in Squid was a bit
>       wrong. The latest
>
>       > > 4.0 have a patch to fix that, which is causing Yuri's
>       problem. Your 3.5
>
>       > > issue may or may not be related. But we wont know until
>       after Yuri
>
>       > > applies that patch and checks the results.
>
>
>
>       > > Amos
>
>
>
>       > > _______________________________________________
>
>       > > squid-users mailing list
>
>       > > squid-users@xxxxxxxxxxxxxxxxxxxxx <mailto:squid-users@xxxxxxxxxxxxxxxxxxxxx>
>       <mailto:squid-users@xxxxxxxxxxxxxxxxxxxxx> <mailto:squid-users@xxxxxxxxxxxxxxxxxxxxx>
>
>       > > http://lists.squid-cache.org/listinfo/squid-users
>
>
>
>
>
>
>
>       >     _______________________________________________
>
>       >     squid-users mailing list
>
>       >     squid-users@xxxxxxxxxxxxxxxxxxxxx <mailto:squid-users@xxxxxxxxxxxxxxxxxxxxx>
>       <mailto:squid-users@xxxxxxxxxxxxxxxxxxxxx> <mailto:squid-users@xxxxxxxxxxxxxxxxxxxxx>
>
>       >     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."
>
>
>
>
>
> --
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254 7 3200 0004/+254 7 2274 3223
> "Oh, the cruft."


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
 
iQEcBAEBCAAGBQJXB+xbAAoJENNXIZxhPexGDP8IALxFdLWjHoL29fr9KntwP4ci
RExibg32ivhh7fMAQq7DiYtafUO2bNfV/ZstJgDu7qGyglX96fn2buwAE/a/7EU3
Bama9Beku9Mv+/+ByU/w0UmLTZe+8wk0L5GsBX3vwhGG1cyzE2dp2ntm+CpJfXGv
SQSTqG/rOCZc1M1aKgdqZhMoEd+J/4NQXz1oJrXbZZSDIMLhZg+hfE66ugOjt3gB
CEQnQ6O7dvodwam5QplaM6MaqQtgKJJ0m4O47dUhAXdp9tbgKO/Xn/E5biouKOiL
pVvEeXmM5LM8/tbO8cCrch/xMBxRnvD5OxoQoWEHFAbqjxpGuDXUheE8DxJaFP0=
=yp2M
-----END PGP SIGNATURE-----

Attachment: 0x613DEC46.asc
Description: application/pgp-keys

_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users

[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux