🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50329

(none)

#50329
From: Doug Peterson
Date: Fri, 08 Oct 1993 14:54
109 lines
6164 bytes
From VMA.CC.ND.EDU!owner-coherent  Fri Oct  8 04:00:43 1993 remote from mwc
Received: by htrails.mwc.com (smail2.5.3-coh) id AA00386; 8 Oct 93 04:00:43 GMT (Fri)
Received: by mwc.com (smail2.5.3-coh) id AA16346; 8 Oct 93 02:59:06 GMT (Fri)
Received: from VMA.CC.ND.EDU by relay1.UU.NET with SMTP 
	(5.61/UUNET-internet-primary) id AA13365; Thu, 7 Oct 93 22:01:32 -0400
Message-Id: <9310080201.AA13365@relay1.UU.NET>
Received: from VMA.CC.ND.EDU by VMA.CC.ND.EDU (IBM VM SMTP V2R2)
   with BSMTP id 2721; Thu, 07 Oct 93 21:00:40 EST
Received: from VMA.CC.ND.EDU (NJE origin LISTSERV@IRISHVMA) by VMA.CC.ND.EDU (LMail V1.1d/1.7f) with BSMTP id 2596; Thu, 7 Oct 1993 21:00:40 -0500
Date:         Tue, 5 Oct 1993 21:07:12 GMT
Reply-To: Coherent operating system <COHERENT@VMA.CC.ND.EDU>
Sender: Coherent operating system <COHERENT@VMA.CC.ND.EDU>
Comments:     Warning -- original Sender: tag was usenet@MNEMOSYNE.CS.DU.EDU
From: Eric Webster <ewebster@NYX.CS.DU.EDU>
Subject:      GNU GCC Problem with malloc.h
Comments: To: coherent@vma.cc.nd.edu
To: Multiple recipients of list COHERENT <COHERENT@VMA.CC.ND.EDU>

Hello,                            05 OCT 93

I have been writing a program for a few months now, and I started
out using the gcc compiler I got from Coherent.  As the program
grew in size and source files, I switch over to the stock compiler
to have faster compiler times.  Now the program is about done,
so I have switch back to gcc.

Now out of nowhere it seems I have a problem with one the header files.
I get the error message:

    In file included from one.c:13:
    /usr/include/sys/malloc.h:44: field `usera' has incomplete type

I have checked the time/date of the header file to make sure I havn't
changed it by mistake.  I know some people like to make changes to
some of their header files.  I don't, but I do like to look. :)
The size and time is : 1650 Thu Feb 11 20:19.  I've looked at the
header file itself and it looks akay.  That is the malloc.h in
'/usr/include/sys'.

I made a very short program just to do a malloc.  It compile and ran
just find with Coherents compiler, but got the same error as above
when I compiled with gcc.

I called MWC Tech, and was told they couldn't help.  They don't
support the gcc compiler.  He did say that gcc has their own header
files.  I didn't know that, but I guess it does make sence.  So
here is a listing of what I found.

Assuming the following isn't for c++.

In: /usr/local/lib/gcc-lib/i386-coh/2.3.2/g++-include
Directories:
    sys

Files:
    ACG.h         AllocRing.h   Binomial.h    BitSet.h      BitString.h
    Complex.h     CursesW.h     DLList.h      DiscUnif.h    Erlang.h
    Fix.h         Fix16.h       Fix24.h       Geom.h        GetOpt.h
    HypGeom.h     Incremental.h Integer.h     LogNorm.h     MLCG.h
    NegExp.h      Normal.h      Obstack.h     Pix.h         PlotFile.h
    Poisson.h     RNG.h         Random.h      Rational.h    Regex.h
    RndInt.h      SFile.h       SLList.h      SmplHist.h    SmplStat.h
    String.h      Uniform.h     Weibull.h     _G_config.h   assert.h
    bool.h        bstring.h     builtin.h     compare.h     complex.h
    ctype.h       curses.h      dir.h         dirent.h      editbuf.h
    errno.h       fcntl.h       floatio.h     fstream.h     generic.h
    getpagesize.h grp.h         indstream.h   iomanip.h     ioprivate.h
    iostream.h    istream.h     libc.h        math-68881.h  math.h
    memory.h      minmax.h      netdb.h       new.h         osfcn.h
    ostream.h     parsestream.h procbuf.h     pwd.h         regex.h
    setjmp.h      signal.h      std.h         stdarg.h      stddef.h
    stdio.h       stdiostream.h stdlib.h      strclass.h    stream.h
    streambuf.h   string.h      strings.h     strstream.h   swap.h
    time.h        typemacros.h  unistd.h      values.h

In: /usr/local/lib/gcc-lib/i386-coh/2.3.2/g++-include/sys
Files:
    ChangeLog  dir.h      fcntl.h    file.h     mman.h     param.h
    resource.h select.h   signal.h   socket.h   stat.h     time.h
    times.h    types.h    wait.h

If gcc uses these directory for its include files, and Coherent uses
'/usr/include' for its header files.  Then why is gcc looking in the
wrong directory.  That is '/usr/include/sys/malloc.h', and why isn't
there a malloc.h file in '.../i386-coh/2.3.2/g++-include/sys'.

Are you confused?  I am.  Here is the original question.  When I
use gcc to compile a program I get this error message.

    In file included from one.c:13:
    /usr/include/sys/malloc.h:44: field `usera' has incomplete type

Yet, it will compile with Coherents compiler.  Can you help?

Thank you for your time.

--------------------------------------------------------------------
Eric T. Webster                       | Do not meddle in the affairs
E-Mail : ericw@redstone-emh2.army.mil | of Wizards, for you are
                                      | crunchy, and good with ketchup.
--------------------------------------------------------------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
COHERENT Reviews:  Feb '93 UNIX Review   March '93 Computer Shopper (Page 776)
                 See the new 4.2 ad in October C Users Journal (page 1)
GO GO WHITESOX!		    Happy Trails to You,                GO GO WHITESOX!
MAGIC # 8     		    Until We Meet Again,
(For a WORLD SERIES RING!!)	                           doug@htrails.mwc.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Technical Details
Message-ID: <9310080757.AA834.V1.5@htrails.mwc.com>
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!htrails.mwc.COM!doug

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,753c15c5c16de1cc
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-10-08 08:08:50 PST
Path: arc1-ca.pugleaf.net!gmd.de!xlink.net!howland.reston.ans.net!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!htrails.mwc.COM!doug
From: doug@htrails.mwc.COM (Doug Peterson)
Newsgroups: gnu.gcc.help
Subject: (none)
Date: 8 Oct 1993 10:54:06 -0400
Organization: GNUs Not Usenet
Lines: 109
Sender: daemon@cis.ohio-state.edu
Distribution: gnu
Message-ID: <9310080757.AA834.V1.5@htrails.mwc.com>