HDTenEightyP/NetNews huggingface dataset:
From: maw@fsg.COM (Marvin Allen Wolfthal)
Newsgroups: gnu.gcc.help
Subject: (none)
Date: 25 Jan 1993 19:41:01 -0500
Organization: GNUs Not Usenet
Distribution: gnu

I'd appreciate your help:
I've built gcc 2.3.3 on a Gateway 486 running ESIX 4.0.3 ((SVR4),
configuring as i486-*-svr4.
The compiler builds flawlessly and -DPOINTER, -DSTATIC and -DLOCAL
in the following program work.


// foo.h
class foo
{
    private:
	int x;

    public:
	 foo(int val) { x = val; }
    	 ~foo() {;}
         void tell(){ printf( "x=%d\n", x ); }
};

// foo.cxx
extern "C"
{
#include <stdio.h>
}
#include "foo.h"

int main()
{
#if defined(POINTER)
        class foo *f = new foo(5);
        f->tell();
#elif defined(STATIC)
        static class foo f(5);
	f.tell();
#elif defined(LOCAL)
	class foo f(5);
	f.tell();
#endif
}

I am however unable to build libg++-2.3 correctly. I can get all the
files to compile only by switching -ansi on and off (varargs '...' is a problem, 
even though I have run fixincludes.svr4 in building gcc)
but in testing I get many linker errors:

Undefined			first referenced
 symbol  			    in file
.L_B766                             /usr/local/lib/libg++.a(String.o)
.L_B950                             /usr/local/lib/libg++.a(String.o)
.L_B376                             /usr/local/lib/libg++.a(String.o)
.L_B562                             /usr/local/lib/libg++.a(String.o)
.L_B636_e                           /usr/local/lib/libg++.a(String.o)
.L_B567                             /usr/local/lib/libg++.a(String.o)
.L_B701_e                           /usr/local/lib/libg++.a(String.o)
.L_B486_e                           /usr/local/lib/libg++.a(String.o)
.L_B361                             /usr/local/lib/libg++.a(String.o)
.L_B363                             /usr/local/lib/libg++.a(String.o)
.L_B756                             /usr/local/lib/libg++.a(String.o)
 etc

What is happening and is it related to collect? When I built collect as ld and
used it I got duplicate __CTOR__ errors.
Many thanks.
Marvin Allen Wolfthal
(617) 277-7392
maw@fsg.com





Newsgroups: gnu.gcc.help
From: zbig@wariat.org (Zbigniew J. Tyrlik)
Subject: Walnyut creek Gcc times..h missing ?
Organization: Akademia Pana Kleksa, Public Access Uni* Site
Distribution: na
Date: Thu, 21 Jan 1993 20:27:17 GMT


Folks, 


I installed x11r5 GNU CD-rom from Walnut Creek on an IPC running 
SunOS 4.1.3.  Well, not having gobs of space, I used included
script to create symlinks to /usr/local/[lib|include|bin]
directories.  

But an attemot to compile with gcc is resulting in: 

In file included from /usr/local/include/stdio.h:488, from
HELLO.c:1:/usr/local/include/sys/types.h:75: gnu/time.h: No such
file or directory




Any ideas ?   ( I am newbie, so if you want to point to TFM, fine,
but please be precise... which page. ).


_zjt
-- 
********************************************************************
Zbigniew J. Tyrlik       DoD# 0759   VF700C '84      zbig@wariat.org
IBM PC SIG Sysop - Cleveland Free-Net    aa609@cleveland.freenet.edu
APK	       Public Access UNI* Cleveland,          (216)-481-9436
Feeds, shell, FTP & telnet access        Uniboard distribution point 
********************************************************************
From: gail@henson.expersoft.com (Gail Slemon)
Newsgroups: gnu.gcc.help
Subject: Re: gcc 1.4
Date: 26 Jan 1993 22:02:42 -0500
Organization: GNUs Not Usenet
Distribution: gnu

Does gcc 1.4 support multiple inheritance?

Thanks!
Gail

Newsgroups: gnu.gcc.help
From: herman@nosc.mil (John W. Herman)
Subject: Binaries for gcc-2.3.3 on SPARC SUNOS 4.1
Organization: Naval Ocean Systems Center, San Diego, CA
Date: Sat, 23 Jan 1993 18:01:16 GMT


--
Are there binaries available for Sun 4 SunOS 4.1?  Thank you.
Newsgroups: gnu.gcc.help
From: pdc@dcs.ed.ac.uk (Paul Crowley)
Newsgroups: gnu.gcc.help
Subject: Re: Making a C to PostScript compiler with GCC
Date: 28 Jan 93 17:49:33 GMT
Reply-To: pdc@dcs.ed.ac.uk (Paul Crowley)
Distribution: gnu
Organization: Edinburgh University

Quoting epperly@osnome.che.wisc.edu (Tom Epperly) in article <9301262119.AA29680@osnome.che.wisc.edu>:
>I was wondering how difficult it would be to make a C to PostScript
>compiler with GCC.  Could this be done by writing a GCC machine
>description file for the PostScript language?  Can someone describe if
>this is feasible and how difficult it would be?

The resulting code would certainly run very, very slowly.  What is it
you're trying to do?
  __                                  _____
\/ o\ Paul Crowley   pdc@dcs.ed.ac.uk \\ //
/\__/ Trust me. I know what I'm doing. \X/
From: rms@gnu.ai.mit.edu (Richard Stallman)
Newsgroups: gnu.gcc.help
Subject: gcc for the mac?
Date: 23 Jan 1993 17:00:47 -0500
Organization: GNUs Not Usenet
Distribution: gnu

The FSF boycotts Apple because we think they might sue us
or GNU users if we make certain sorts of window systems.
This is an outrage.

When a company is trying in an exceptional fashion to take away your
freedom, to continue "business as usual" with them nonetheless is to
let your freedom go without a fight.  I'd rather fight for it.

What's more, since supporting any program or port takes work,
we actually save time by not supporting programs on the Mac.
Newsgroups: gnu.gcc.help
From: sinclair@chaos.cs.brandeis.edu (David A. Sinclair)
Subject: Problems w/ 2.3.3 on Sun IPX (no fpos_t or f[gs]etpos ???)
Organization: Brandeis University
Date: Mon, 25 Jan 1993 22:54:40 GMT


Hello, all.

I just built and installed gcc-2.3.3 on several IPX's, and am having
problems with it.  Specifically, the typedef for fpos_t is missing
from stdio.h (no big deal to add it, but shouldn't it already be
there?), and (worse) the linker cannot find memmove, fgetpos, or
fsetpos in the gcc libraries.  (?)

The source built fine out-of-the-box, and I didn't really need to
customize anything  -- anyone have any idea what might have gone wrong
(or what I might have done wrong? :).

Thanks for any helpful advice,
David Sinclair
sinclair@chaos.cs.brandeis.edu
  --  or  --
sinclair@fmcd29.nsc.com


-- 
-----------------------------------------------------------------
David A. Sinclair - "Chester"		      
sinclair@chaos.cs.brandeis.edu		     
Xref: sparky gnu.gcc.help:3022 gnu.misc.discuss:4628
From: J J Farrell <jjf@dsbc.icl.co.uk>
Newsgroups: gnu.gcc.help,gnu.misc.discuss
Subject: URGENT info request
Date: 25 Jan 93 04:36:45 GMT
Followup-To: gnu.gcc.help
Organization: International Computers Limited

[ Although I urgently need help concerning gcc, I've a feeling that
  this message doesn't quite belong in gnu.gcc.help; I apologise if
  it is inappropriate. ]

I want to use gcc and friends as a cross environment running on SPARC
SVR4 machines to produce code for m68k based peripheral controller
cards. We have prototyped this very successfully - my thanks to the
many GNU contributors. I now need to justify my recommendation of
the GNU software to my management.

Within the next day or so I need to get together a list of "good
things" about the GNU C development tools which will convince people 
that they are robust enough, reliable enough, and of high-enough
quality to use in the building of major commercial products. The sorts
of things I'm after are:

 - names of commercial organisations who use gcc to produce software
   products (especially large companies, and systems software); I'm
   aware that Dell and NeXT use gcc to produce their UNIX operating
   systems, and release it as their compilation system.

 - benchmark comparisons of object code produced by gcc and other
   compilers (especially for m68k family, especially systems software;
   my main criterion is the performance of the produced program -
   compilation times, and so on, are of little consequence).

 - recommendations for commercial organisations who provide support
   for GNU users. I'm aware of Cygnus Support - are there others
   similar? Anyone with good stories to tell of the quality of support
   offered?

 - experience from people who've used the GNU tools as a cross-build
   system, especially targeting m68k, even better if run on SPARC,
   and better still if running under SVR4!

 - anything else I haven't thought of which might be useful!

I need to get this together very quickly, so fast responses would be
greatly appreciated - a short reply as soon as you read this will
probably be of more use to me than a longer one later. Please reply
by mail (to jjf@dsbc.icl.co.uk); I'll post a summary to gnu.misc.discuss
in a few days if anyone asks me to do so.

Thanks for reading this far, and for any help you can offer; and I
suppose I had better point out that any views or opinions expressed
or implied in this message are my own, and should not be taken as
indicative of ICL's views and opinions.
From: tch@cis.ksu.edu (Thomas C Hampton )
Newsgroups: gnu.gcc.help
Subject: GCC and Motorola MC68HC16  ...
Date: 24 Jan 1993 18:44:55 GMT
Organization: Kansas State University, Dept. of Computing and Information Sciences
NNTP-Posting-Host: cygnus.cis.ksu.edu

Hi-

The subject really says it all.  I would like to be able to cross
compile to the 68hc16 using gcc, but I need a backend to gcc for the
hc16. 

Thanks.
--
Tom C Hampton			    College of Engineering
Kansas State University		      Compter Science
NASA Mobile Robotics Research Group   Electrical and Computer Engineering
	"When we are invited to live on this earth, there is no reason
	 we should not visit the basement."
					-Jaques Cousteau
From: wht@n4hgf.Mt-Park.GA.US (Warren Tucker)
Subject: Re: gcc 2.3.2 on SCO 3.2.4 (__STDC__)
Organization: TuckerWare/ARS N4HGF
Date: Thu, 21 Jan 1993 05:02:36 GMT
X-Newsreader: TIN [version 1.1 PL6]

Mads Westermann (wes@dd.dk) wrote:
: Sometime ago there was a discussion on a problem involving the
: definition of __STDC__ in gcc versus cc on SCO 3.2.4. I have now
: run into the problem and cannot remember what the solution was !!
: 
: If there's somebody out there that has the solution I'd be very
: interested in hearing about it.

To make sure it works for me with K&R code, I do:

CC = gcc
CFLAGS = \
	-traditional -D__STDC__=0 \
	-D_NO_PROTOTYPE -D_SVID -D_KR \
	-DM_BITFIELDS -DM_COFF -DM_I386 -DM_I86 -DM_I86SM \
	-DM_INTERNAT -DM_SDATA -DM_STEXT -DM_SYS3 -DM_SYS5 \
	-DM_SYSIII -DM_SYSV -DM_UNIX -DM_WORDSWAP -DM_XENIX -Dunix -Di386

This gives no way to recalcitrant header files or to various
gcc configuration philosophies.

Chip Salzberg has provided a configuration for gcc which obviates
the need for *most* of the above, but not all.  The above make *sure*
even if you have not received the benefit of Chip's wisdom.

------------------------------------------------------------------------------
Warren Tucker  (404)587-5766              n4hgf!wht or wht@n4hgf.Mt-Park.GA.US
All readers cannot be leaders, but all leaders must be readers. - Harry Truman
Newsgroups: gnu.gcc.help
From: rbp@netcom.com (Bob Pasker)
Subject: linking shareable images on VAX/VMS with GCC
Organization: Netcom - Online Communication Services  (408 241-9760 guest) 
Date: Wed, 27 Jan 1993 20:09:35 GMT

i am trying to link a sharable image with an OBJ from a GCC-compiled
program.  

the problem i run into is that i cannot seem to make some module-level
variables have the "noshare" psect attribute, which those of you who
have read this far will undoubtably understand the implications. 

with the vax-c compiler i simply say:

	noshare int foobar.


of course, i could define the psect options in a linker options file,
but that seems like the long way around.

there seem to be some things in <gnu-hacks.h> which will solve the
problem, but i cannot seem to make them work and the info files are
less than clear on the subject.  would some kind soul please enlighten
me?
-- 
-- 
-- bob pasker
-- rbp@netcom.com
--
Newsgroups: gnu.gcc.help
From: kevin@traffic.den.mmc.com (Kevin Rodgers)
Subject: Re: SCCS strings embedded in code with -Wall
Organization: Martin Marietta Western Internal Systems, Technical Operations
Distribution: na
Date: Thu, 21 Jan 1993 19:59:55 GMT

In article <bkFYsLbr@twinsun.com> eggert@twinsun.com (Paul Eggert) writes:
>parma@sophie.ct.picker.com (Michael J. Parma) writes:
>
>>'-Wall' causes the a warning about an unused variable.
>>We don't want _any_ warning messages if we can help it....
>>Something that works on any standard compiler would be welcomed
>
>The easiest way to prevent the warning is to use the variable.  E.g.
>
>	static char rcsid[] = "$Id: ... $";
>	print_version() { printf("version: %s\n", rcsid); }

print_version() should probably be declared static.

>Some compilers remove `rcsid' from the object file if it's not referenced;
>you really must use rcsid if you want it to remain in the object file.

Yuck.  What about rcs_id, sccsid, sccs_id, etc.?

>So GCC's warning is useful.

I would suggest that an unused variable warning is inappropriate if the
variable has been initialized, at least if it is declared to be static.

(Should this be moved to gnu.gcc.bug?)
-- 
Kevin Rodgers				kevin@traffic.den.mmc.com
Martin Marietta MS A16401		(303) 790-3971
116 Inverness Dr. East
Englewood CO 80112 USA			GO BUFFS!
From: dave@mizar.csis.dit.csiro.au (David Campbell)
Subject: Shared libraries with gcc/g++
Organization: CSIRO Division of Information Technology
Date: Thu, 28 Jan 1993 00:25:11 GMT

Hi.  Does anybody know if there are any special tricks to using shared
libraries with gcc/g++ (version 2.3.3)?

I'm using a sparc platform and successfully build shared libraries using
Sun C++ 2.1 by compiling with -PIC and putting all global variables into one
object which becomes libxx.sa.0.1 and the other objects into libxx.so.0.1.

...but when it comes to g++, the libraries build OK with -fPIC but when I am
linkingan application, I get a failure with unresolved symbols which are all
defined in libxx.sa.0.1.

gcc/g++ is using sun's linker.

Any help would be appreciated.

Regards,
  +--------------------------------------------------+-----------------------+
  | Dave Campbell                                    |            UNIX & C++ |
  | Phone: + 61 6 275 0944      Fax: + 61 6 257 1052 |   _--_|\       PLEASE |
  | CSIRO Division of Information Technology         |  /      \             |
  | Centre for Spatial Information Systems           |  \_.--._/ <- Canberra |
  | PO BOX 664                                       |        v              |
  | CANBERRA ACT 2601       +------------------------+                       |
  | AUSTRALIA               | dave@csis.dit.csiro.au |                       |
  +-------------------------+------------------------+-----------------------+
  |                       Get right.....or get left.                         |
  +--------------------------------------------------------------------------+
Newsgroups: gnu.gcc.help
From: jhawk@panix.com (John Hawkinson)
Subject: Re: gnu gcc compiler on VMS (1.42) question on run-time library
Organization: PANIX Public Access Unix, NYC
Date: Fri, 22 Jan 1993 14:53:32 GMT

In <1993Jan21.040409.13612@netcom.com> rbp@netcom.com (Bob Pasker) writes:

>ok, i've installed 1.42 (from prep.ai.mit.edu) on my VAX/VMS 5.2
>system and have been able to compile & run many programs.  thanks
>mucho to the gnu folks & other helpers.

I would suggest you get the gcc2.2.2 VMS distribution from
mango.rsmas.miami.edu.


>can anyone shed some light on (1) why the GNU compiler doesnt have
>these intrinsic functions? if i didn't have the VAXCRTL would i be
>SOL? (2) why my read() of 720 bytes from a 720 byte file returns only
>the first 24 bytes (the first line)?

I can't answer (2), but I can tell you that EVERYBODY with a VMS
system has VAXCRTL because it's not distributed with VAX-C (or DEC-C),
but rahter with VMS. Unfortunately, the printed docs are distributed
with  VAX-C and DEC-C, and I suspect the online ones are  as well
(do you get anything when you type HELP CC? The complete on-line
docs for all the VAXCRTL functions are in there, somewhere).
--
John Hawkinson
jhawk@panix.com
Newsgroups: gnu.gcc.help
From: mcduff@newton.physics.uq.oz.au (Rodney Graeme McDuff)
Subject: Where are the 'math.h' routines for gcc-2.3.3?
Reply-To: coates@spectro.jussieu.fr
Organization: Physics Dept. The University of Queensland
Date: Thu, 21 Jan 1993 23:48:56 GMT

This message has been posted by a friend, so please post any replies to me 
personally (see below).  I have just installed 'gcc-2.3.3' on a Sparc under 
SUNOS4.1, and everything seems to be fine, except that 'libgcc' doesn't seem to 
contain any of the routines from 'math.h', such as '_cos', etc.  I have looked 
through the source code, but can find no sign of them.  Can someone give me a 
hint as to what is happening here please?  Are these routines missing from this 
latest version of 'gcc', or did I find a bad site to 'ftp' from, or what?
	Thank you very much in advance for any clues that anyone can give to 
me.  I would be most grateful.
						Cheers,
								Tony.
________________________________________________________________________________
A.B.Coates (Tony)
Laboratoire de Spectroscopie Hertzienne de l'ENS
Universite Pierre et Marie Curie
Case 74, 4 place Jussieu		Email:	   coates@spectro.jussieu.fr
F-75252 Paris CEDEX 05			Telephone: +33 1 44 27 44 09
France					Fax:	   +33 1 44 27 38 45

"J'ai mes opinions.  L'universite a ses opinions.  L'intersection de ces deux ensembles est probablement vide."
"I have my opinions.  The university has its opinions.  The intersection of these two sets is probably empty."
________________________________________________________________________________
From: tiemann@cygnus.com
Newsgroups: gnu.gcc.help
Subject: Re: gcc 1.4
Date: 27 Jan 1993 09:41:06 -0500
Organization: GNUs Not Usenet
Distribution: gnu

   Date: Mon, 25 Jan 93 11:57:01 PST
   From: gail@henson.expersoft.com (Gail Slemon)
   To: help-gcc@prep.ai.mit.edu
   Subject: Re: gcc 1.4
   
   
   
   Does gcc 1.4 support multiple inheritance?
   
   Thanks!
   Gail
   
Multiple inheritance is only supported in the version 2 compilers.
The current version is 2.3.3.

Michael
From: epperly@osnome.che.wisc.edu (Tom Epperly)
Newsgroups: gnu.gcc.help
Subject: Making a C to PostScript compiler with GCC
Date: 26 Jan 1993 16:33:08 -0500
Organization: GNUs Not Usenet
Distribution: gnu

I was wondering how difficult it would be to make a C to PostScript
compiler with GCC.  Could this be done by writing a GCC machine
description file for the PostScript language?  Can someone describe if
this is feasible and how difficult it would be?

				Tom
Newsgroups: gnu.gcc.help
From: pduffy@liberator.comms.eee.strathclyde.ac.uk (Peter Duffy)
Subject: Cross-Compilation PC Host -> m68k target
Organization: /home/pduffy/.organization
Date: Thu, 28 Jan 1993 16:02:59 GMT


Hello all,

I've asked part of this question before, but I'm now looking for more
help.

I understand from the author of djgpp that I can retrieve its sources,
configure them to produce code for a 68k, and then use djgpp in its
'native' mode to produce the cross-compiler.  Can anyone give me
pointers to the following:

	1.  Has anyone done this before!!  It would be a _lot_ easier
	if I could just pick up the finished product;

	2.  If I have to do it myself, what will be the situation with
	library code, particularly stdio??  The code will run on a 68k
	single board computer, and I want standard output redisrected
	to a serial port which is connected to the PC (I will have a
	terminal emulator running on the PC).  I presume this will
	involve rewriting substantial parts of stdio...

	3.  I would like to be able to do source level debugging of
	the code running on the 68k.  Would gdb be able to do this, or
	(more likely) what mods would be needed to make gdb do this?

My main hope is that someone can answer 1. in the affirmative, 'cos
otherwise this is looking like a lot of work, and I don't have the
time necessary.  I may have to (perish the thought) use a proprietary
cross-compiler!!!!!!   Which does beg another question -- have any of
the GNU support organisations (cygnus is the only one I know of)
produced anything I could use??

All help is greatly apprecited; I will summarise, and if I do make the
djgpp mods, I will make them available (otherwise I'd be breaking the
law, of course ;-)).

Much thanks,
Peter Duffy

pduffy@comms.eee.strathclyde.ac.uk

Newsgroups: gnu.gcc.help
From: greg@serveme.chi.il.us (Gregory Gulik)
Subject: Re: GCC on ATT 3B2
Organization: Gagme Public Access Unix, Chicago, Illinois
Date: Tue, 26 Jan 1993 18:54:54 GMT

In article <44003@sdcc12.ucsd.edu> cs65x4@sdcc8.ucsd.edu (Dave Goldsmith) writes:
>I am trying to compile gcc 2.3.3 on an ATT 3B2 1000/70
>I am getting the following error when building cc1:
>
>ld fatal: fail to write symbol name reg_class in string table for
>          file cc1

Try increasing your ulimit.  The default is 1 MB, and the executable
is over 1 MB in size.

>Has anyone seen this error and know the solution?
>
>Has anyone built gcc/g++ on an ATT 3B2 before?


Yup, a couple times.

>Does anyone know of an ftp site where I can get already compiled
>binaries of GNU products such as gcc, g++, gdb, etc for the ATT 3B2?

gcc and g++ (no libraries, yet) binaries are available from
ucqais.cba.uc.edu

-greg

-- 
Gregory A. Gulik                                 Call Gagme, a public access
       greg@serveme.chi.il.us                    UNIX system at 312-282-8606
   ||  gulik@rtsg.mot.com                        For information, drop a note
                                                 to info@gagme.chi.il.us
Newsgroups: gnu.gcc.help,comp.lang.c
From: rac@sherpa.UUCP (Roger Cornelius)
Subject: Re: gcc 2.3.2 on SCO 3.2.4 (__STDC__)
Organization: Roger's House; Gulfport, Fl
Date: Thu, 21 Jan 1993 03:59:03 GMT

In article <1993Jan20.123122.12886@dd.dk>, wes@dd.dk (Mads Westermann) writes:
> Sometime ago there was a discussion on a problem involving the
> definition of __STDC__ in gcc versus cc on SCO 3.2.4. I have now
> run into the problem and cannot remember what the solution was !!
> 
> If there's somebody out there that has the solution I'd be very
> interested in hearing about it.

The solution is to get gcc 2.3.3 which eliminates the problem.
-- 
Roger Cornelius        sherpa!rac@uunet.uu.net       ...!uunet!sherpa!rac
From: keith@msmri.med.ubc.ca
Newsgroups: gnu.gcc.help
Subject: Re: Setting default library for gcc
Date: 21 Jan 1993 05:08:54 GMT
Organization: University of British Columbia, Vancouver, B.C., Canada
NNTP-Posting-Host: msmri.med.ubc.ca

In article <1jhnvaINN2p8@iskut.ucs.ubc.ca> keith@msmri.med.ubc.ca writes:
>The gcc FAQ recommends using your host C library and include files.
>How do you set the default path in gcc to them?  I think this should
>be included in the FAQ and the INSTALL file in gcc.
>

I should explain myself more clearly.  I am installing gcc 2.3.3 on
a SUN os 4.1.1 in a directory other than /usr/lib.  Lets call the 
directory /foo.  This was complished by editing the Makefile generated
by configure so prefix = /foo.  The problem this causes is that gcc then
looks for libc.a in /foo/lib according to the -v option on gcc.  -v does
not tell me (at least I cannot see it) where the include files are
looked for.

I realize that I can instruct gcc to search the host lib and include
file by the -L and -I options. i.e.

    gcc -L/usr/lib -I/usr/include

but I would prefer to have /usr/lib and /usr/include
as the default paths used by the gcc compiler
rather than /foo/lib and /foo/include.  How do I go about modifying the
Makefile so this is the case?

Thanks in advance.

Keith S Cover
Physics, UBC
keith@msmri.med.ubc.ca