From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16094 invoked by alias); 9 Jul 2005 15:03:21 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 16064 invoked by uid 22791); 9 Jul 2005 15:03:16 -0000 Received: from mail1.thewrittenword.com (HELO mail1.thewrittenword.com) (67.95.107.114) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 09 Jul 2005 15:03:16 +0000 Received: by mail1.thewrittenword.com (Postfix, from userid 1000) id F1FC7143; Sat, 9 Jul 2005 10:02:54 -0500 (CDT) Date: Sat, 09 Jul 2005 15:03:00 -0000 From: Albert Chin To: gcc-help@gcc.gnu.org Subject: Re: pthread_mutex_init() with gcc-3.4.3 on Tru64 UNIX Message-ID: <20050709150254.GA32336@mail1.thewrittenword.com> Reply-To: gcc-help@gcc.gnu.org References: <20050708234415.GH10913@mail1.thewrittenword.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6i X-SW-Source: 2005-07/txt/msg00100.txt.bz2 On Sat, Jul 09, 2005 at 09:15:18AM -0400, Ishwar Rattan wrote: > > > On Fri, 8 Jul 2005, Albert Chin wrote: > > > $ uname -a > > OSF1 [name] V4.0 878 alpha > > $ uname -a > > OSF1 [name] V5.1 732 alpha > > > > $ cat mutex.c > > #include > > #include > > > > int > > main (void) { > > pthread_mutex_t lck; > > > > if (pthread_mutex_init(&lck, 0) != 0) > > exit (2); > > if (pthread_mutex_lock(&lck) != 0) > > exit (3); > > if (pthread_mutex_unlock(&lck) != 0) > > exit (4); > > if (pthread_mutex_destroy(&lck) != 0) > > exit (5); > > > > exit (0); > > } > > > > $ cc mutex.c > > Try cc mutex.c -lpthread I know. I'm curious why: $ /opt/TWWfsw/gcc343/bin/gcc mutex.c succeeds. I'd expect it to fail, just as 'cc mutex.c' failed. -- albert chin (china@thewrittenword.com)