tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY: Compiling up-imapproxy
@ 2004-11-18 17:11 Peter.Stern
  0 siblings, 0 replies; only message in thread
From: Peter.Stern @ 2004-11-18 17:11 UTC (permalink / raw)


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



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-11-18 17:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-18 17:11 SUMMARY: Compiling up-imapproxy Peter.Stern

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox