Date: Tue, 06 Apr 2010 11:57:14 +0200 From: Dominic Fandrey <kamikaze@bsdforen.de> To: Rainer Hurling <rhurlin@gwdg.de> Cc: jilles@FreeBSD.org, freebsd-stable@freebsd.org Subject: Re: ldd manpage - example does not work Message-ID: <4BBB057A.2080402@bsdforen.de> In-Reply-To: <4BBB0489.4010204@gwdg.de> References: <4BBA2D66.5060702@gwdg.de> <v2t7d6fde3d1004051140m1e174aa4xfb84940fc74921dc@mail.gmail.com> <4BBA3152.9010506@protected-networks.net> <4BBA4378.5040402@gwdg.de> <4BBA50A8.5040807@bsdforen.de> <4BBAD660.6080704@gwdg.de> <4BBAFAD9.8070704@bsdforen.de> <4BBAFFB9.7020101@gwdg.de> <4BBB02F0.9050209@bsdforen.de> <4BBB0489.4010204@gwdg.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On 06/04/2010 11:53, Rainer Hurling wrote: > Am 06.04.2010 11:46 (UTC+1) schrieb Dominic Fandrey: >> On 06/04/2010 11:32, Rainer Hurling wrote: >>> Am 06.04.2010 11:11 (UTC+1) schrieb Dominic Fandrey: >>>> On 06/04/2010 08:36, Rainer Hurling wrote: >>>>> [..snip..] >>>>> ImageMagick-6.5.8.10_1: /usr/local/lib/libMagickWand.so.2 misses >>>>> libz.so.5 >>>>> arith: syntax error: ""0" + 1"-1.5.2_1 >>>> >>>> The arithmetics happen mostly during locking. I suppose the -1.5.2_1 >>>> is a remainder of a status message and not connected to the error. >>>> >>>> Does this always occur in the same place? Maybe run the command with >>>> -j1 to gain more predictable output. >>> >>> The next try with -j1: >>> >>> #pkg_libchk -j1 >>> arith: syntax error: ""0" + 1"-2.14.17 >>> >>> No other output for the last 30 minutes. The only package installed with >>> this version number is ORBit2. >>> >>> My systems are running under recent 9.0-CURRENT (amd64). >> >> Now, this is a real clue. The svn log states several changes to >> arithmetic expansion. >> >> I'm CC'ing this to the author of said changes. I suspect the >> following function. I wonder, is this a regression or a bug >> in my code? >> >> # >> # This function frees a semaphore. >> # >> # @param $1 >> # The name of the semaphore. >> # >> semaphoreFree() { >> local lock >> lock="$sharedprefix-semaphore-$1" >> lockf -k "$lock" sh -c " >> state=\"\$((\"\$(cat '$lock')\" + 1))\" >> echo \"\$state\"> '$lock' >> " >> } >> >> >> Would you please change the line: >> state=\"\$((\"\$(cat '$lock')\" + 1))\" >> to >> state=\"\$((\$(cat '$lock') + 1))\" >> and test whether that fixes the issue? > > Seems to work this way :-) Thanks a lot, I'll wait for Jilles reaction and decide whether I have to push out a maintenance release. Regards -- A: Because it fouls the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4BBB057A.2080402>