develooper Front page | perl.perl5.porters | Postings from August 2001

Re: [ID 20010730.003] IRIX 6.5 already has struct sv in <sys/sema.h> (defined in perl.h)

Thread Previous
From:
Jarkko Hietaniemi
Date:
August 1, 2001 16:43
Subject:
Re: [ID 20010730.003] IRIX 6.5 already has struct sv in <sys/sema.h> (defined in perl.h)
Message ID:
20010801184307.T4053@chaos.wustl.edu
On Mon, Jul 30, 2001 at 12:28:07PM +0200, Stian Seeberg wrote:
> This is a bug report for perl from stian@nimsoft.no,
> generated with the help of perlbug 1.33 running under perl v5.6.1.
> 
> 
> -----------------------------------------------------------------
> [Please enter your report here]
> 
> SGI IRIX 6.5 already has a struct sv defined in <sys/sema.h>. To be able
> to compile my own libraries I had to patch perl.h line 1491 from
> #ifdef UTS
> to 
> #if defined(UTS) || defined(SGI)
> 
> This defines STRUCT_SV as perl_sv instead of sv which causes a namespace
> conflict when using system libraries to compile a perllib.
> 
> You might want to use another symbol, but SGI came to mind and worked

I used __sgi.

> for me at least...

Thanks, applied.

-- 
$jhi++; # http://www.iki.fi/jhi/
        # There is this special biologist word we use for 'stable'.
        # It is 'dead'. -- Jack Cohen

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About