Return-Path: Delivered-To: apmail-incubator-harmony-dev-archive@www.apache.org Received: (qmail 73360 invoked from network); 25 Jul 2006 21:12:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 25 Jul 2006 21:12:47 -0000 Received: (qmail 99893 invoked by uid 500); 25 Jul 2006 21:12:43 -0000 Delivered-To: apmail-incubator-harmony-dev-archive@incubator.apache.org Received: (qmail 99858 invoked by uid 500); 25 Jul 2006 21:12:43 -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 99846 invoked by uid 99); 25 Jul 2006 21:12:43 -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:12:43 -0700 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=DNS_FROM_RFC_ABUSE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of gshimansky@gmail.com designates 64.233.182.186 as permitted sender) Received: from [64.233.182.186] (HELO nf-out-0910.google.com) (64.233.182.186) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jul 2006 14:12:41 -0700 Received: by nf-out-0910.google.com with SMTP id x4so370211nfb for ; Tue, 25 Jul 2006 14:12:20 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:from:reply-to:to:subject:date:user-agent:mime-version:content-type:content-transfer-encoding:content-disposition:message-id; b=LILLOrIYVAoOwPQD2c/xlSDs0ET7u9RTFc61tIxCs6CH27U5+qNGlEdpJOjL1hWZ8LSSsfeJ0LXywzS4by0kMjmwyY/SBhb2r9WXdZVKrcReiehoyVf3hs7Qu7EyyB912u5+YunJMSupX51+RqEkQxBKv67A63xceyxxWHdH4A4= Received: by 10.49.75.2 with SMTP id c2mr1197481nfl; Tue, 25 Jul 2006 14:12:20 -0700 (PDT) Received: from ppp85-141-182-66.pppoe.mtu-net.ru ( [85.141.182.66]) by mx.gmail.com with ESMTP id q28sm870798nfc.2006.07.25.14.12.19; Tue, 25 Jul 2006 14:12:20 -0700 (PDT) From: Gregory Shimansky Reply-To: harmony-dev@incubator.apache.org To: harmony-dev@incubator.apache.org Subject: [drlvm] uses deprecated pthread function Date: Wed, 26 Jul 2006 01:12:17 +0400 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607260112.17684.gshimansky@gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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. 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) -- Gregory Shimansky, Intel Middleware Products Division --------------------------------------------------------------------- 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