Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Mac > Perl on OSX > perl 5.10.0 / o...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 1047 of 1056
Post > Topic >>

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

by schneecrash+perl@[EMAIL PROTECTED] (Snowcrash+Perl) Mar 5, 2008 at 10:20 AM

i'm building perl 5.10.0 on

	Darwin Kernel Version 9.2.0: Tue Feb  5 16:15:19 PST 2008;
root:xnu-1228.3.13~1/RELEASE_PPC
	powerpc-apple-darwin9-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5531)


currently,

	make

dies @[EMAIL PROTECTED]
 "redef of 'union semun'"


	cd /build/perl-5.10.0
	make
	...
	In file included from miniperlmain.c:36:
	perl.h:5431: error: redefinition of 'union semun'
	make: *** [miniperlmain.o] Error 1


looking @[EMAIL PROTECTED]
 perl.h:5427
....
#ifdef HAS_SEM
#   include <sys/ipc.h>
#   include <sys/sem.h>
#   ifndef HAS_UNION_SEMUN  /* Provide the union semun. */
    union semun {
    int     val;
    struct semid_ds *buf;
    unsigned short  *array;
    };
#   endif
#   ifdef USE_SEMCTL_SEMUN
#   ifdef IRIX32_SEMUN_BROKEN_BY_GCC
            union gccbug_semun {
        int             val;
        struct semid_ds *buf;
        unsigned short  *array;
        char            __dummy[5];
        };
#           define semun gccbug_semun
#   endif
#       define Semctl(id, num, cmd, semun) semctl(id, num, cmd, semun)
#   else
#       ifdef USE_SEMCTL_SEMID_DS
#           ifdef EXTRA_F_IN_SEMUN_BUF
#               define Semctl(id, num, cmd, semun) semctl(id, num,
cmd, semun.buff)
#           else
#               define Semctl(id, num, cmd, semun) semctl(id, num,
cmd, semun.buf)
#           endif
#       endif
#   endif
#endif
....


it looks like a HAS_UNION_SEMUN or HAS_SEM needs to be undef'd?

i don't see this issue w/ 5.8.8, so it might be perl-src ...

before I blindly undef/def symbols, can anyone comment/hint on this?

thanks.
 




 6 Posts in Topic:
perl 5.10.0 / osx 10.5.2 'make' dies at "error: redefinition of
schneecrash+perl@[EMAIL P  2008-03-05 10:20:43 
Re: perl 5.10.0 / osx 10.5.2 'make' dies at "error: redefinition
schneecrash+perl@[EMAIL P  2008-03-05 11:02:00 
Re: perl 5.10.0 / osx 10.5.2 'make' dies at "error: redefinition
emoy@[EMAIL PROTECTED] (  2008-03-05 11:17:15 
Re: perl 5.10.0 / osx 10.5.2 'make' dies at "error: redefinition
schneecrash+perl@[EMAIL P  2008-03-05 11:38:14 
Re: perl 5.10.0 / osx 10.5.2 'make' dies at "error: redefinition
emoy@[EMAIL PROTECTED] (  2008-03-05 12:01:27 
Re: perl 5.10.0 / osx 10.5.2 'make' dies at "error: redefinition
schneecrash+perl@[EMAIL P  2008-03-05 12:15:12 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Jul 24 0:49:36 CDT 2008.