Slack7.1/linux.2.4 compile error: storage size of `semun' isn't known - Mailing list pgsql-bugs

From pgsql-bugs@postgresql.org
Subject Slack7.1/linux.2.4 compile error: storage size of `semun' isn't known
Date
Msg-id 200010252133.e9PLXIY65800@hub.org
Whole thread Raw
Responses Re: Slack7.1/linux.2.4 compile error: storage size of `semun' isn't known
List pgsql-bugs
Andreas Hinz (news1@accci.dk) reports a bug with a severity of 4
The lower the number the more severe it is.

Short Description
Slack7.1/linux.2.4 compile error: storage size of `semun' isn't known

Long Description
Hi,
I have a the following error compiling latest CVS of PostgreSQL:

ipc.c: In function `IPCPrivateSemaphoreKill':
ipc.c:246: storage size of `semun' isn't known
ipc.c:246: warning: unused variable `semun'
ipc.c: In function `IpcSemaphoreCreate':
ipc.c:298: storage size of `semun' isn't known
ipc.c:298: warning: unused variable `semun'
ipc.c: In function `IpcSemaphoreKill':
ipc.c:399: storage size of `semun' isn't known
ipc.c:399: warning: unused variable `semun'
ipc.c: In function `IpcSemaphoreGetCount':
ipc.c:502: storage size of `dummy' isn't known
ipc.c:502: warning: unused variable `dummy'
ipc.c: In function `IpcSemaphoreGetValue':
ipc.c:513: storage size of `dummy' isn't known
ipc.c:513: warning: unused variable `dummy'
make[4]: *** [ipc.o] Error 1
make[4]: Leaving directory `/usr/ah/src/pgsql/src/backend/storage/ipc'
make[3]: *** [ipc-recursive] Error 2
make[3]: Leaving directory `/usr/ah/src/pgsql/src/backend/storage'
make[2]: *** [storage-recursive] Error 2
make[2]: Leaving directory `/usr/ah/src/pgsql/src/backend'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/usr/ah/src/pgsql/src'
make: *** [all] Error 2


From /usr/include/linux/sem.h:

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


Removing "void *__pad;" from the above makes the compile finish.


Slackware 7.1
linux-2.4.0-test9


Sample Code


No file was uploaded with this report

pgsql-bugs by date:

Previous
From: Tom Lane
Date:
Subject: Re: Updating multiple bool values crashes backend
Next
From: Kovacs Zoltan Sandor
Date:
Subject: bug in views/aggregates