Subject: Re: upgrading gcc for netbsd-1.0/i386?
To: None <netbsd-help@NetBSD.ORG, jconklin@netcom.com>
From: Brook Milligan <brook@trillium.NMSU.Edu>
List: netbsd-help
Date: 10/04/1995 10:39:02
   > I need to upgrade gcc for netbsd-1.0/i386 to use it for some c++ code.
   > In looking over glibc-1.09, however, it looks like it is not ported to
   > netbsd.  Is this true?  If so, is there any way to use newer version
   > of the compiler?

   You don't need the GNU C library to run new versions of GCC or C++
   code.  The latest version of libg++ should compile fine on NetBSD
   systems, although some minor tweaking may be necessary.

Thanks for the info.  I think I finally realized this about the time
your note arrived.  Anyway, I got both gcc-2.7.0 and libg++-2.7.0
compiled just fine.  

The problem now is that when I go to link using the netbsd ld, it gets
confused by some of the symbols.  It apparently thinks some c++ member
functions are multiply defined.  This did not happen before.
NetBSD-1.0 nm reports those symbols as a type `?' whereas gnu nm
reports them as type `-' (see below).  Is this a case of divergence in
symbol tables between the compiler and loader?

Is it possible to use this combination of tools (gnu gcc-2.7.0 +
libg++-2.7.0 + NetBSD-1.0 ld)?

Thanks for your help.

The following are symbol lists for the program and the library that
should define the symbols (i.e., the source of multiple definitions).
Lists generated by both the NetBSD-1.0 and the gnu nm are given to
illustrate the difference(?) in interpretation of the symbols.  Only
the multiply defined symbols are included in these lists (although
other symbols in the lists have the same type as these (i.e., ? versus
- with other info.).

Program symbols:

NetBSD-1.0 nm output (in part):
0000195c ? ___7complexRC7complex
000019b4 ? ___7complexRCdT1

gnu nm output (in part):
0000195c - 00 0000  (15) ___7complexRC7complex
000019b4 - 00 0000  (15) ___7complexRCdT1

Library symbols:

NetBSD-1.0 nm output (in part):
complex.o:
00000998 ? ___7complexRC7complex
000009c8 ? ___7complexRCdT1

gnu nm output (in part):

complex.o:
00000998 - 00 0000  (15) ___7complexRC7complex
000009c8 - 00 0000  (15) ___7complexRCdT1

Brook G. Milligan                      Internet:  bmilliga@nmsu.edu
Department of Biology
New Mexico State University            Telephone:  (505) 646-7980
Las Cruces, New Mexico  88003  U.S.A.  FAX:        (505) 646-5665