Really, there are two parts to this message:
>    warning: Unable to find dynamic linker breakpoint function.
>    warning: GDB will be unable to debug shared library initializers
>    warning: and track explicitly loaded dynamic code.

I started seeing the above warning under Solaris2.5.1 
after I applied a patch that modified some of the files in
/usr/ccs/lib.
I've been meaning to check into this further, but have not had the
chance.  I think the patch that caused this for me was:
103627-05 SunOS 5.5.1: linker patch
One side effect of this patch was that /usr/ccs/lib needs to
be in LD_LIBRARY_PATH before /usr/lib.  Usually /usr/lib is not
in the LD_LIBRARY_PATH, but people tend to add it anyway.

I believe that the above message means that you will not be able to
set break points in stars that are incrementally loaded.  Under
Solaris 2.x, I've always had problems doing this, even before this
patch.  Note that Wolfgang Reimer was able to set break points in
incrementall loaded stars under Red Hat 5.2, you should check into his
post.

I've always suspected that either upgrading or recompiling gdb might
help with the above warning.

If anyone has any further information about this, let me know 

The second part of the message is:
>    /home/ptolemy/obj.linux/pigiRpc/pigiRpc.debug: can't load library
>    'libsrcgcstars.so'

The above message suggests that you are running under Linux.
I thought that the first part of the message was peculiar to Solaris.

Appendix A and D have information
http://ptolemy.eecs.berkeley.edu/ptolemyclassic/almagest/docs/user/html/install.doc.html
http://ptolemy.eecs.berkeley.edu/ptolemyclassic/almagest/docs/user/html/sharedlib.doc.html

It could be that your settings for LD_LIBRARY_PATH are not
being propagated to the gdb process.  Appendix A says:
--start--
A.5.11 Path and/or environment variables not set in "debug" pigi

When running Ptolemy's interactive graphical interface with the debug option

pigi -debug

the path may not be set correctly, or environment variables are not at
their normal values. This is caused by the GNU debugger, gdb,
overwriting values set by the pigi start-up script. From the gdb
manual:

*Warning:* GDB runs your program using the shell indicated by your
\QSHELL' environment variable if it exists (or \Q/bin/sh' if not). If
your \QSHELL' variable names a shell that runs an initialization
file--such as \Q.cshrc' for C-shell, or \Q.bashrc' for BASH--any
variables you set in that file affect your program. You may wish to
move setting of environment variables to files that are only run when
you sign on, such as \Q.login' or \Q.profile'.

If your .cshrc file specifies a value for a variable, it will override
anything in the pigi start-up script. If this is the case, perhaps
setting the SHELL environment variable to /bin/sh before firing off
the debugger will fix the problem.
--end--

You might need to set LD_LIBRARY_PATH in your .cshrc

Also, be sure that
$PTOLEMY/lib.$PTARCH/libsrcgcstars.so
exists.

-Christopher

--------

    I'm trying to use pigiRpc.debug for the first time.  I created a debug
    version using
    
        make pigiRpc.debug
    
    but when I start Ptolemy with
    
        pigi -debug,
    
    I get the following error in the gdb window:
    
    ------------ERROR MESSAGE---------------------------------
    warning: Unable to find dynamic linker breakpoint function.
    warning: GDB will be unable to debug shared library initializers
    warning: and track explicitly loaded dynamic code.
    /home/ptolemy/obj.linux/pigiRpc/pigiRpc.debug: can't load library
    'libsrcgcstars.so'
    
    Program exited with code 020.
    ----------------------------------------------------------
    
    and I am unable to do anything within Ptolemy.  Does anyone know what I'm
    doing wrong?
    
    Thanks
    
    Beth Savoy
    Corning, Inc
    (607) 974-8813
    
    ---------------------------------------------------------------------------
   -
    Posted to the ptolemy-hackers mailing list.  Please send administrative
    mail for this list to: [EMAIL PROTECTED]
--------

----------------------------------------------------------------------------
Posted to the ptolemy-hackers mailing list.  Please send administrative
mail for this list to: [EMAIL PROTECTED]

Reply via email to