From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16842 invoked by alias); 21 Jun 2011 02:36:28 -0000 Received: (qmail 16696 invoked by uid 22791); 21 Jun 2011 02:36:27 -0000 X-SWARE-Spam-Status: No, hits=0.3 required=5.0 tests=BAYES_50,DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,RFC_ABUSE_POST,TW_LR,TW_RW,TW_WX,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Received: from mail-qy0-f169.google.com (HELO mail-qy0-f169.google.com) (209.85.216.169) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 21 Jun 2011 02:36:12 +0000 Received: by qyk32 with SMTP id 32so1309564qyk.0 for ; Mon, 20 Jun 2011 19:36:12 -0700 (PDT) Received: by 10.224.9.197 with SMTP id m5mr4779544qam.367.1308623770325; Mon, 20 Jun 2011 19:36:10 -0700 (PDT) Received: from appleton.local (c-76-116-212-29.hsd1.nj.comcast.net [76.116.212.29]) by mx.google.com with ESMTPS id e18sm3648619qcs.41.2011.06.20.19.36.08 (version=SSLv3 cipher=OTHER); Mon, 20 Jun 2011 19:36:09 -0700 (PDT) Message-ID: <4E000397.6030601@alum.mit.edu> Date: Tue, 21 Jun 2011 02:36:00 -0000 From: Marty McGowan User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 MIME-Version: 1.0 To: gdb@sourceware.org Subject: Building on Darwin Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-06/txt/msg00126.txt.bz2 Hi, i'm trying to use gdb on my iMac -------------- appleton:MM110605 applemcg$ ls -l /usr/bin/*cc lrwxr-xr-x 1 root wheel 7 Mar 4 12:49 /usr/bin/cc -> gcc-4.2 -rwxr-xr-x 1 root wheel 287680 Oct 24 2010 /usr/bin/distcc lrwxr-xr-x 1 root wheel 7 Mar 4 12:49 /usr/bin/gcc -> gcc-4.2 -------------- System Version: Mac OS X 10.6.7 (10J869) Kernel Version: Darwin 10.7.0 Boot Volume: hd Boot Mode: Normal Computer Name: appleton User Name: Marty (applemcg) Secure Virtual Memory: Not Enabled 64-bit Kernel and Extensions: No Time since boot: 14 days 5:50 -------------- i've used it successfully ( a prior version ) in the past on a ~ 32K size C program and saw today for the first time the error message reported in the "Building GDB on Darwin " i followed the steps in "Creating a certificate", ran the codesign command, and was treated with the same message: Reading symbols from /Volumes/MM110605/src/eec/cummings... warning: can't find section '__DATA.__common' in OSO file /Volumes/MM110605/src/eec/compiler.o warning: can't find section '__DATA.__common' in OSO file /Volumes/MM110605/src/eec/dictionary.o warning: can't find section '__DATA.__common' in OSO file /Volumes/MM110605/src/eec/options.o warning: can't find section '__DATA.__common' in OSO file /Volumes/MM110605/src/eec/parserobj.o warning: can't find section '__DATA.__common' in OSO file /Volumes/MM110605/src/eec/word.o done. (gdb) run Starting program: /Volumes/MM110605/src/eec/cummings Unable to find Mach task port for process-id 95355: (os/kern) failure (0x5). (please check gdb is codesigned - see taskgated(8)) (gdb) I included the "cant find section ... " messages as I don't recall seeing them in times past, and to offer any kind of clue. I did have to go to the trouble of resetting my login keys in the OS X, as i really have little idea of what's happening. i do get the RSA, public key algorithm, but frankly what a certificate represents and who is giving whom what and why escapes my ken. in the btw department; i tried this repeatedly. in the first instance, i created a 2K Certificates.p12 file (before resetting the password, but i was successfully able to import into the System keychain as recommended. that failed as well. then repeating the experiment, but this time with (continue)^ nth, i received "unknown error" when the certificate was being created. in this pass i offered no identity to the certificate assistant. repeating a 4th or fifth time, but supplying identity, i was able to export a *.pem file, which is just the ascii email attachment. needless to say it was not effective. is there a cookbook for this procedure? do i need to rebuild gcc? Thanks, -- -=*-+ Marty McGowan http://martymcgowan.tiddlyspace.com