[Exim] building exim with perl on IRIX6.5

Pàgina inicial
Delete this message
Reply to this message
Autor: Phil Chambers
Data:  
A: exim-users
Assumpte: [Exim] building exim with perl on IRIX6.5
This is on IRIX6.5, uname -R gives: 6.5 6.5.4m.

I have been using exim without perl and had no significant problem with building
that. However, I decided to build it with perl included so that I cauld try to use
some of the functionality that perl would give and have hit a major stumbling block.

perl.c fails to compile because:

" In file included from /usr/share/lib/perl5/irix-n32/5.00404/CORE/perl.h:1005,
"                  from perl.c:23:
" /usr/share/lib/perl5/irix-n32/5.00404/CORE/sv.h:35 redefinition of `struct sv'


After much searching I find that <sys/sema.h> (which is included by <net/if.h>,
which is in turn included by exim.h) contains:

"  typedef struct sv { 
"  #ifdef SEMAINFOP
"         void  *sv_info;
"  #endif
"         __psunsigned_t  sv_queue;
"  } sv_t;


which clashes whith /usr/share/lib/perl5/irix-n32/5.00404/CORE/sv.h:35:

"  struct sv {
"         void*  sv_any;
"         U32    sv_refcnt;
"         U32    sv_flags;
"  };


I can't believe that exim with perl has not been built by lots of people with
IRIX6.5, so can someone please point me to a solution? I presume I am missing a
compile-time option, but can't work out which.

(The copliler options were
 cc -D_BSD_SIGNALS -D_BSD_TYPES -D_BSD_TIME -DLANGUAGE_C -DEMBEDMYALLOC
    -I/usr/share/lib/perl5/irix-n32/5.00404/CORE -O2 -c perl.c


I get the same problem if I change to the gcc compiler.)

Phil.
---------------------------------------
Phil Chambers (postmaster@???)
University of Exeter