Article View: gnu.g++.bug
Article #1780loader error 'Undefined symbol "-dc"' compiling with g++-1.34.1
From: Steve Knodle
Date: Wed, 22 Mar 1989 16:50
Date: Wed, 22 Mar 1989 16:50
46 lines
2113 bytes
2113 bytes
Context: gcc 1.34, g++ 1.34.1 on sun3 OS 4.0.1
Compiling test? in libg++/tests produces loader error:
Undefined symbol " -dc" apparently because LINK_SYMBOLS
has "-e -dc", omitting the entry point for "-e", and thus
absorbing the following "-dc".
This is almost certainly due to an error in my g++ setup
and installation. What might I be doing wrong?
------------------ typescript ------------------------------
Script started on Wed Mar 22 11:25:49 1989
sun.mcs.clarkson.edu% pwd
/usr/mcs/Maxima/GNU/dist-libg++
sun.mcs.clarkson.edu% cd tests
sun.mcs.clarkson.edu% rm *.o
sun.mcs.clarkson.edu% make test0
g++ -c -g -O -fchar-charconst -I/usr/mcs/Maxima/GNU/lib/g++-
include -DLDXX=\"/usr/mcs/Maxima/GNU/lib/gcc-ld++\" -DCRT1X=
\"/usr/mcs/Maxima/GNU/lib/crt1+.o\" test.hello.cc -o test.he
llo.o
/usr/include/sys/fcntlcom.h:62: warning: type declaration of
flock shadows previous declaration
/usr/include/sys/fcntlcom.h:62: warning: `flock' was declare
d `extern' and later `static'
g++ test.hello.o -o test0
Undefined symbols:
-dc
sun.mcs.clarkson.edu% exit
sun.mcs.clarkson.edu%
script done on Wed Mar 22 11:27:05 1989
------------------ g++/config.h ------------------------------
/* Config file for running GCC on Sunos version 4.
This file is good for either a Sun 3 or a Sun 4 machine. */
#ifdef sparc
#include "xm-sparc.h"
#else
#include "xm-m68k.h"
#endif
/* Provide required defaults for linker -e and -d switches.
Also, it is hard to debug with shared libraries,
so don't use them if going to debug. */
#define LINK_SPEC "%{!e*:-e} -dc -dp %{g:-Bstatic} %{static:-Bstatic}"
Technical Details
Message-ID:
<8903221650.AA25104@sun.mcs.clarkson.edu>Path:
arc1-ca.pugleaf.net!utzoo!yunexus!telly!attcan!uunet!tut.cis.ohio-state.edu!SUN.MCS.CLARKSON.EDU!slkShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!yunexus!telly!attcan!uunet!tut.cis.ohio-state.edu!SUN.MCS.CLARKSON.EDU!slk From: slk@SUN.MCS.CLARKSON.EDU (Steve Knodle) Newsgroups: gnu.g++.bug Subject: loader error 'Undefined symbol "-dc"' compiling with g++-1.34.1 Message-ID: <8903221650.AA25104@sun.mcs.clarkson.edu> Date: 22 Mar 89 16:50:38 GMT Article-I.D.: sun.8903221650.AA25104 Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 46