Article View: gnu.gcc.help
Article #51164gcc 2.4.{4,5} + {shared libraries,dbx} problems under Solaris 2.2
From: David Witten
Date: Wed, 07 Jul 1993 22:04
Date: Wed, 07 Jul 1993 22:04
52 lines
1857 bytes
1857 bytes
I cannot run a simple program that uses shared libraries. I cannot debug
(with Sun's dbx) a simple program. I am using sparc-sun-solaris2.2 for the
configuration. When I ran gcc with the verbose option, it was using the
ccs/bin assembler and linker, which seems correct to me. I was using a stage 2
gcc.
Here is how I made the program that hung when run:
gcc -fpic -g t.c -c
ld -G -h libt.so.33 -o libt.so.33 t.o
ln -s libt.so.33 libt.so
gcc -g -shared m.c -L. -lt
Here is what /opt/SUNWspro/bin/dbx said:
Reading symbolic information for a.out
internal error: "Handler_new_bpt"(): Assertion (pc && pc != NOADDR) failed - "handler.cc":580
Here is t.c:
#include <stdio.h>
static char * ApplicationName;
#include <string.h>
void
init( argc, argv)
int argc;
char ** argv;
{
printf( "hello\n");
}
Here is m.c:
main( argc, argv)
int argc;
char ** argv;
{
init( argc, argv);
}
I give you my advance apologies if this is covered in the distribution or
otherwise addled. I could not find a reference to these problems however when
looking through the info files for `olaris'.
--
-ttfn, David Witten Template Software david@template.com (703) 318-1000
Technical Details
Message-ID:
<1993Jul7.220429.15772@sae.com>Path:
arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!uunet!sae!newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,a958498fadac9473,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-07-07 15:19:38 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!math.ohio-state.edu!cs.utexas.edu!uunet!sae!news
From: kdw@sae.com (David Witten)
Subject: gcc 2.4.{4,5} + {shared libraries,dbx} problems under Solaris 2.2
Message-ID: <1993Jul7.220429.15772@sae.com>
Keywords: Solaris
Sender: news@sae.com
Organization: Template Software
Date: Wed, 7 Jul 1993 22:04:29 GMT
Lines: 52