swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with -static and GDB


From: Theodore C. Belding
Subject: Re: Problems with -static and GDB
Date: Wed, 23 Apr 1997 20:51:35 -0400

Hi-
As I wrote in my posting with the subject "[fwd] Submission: Debugging Gnu
Objective C with gdb", the patch is available at:
http://www-personal.engin.umich.edu/~streak/objc-960812.diff.gz

You'll also want to apply the patch contained in my posting with the subject
"fix for Obj C gdb patch".

libm.a is the static version of the math library; libm.so.* is the shared
version (so = "shared object").  You should have gotten libm.a when you
installed gcc; you can install it if it's missing by reinstalling gcc, I
suppose.  I believe that the default is to compile only the static
libraries when you install gcc; you need to specify if you want the shared
libraries.

If you're using Redhat Linux, make sure that you installed all of the
"libc-*.rpm" files.
-Ted

At 4:26 PM -0700 4/23/97, Benedikt Stefansson wrote:
>Hi Ted,
>
>Your original posting on the GDB patch referes to the GDB.BUG newsgroup,
>but I can't find a FAQ or archive for the newsgroup or their bug
>patches.
>
>Any chance you could mail the NeXT patch to GDB 4.16 and the fix to the
>patch to us again? Some indications on how to apply the patch would also
>be greatly appreciated.
>
>Also, I seem to have libm.so but not libm.a. Is it worthwhile to
>get/compile  libm.a, and where should I look for that? (I guess I should
>know but this black magic with libsomething.so vs. libsomething.a is
>still a mistery to me).
>
>Regards,
>-Benedikt
>
>The thread for this message follows:
>
>Theodore C. Belding wrote:
>
>> Hi Benedikt-
>> Sounds like it can't find libm.a.  Try:
>> % find / -name libm.a -print
>> and see if it exists.
>>
>> If you want to use gdb, you should apply the patch I forwarded to
>> this
>> list a while ago to gdb 4.16 and recompile, to make it understand
>> Obj C.
>> I'm not sure that'll help in your case, though.
>> -Ted
>>
>> --
>> Ted Belding                      <mailto:address@hidden>
>> University of Michigan Program for the Study of Complex Systems
>> <http://www-personal.engin.umich.edu/~streak/>
>>
>> On Mon, 21 Apr 1997, Benedikt Stefansson wrote:
>>
>> > I have been trying to fool around with adding the -static flag to
>> > Makefile.conf in EXTRALDFLAGS, but now the linker won't link the
>> app any
>> > more. When I use the -static flag I get the following error
>> message:
>> >
>> > ld: cannot open -lm: No such file or directory.
>> >
>
>----------------
>Benedikt Stefansson                 address@hidden
>Center for Computable Economics     Tel. (310) 825-1777
>Department of Economics, UCLA       Fax. (310) 825-9528
>Los Angeles, CA 90095-1477          http://cce.sscnet.ucla.edu
>
>
>                  ==================================
>   Swarm-Support is for discussion of the technical details of the day
>   to day usage of Swarm.  For list administration needs (esp.
>   [un]subscribing), please send a message to <address@hidden>
>   with "help" in the body of the message.
>                  ==================================


--
Ted Belding                      <mailto:address@hidden>
University of Michigan Program for the Study of Complex Systems
<http://www-personal.engin.umich.edu/~streak/>



                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.
                  ==================================


reply via email to

[Prev in Thread] Current Thread [Next in Thread]