This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs and perl5.005


>>>>> Alex Buell writes:

 > Hi guys,
 > I recently tried to recompile perl5.005 with egcs-1.0.3a and glibc-2.0.94.
 > Here's the result of my output:

 > `sh  cflags libperl.so doio.o` -fpic doio.c
 > 	  CCCMD =  cc -DPERL_CORE -c -Dbool=char -DHAS_BOOL -I/usr/local/include -O2   
 > doio.c: In function `Perl_do_ipcctl':
 > doio.c:1337: storage size of `unsemds' isn't known
 > doio.c:1377: storage size of `semun' isn't known
 > make: *** [doio.o] Error 1

 > What does this mean?
Report this as a bug to the Perl porters.  This is not an egcs problem 
but a problem of the interaction of glibc and perl5

Have a look in <bits/semun.h> on your glibc 2.0.94 system:
/* The user should define a union like the following to use it for arguments
   for `semctl'.

   union semun
   {
     int val;				<= value for SETVAL
     struct semid_ds *buf;		<= buffer for IPC_STAT & IPC_SET
     unsigned short int *array;		<= array for GETALL & SETALL
     struct seminfo *__buf;		<= buffer for IPC_INFO
   };

   Previous versions of this file used to define this union but this is
   incorrect.  One can test the macro _SEM_SEMUN_UNDEFINED to see whether
   one must define the unio or not.  */
#define _SEM_SEMUN_UNDEFINED	1

Andreas
-- 
 Andreas Jaeger   aj@arthur.rhein-neckar.de    jaeger@informatik.uni-kl.de
  for pgp-key finger ajaeger@alma.student.uni-kl.de


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]