Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 75064 invoked from network); 25 Jul 2006 21:18:31 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2006 21:18:31 -0000 Received: (qmail 12834 invoked by uid 500); 25 Jul 2006 21:18:27 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 12790 invoked by uid 500); 25 Jul 2006 21:18:27 -0000 Mailing-List: contact harmony-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: harmony-dev@incubator.apache.org Delivered-To: mailing list harmony-dev@incubator.apache.org Received: (qmail 12779 invoked by uid 99); 25 Jul 2006 21:18:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2006 14:18:27 -0700 X-ASF-Spam-Status: No, hits=1.4 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: 64.74.244.70 is neither permitted nor denied by domain of geir@pobox.com) Received: from [64.74.244.70] (HELO smtp.ivresearch.com) (64.74.244.70) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 25 Jul 2006 14:18:26 -0700 Received: (qmail 31571 invoked from network); 25 Jul 2006 21:18:03 -0000 Received: from ip10.fa1-0-2.occ.iinet.com (HELO ?10.10.14.27?) (geir@198.145.33.10) by vdmx01.ivresearch.net with SMTP; 25 Jul 2006 21:18:03 -0000 Message-ID: <44C68A89.2070000@pobox.com> Date: Tue, 25 Jul 2006 14:18:01 -0700 From: Geir Magnusson Jr Reply-To: geir@pobox.com User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: harmony-dev@incubator.apache.org Subject: Re: [drlvm] uses deprecated pthread function References: <200607260112.17684.gshimansky@gmail.com> In-Reply-To: <200607260112.17684.gshimansky@gmail.com> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Gregory Shimansky wrote: > Hello > > I've tried to build drlvm on Linux and it didn't compile because when > compiling signals_ia32.cpp file compiler produced a warning that > pthread_attr_getstackaddr is deprecated. I looked in /usr/include/pthread.h > [1] and found out that it is really deprecated by __attribute_deprecated__. > > I don't know why everything is fine for others but for me gcc [2] does gives a > warning on this function. I used the recommended replacement > pthread_attr_getstack which gives both address and stack size in one call. > The patch is in HARMONY-977. StackTest and other vm smoke tests pass for me > now. Weird. It always has built for me on ubuntu 5/6 and passed the smoke tests. > > Maybe it would be better to call pthread_attr_getstack just once since it > provides all necessary stack information and eliminate redundant > find_stack_addr and find_stack_size. Each of them calls pthread_getattr_np > just to destroy pthread_attr 2 lines later. But I made the minimal fix which > doesn't change functions layout because the same functions exist for windows. > Probably they are meant to be moved to portlib? > > For the future reference, to avoid warnings about deprecated functions (which > isn't really good IMHO) it is necessary to > specify -Wno-deprecated-declarations, not the -Wno-deprecated (it is meant > for C++ code only) option which we currently have in > build/make/targets/common_vm.xml. > > [1] > GNU C Library stable release version 2.3.6, by Roland McGrath et al. > Copyright (C) 2005 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. > There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A > PARTICULAR PURPOSE. > Compiled by GNU CC version 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9). > Compiled on a Linux 2.6.11 system on 2006-06-25. > Available extensions: > GNU libio by Per Bothner > crypt add-on version 2.1 by Michael Glad and others > Native POSIX Threads Library by Ulrich Drepper et al > The C stubs add-on version 2.1.2. > GNU Libidn by Simon Josefsson > BIND-8.2.3-T5B > NIS(YP)/NIS+ NSS modules 0.19 by Thorsten Kukuk > Thread-local storage support included. > > [2] > gcc (GCC) 3.4.6 (Gentoo 3.4.6-r1, ssp-3.4.5-1.0, pie-8.7.9) > --------------------------------------------------------------------- Terms of use : http://incubator.apache.org/harmony/mailing.html To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org For additional commands, e-mail: harmony-dev-help@incubator.apache.org