Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[Cdt-launch-inbox] [Bug 108660] New: CDT cannot run an application that uses shared libraries from nonstandard locations

https://bugs.eclipse.org/bugs/show_bug.cgi?id=108660

           Summary: CDT cannot run an application that uses shared libraries
                    from nonstandard locations
           Product: CDT
           Version: 3.0
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P3
         Component: cdt-launch
        AssignedTo: cdt-launch-inbox@xxxxxxxxxxx
        ReportedBy: tommi.hoynalanmaa@xxxxxx


Overview Description:

If you have libraries in directories that are not present in your
LD_LIBRARY_PATH and you add these directories in the shared libraries dialog the
CDT debugger still cannot find the libraries. Problem is that gdb does not find
the libraries even though solib-search-path is set.

Steps to Reproduce:
1. Unpack the VDK library (vdk-2.4.1.tar.gz) in /usr/local/src.
2. Configure the VDK library
   ./configure --prefix=/usr/local
3. Compile the VDK library
   ./make
   Do not run "make install" after this.
4. Unpack the VdkProject1.tar.gz package in some directory.
5. Start Eclipse.
6. Import a project from the directory VdkProject1 that you unpacked.
7. Create build target "all" with make target "all" to VdkProject1 if it is not
already present.
8. Build make target "all" in VdkProject1.
9. Select Run->Run... .
10. Select VdkProject1 in "Configurations".
11. Select "Debugger" sheet.
12. Set debugger to "GDB Debugger".
13. If you need to set gdb command line (e.g. to run a newer gdb version) set it
here. I have used gdb 6.3.
14. Add directory /usr/local/src/vdk-2.4.1/vdk/.libs to "Shared libraries".
15. Uncheck "Load shared library symbols automatically" and "Stop on shared
library events".
16. Run the application.


Actual Results:

The application is not run after step 16.
Console output is

/home/tohoyn/tyo/vdk/VdkProject1/VdkProject1: error while loading shared
libraries: libvdk.so.2: cannot open shared object file: No such file or directory


Expected Results:

The application should run.


Additional information:

I have used gdb version 6.3.

C++ compiler information (gcc -v):
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.4/specs
Configured with: ../src/configure -v
--enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info
--with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --with-system-zlib
--enable-nls --without-included-gettext --enable-__cxa_atexit
--enable-clocale=gnu --enable-debug --enable-java-gc=boehm
--enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.4 (Debian 1:3.3.4-9ubuntu5)

System information (uname -a):
Linux c33a 2.6.8.1-5-686 #1 Tue Jun 14 22:55:54 UTC 2005 i686 GNU/Linux

GDB configuration: i686-pc-linux-gnu



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Back to the top