Mail Archives: pgcc/1998/09/15/22:46:00
On Mon, Sep 14, 1998 at 06:56:24AM -0400, Jason Ahrens wrote:
> Hello.
>
> First, I would like to state for the benefit of those on the pgcc-list
> that I am not a member of the list. I am writing to the list as I could
> not find another address to write to. This message is also going to
> Douglas C. Schmidt as I could not find any other 'bug' address for ACE.
>
> I am writing to both of you at the suggestion of John Lindal, author of
> jcc. While attempting to compile the ACE libraries so I can use jcc, I
> received the following error. I have no idea what it means, and
> unfortunatly cannot supply more that what is stated already.
While this is definitely a compiler bug, it may be caused by a "buggy"
source (egcs/pgcc follows the current c++ standard much better than most
everything else). Also, the code uses a symbol (semun) not specified by any
standard.
BTW, the code is probably the cleanest c++ code I saw since a long time, so
after fixing the semun problem, the code compiled. I'd recommend upgrading
to pgcc-1.1, which is much more stable (and implements most of C++ ;)
--- ./ace/OS.h.old Tue Sep 15 23:16:32 1998
+++ ./ace/OS.h Tue Sep 15 23:20:44 1998
@@ -3032,6 +3032,15 @@
#include /**/ <sys/ipc.h>
#include /**/ <sys/shm.h>
#include /**/ <sys/sem.h>
+#if defined(__GLIBC__) && defined(_SEM_SEMUN_UNDEFINED)
+ union semun
+ {
+ int val;
+ struct semid_ds *buf;
+ unsigned short int *array;
+ struct seminfo *__buf;
+ };
+#endif
#include /**/ <sys/file.h>
#include /**/ <sys/time.h>
#include /**/ <sys/resource.h>
-----==- |
----==-- _ |
---==---(_)__ __ ____ __ Marc Lehmann +--
--==---/ / _ \/ // /\ \/ / pcg AT goof DOT com |e|
-=====/_/_//_/\_,_/ /_/\_\ --+
The choice of a GNU generation |
|
- Raw text -