SUMMARY: Compiling up-imapproxy

From: Peter.Stern@weizmann.ac.il
Date: Thu Nov 18 2004 - 12:11:37 EST


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



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:12 EDT