Re: perl 5.10.0 / osx 10.5.2 'make' dies at "error: redefinition of 'union semun'"

[email protected] (snowcrash+perl)
Newsgroups perl.macosx
Message-ID <[email protected]>
> Well, it's a mystery.

:-)

> The only other thing I can think of is if somehow
> _POSIX_C_SOURCE or _XOPEN_SOURCE are being defined when Configure compiles
> try.c (and union semun would not be defined in sys/sem.h as per POSIX), but
> when miniperlmain.c compiles, those macros aren't defined, so union semun is
> visible in sys/sem.h, but by that time HAS_UNION_SEMUN has been define, so
> union semun gets redefined.

possibly ... checking, neither _POSIX_C_SOURCE or _XOPEN_SOURCE are
def'd in perl's config.h

either way, for now, my workaround (adding the option to config) seems
to work -- and, afaict, causes no harm.

thanks for the help.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.