delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1998/09/15/22:46:00

X-pop3-spooler: POP3MAIL 2.1.0 b 4 980420 -bs-
Message-ID: <19980916004307.61925@cerebro.laendle>
Date: Wed, 16 Sep 1998 00:43:07 +0200
From: Marc Lehmann <pcg AT goof DOT com>
To: Jason Ahrens <jahrens AT magma DOT ca>, pgcc-list AT Desk DOT nl, schmidt AT cs DOT wustl DOT edu
Subject: Re: Unknown error
Mail-Followup-To: Jason Ahrens <jahrens AT magma DOT ca>, pgcc-list AT Desk DOT nl,
schmidt AT cs DOT wustl DOT edu
References: <Pine DOT LNX DOT 3 DOT 96dg4 DOT 980914184639 DOT 2709A-100000 AT Cougar DOT CanadianWilds DOT org>
Mime-Version: 1.0
In-Reply-To: <Pine.LNX.3.96dg4.980914184639.2709A-100000@Cougar.CanadianWilds.org>; from Jason Ahrens on Mon, Sep 14, 1998 at 06:56:24AM -0400
X-Operating-System: Linux version 2.1.120 (root AT cerebro) (gcc version pgcc-2.91.57 19980901 (egcs-1.1 release))
Status: RO
Lines: 50

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019