From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Peter.Stern@weizmann.ac.il Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Compiling up-imapproxy Date: Thu, 18 Nov 2004 19:11:37 +0200 (IST) Message-ID: <200411181711.TAA25923@chemphys.weizmann.ac.il> Reply-To: Peter.Stern@weizmann.ac.il NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1100799073 8821 80.91.229.6 (18 Nov 2004 17:31:13 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 18 Nov 2004 17:31:13 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Nov 18 18:30:59 2004 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1CUq7W-0007G0-00 for ; Thu, 18 Nov 2004 18:30:59 +0100 Original-Received: (qmail 8426 invoked by uid 5); 18 Nov 2004 17:29:53 -0000 Original-Sender: tru64-unix-managers-owner@ornl.gov Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 8410 invoked by uid 49501); 18 Nov 2004 17:29:52 -0000 Original-Received: from peter@chemphys.weizmann.ac.il by sws1 by uid 49491 with qmail-scanner-1.21 (clamdscan: 0.70-rc. iscan: v3.1/v5.600-1011/847/50540. spamassassin: 2.63. Clear:RC:0(160.91.86.17):SA:0(-2.6/5.0):. Processed in 0.522035 secs); 18 Nov 2004 17:29:52 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 18 Nov 2004 17:29:51 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I7D00D0CXXP2V@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 18 Nov 2004 12:29:50 -0500 (EST) Original-Received: from VIRUSCAN-DAEMON.emroute2.cind.ornl.gov by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) id <0I7D00D02XWZ3O@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 18 Nov 2004 12:29:28 -0500 (EST) Original-Received: from chemphys.weizmann.ac.il (chemphys.weizmann.ac.il [132.77.58.13]) by emroute2.cind.ornl.gov (PMDF V6.2-X27 #30899) with ESMTP id <0I7D00A80X3ELR@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 18 Nov 2004 12:11:40 -0500 (EST) Original-Received: (from peter@localhost) by chemphys.weizmann.ac.il (8.9.3/8.9.3) id TAA25923 for tru64-unix-managers@ornl.gov; Thu, 18 Nov 2004 19:11:37 +0200 (IST) Original-To: tru64-unix-managers@ornl.gov X-Mailer: ELM [version 2.5 PL3] X-Envelope-From: X-ORNL-Envelope-To: tru64-unix-managers@sws1.ctd.ornl.gov rfc822;tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:7793 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:7793 Original query below. Many thanks to Tim Cutts who told me to use the Compaq C compiler using the -pthread flag and to replace the #define _REENTRANT statements in the source with: #ifndef _REENTRANT #define _REENTRANT #endif Finally, I got it to compile and run (but I don't know if it is actually doing anything). Regards, Peter > I am trying to compile up-imapproxy. The "known-issues" file states: > Problem: Tru64 Unix pthreads implementation requires a compiler flag -pthread > to be passed. > > Symptom: configure will complain that it can't find a pthreads implementation. > > Fix: This is not yet resolved. If you have a lot of free time, you can > monkey with the configure script to make the pthreads check succeed > then manually compile any modules that fail by passing the -pthread > argument to gcc. Ultimately, this will need to be fixed so the > configure script does the right thing. Patches welcome. > > I managed to get configure to complete, but when I try to run make (with > several different modofications of the Makefile, I get: > __pthread_mutex_init > pthread_attr_init > pthread_attr_setdetachstate > __pthread_create > snprintf > __pthread_mutex_lock > __pthread_mutex_unlock > collect2: ld returned 1 exit status > *** Exit 1 > Stop. > > if I do not include -pthread in the compiler options and: > warning: "_REENTRANT" redefined > > snprintf > collect2: ld returned 1 exit status > *** Exit 1 > Stop. > > if I do. > > Has anybody successfully compiled this? I am running Tru64 v4.0f. > > Peter Stern Chemical Physics Department Weizmann Institute of Science 76100 Rehovot, ISRAEL email: Peter.Stern@weizmann.ac.il phone: 972-8-9342096 fax: 972-8-9344123