X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:from:to:subject:date:mime-version :content-type:content-transfer-encoding; q=dns; s=default; b=xNH /sRm4i11AGuy4Ew92wRjaisQPUs9sOXKY2V07Muc2/p3pHiopgpH+gXISb6IV+f5 bXIOY93mVrEcLMKO5mPfqmXQXf6J0C0Q99biOt173QkrOpJ1i2QjwWX/AVVHRMhT 9z8saUvSXT/+A23jo52mBKJNNxnG3BYMY6FazhPY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:from:to:subject:date:mime-version :content-type:content-transfer-encoding; s=default; bh=lAmF7IxgQ ynXTsEeH58h4g02Pxg=; b=YE3ez+NVjV1gjycY+wUnI3aoSL8W/x+Jo18SZK0ky qFLaXszdfbkfNoOujNpNCLUeCh6BWWGln/fGsR7hdhmTtckMfBWhhn6bvVwWpqa6 5ux+lVhF2SlJX7G5sYzCjiXkguXJxucE3cKRjL/BZQ6cqdbke0/5MFOdvJ91UPfR hs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.7 required=5.0 tests=BAYES_20,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-pa0-f44.google.com X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:from:to:subject:date:mime-version :content-type:content-transfer-encoding:importance; bh=M3tjM6Fd4mEOHwcuGFdd/K0iOJBk9q74leCJtJnPUVQ=; b=lK2LcekYk+0lypcjWyMTeGZXcqdHYxF3Ly0NnVh66ho38/GEBC9DopHWtA6EXs4eQ8 7vyvBEFfSPKYpvaZzj+i9REOyYyysNFEKRA3I1BROAdns3haN81/S3XYhrRuiO+etHfM 9mYlWCiJTNe+A0SxXajAkx5RILEb7Slo2BydLlDBhU5i71yIIn0HB4aZ4WwurAyKTSo0 Rwzjb2S781qZZjHeyGNwsmWbq7kUZb0uBnaBEO06Ivufj+hjyEmzIVGdiCBzw9BFWE8b hQ6O/40OkP2LO5PCXW9tpfocPtcDaYiFR2G1xa4Nirr8h5XO9FlgS024oFOyuuXcvaOK T+0w== X-Gm-Message-State: ALoCoQnRjvn76PPNx0KZ4prZk3CDmtKpZSW9Rep91xDvXt1apLFd7EN3lcTNaR9lr4YtKRUXXT9k X-Received: by 10.66.164.229 with SMTP id yt5mr49912614pab.67.1394563840834; Tue, 11 Mar 2014 11:50:40 -0700 (PDT) Message-ID: <4B9115A4BEEA4186A5E73D27941286AB@TKsamsung> From: "Tony Kelman" To: Subject: Compiled executables requiring admin rights - different results between MinGW host type Date: Tue, 11 Mar 2014 11:50:37 -0700 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit Hi, I'm looking at a very simple 32-line c file, source is available here https://github.com/JuliaLang/julia/blob/master/contrib/stringpatch.c I'm seeing unpredictable results w.r.t. the compiled executable requiring admin rights to run, depending which host compiler is used. Under 32 bit Cygwin: gcc -o stringpatch-cyg stringpatch.c # requires admin rights i686-pc-mingw32-gcc -o stringpatch-pc-32 stringpatch.c # requires admin rights i686-w64-mingw32-gcc -o stringpatch-w64-32 stringpatch.c # requires admin rights x86_64-w64-mingw32-gcc -o stringpatch-w64-64 stringpatch.c # does not require admin rights Under 64 bit Cygwin: gcc -o stringpatch-cyg stringpatch.c # does not require admin rights i686-pc-mingw32-gcc -o stringpatch-pc-32 stringpatch.c # requires admin rights i686-w64-mingw32-gcc -o stringpatch-w64-32 stringpatch.c # requires admin rights x86_64-w64-mingw32-gcc -o stringpatch-w64-64 stringpatch.c # does not require admin rights What is the explanation for this discrepancy? Is this expected behavior? Is there an easy way to prevent any of the compiled executables from requiring admin rights? All the compilers are version 4.8.2, with the exception of i686-pc-mingw32-gcc which is version 4.7.3 in both 32 and 64 bit. Cygcheck contents for both installations are posted here https://gist.github.com/9492379. If providing any additional info would be useful, please let me know. Thanks, Tony -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple