From owner-freebsd-stable@FreeBSD.ORG Tue Apr 6 09:57:16 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C2F74106564A; Tue, 6 Apr 2010 09:57:16 +0000 (UTC) (envelope-from kamikaze@bsdforen.de) Received: from mail.bsdforen.de (bsdforen.de [212.204.60.79]) by mx1.freebsd.org (Postfix) with ESMTP id 7EAB98FC1E; Tue, 6 Apr 2010 09:57:16 +0000 (UTC) Received: from mobileKamikaze.norad (vpn-cl-166-153.rz.uni-karlsruhe.de [141.3.166.153]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.bsdforen.de (Postfix) with ESMTP id 4D8458A1A26; Tue, 6 Apr 2010 11:57:15 +0200 (CEST) Message-ID: <4BBB057A.2080402@bsdforen.de> Date: Tue, 06 Apr 2010 11:57:14 +0200 From: Dominic Fandrey User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-GB; rv:1.9.1.9) Gecko/20100331 Thunderbird/3.0.4 MIME-Version: 1.0 To: Rainer Hurling References: <4BBA2D66.5060702@gwdg.de> <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> In-Reply-To: <4BBB0489.4010204@gwdg.de> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: jilles@FreeBSD.org, freebsd-stable@freebsd.org Subject: Re: ldd manpage - example does not work X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Apr 2010 09:57:16 -0000 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?