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

Bug#176797: libstdc++5: GDB looks in the wrong place for libstdc++ headers



On Wed, Jan 15, 2003 at 03:05:55PM -0500, Daniel Jacobowitz wrote:
> On Wed, Jan 15, 2003 at 02:15:04AM -0600, Daniel E Baumann wrote:
> > Package: libstdc++5
> > Version: 1:3.2.2-0pre5
> > Severity: important
> > 
> > When running my c++ program from inside gdb I get the following:
> > 
> > danielb@frodo:~/software/src/cvs/gsim/src/examples/mm1$ gdb .libs/mm1
> > GNU gdb 5.3-debian
> > Copyright 2002 Free Software Foundation, Inc.
> > GDB is free software, covered by the GNU General Public License, and you
> > are
> > welcome to change it and/or distribute copies of it under certain
> > conditions.
> > Type "show copying" to see the conditions.
> > There is absolutely no warranty for GDB.  Type "show warranty" for
> > details.
> > This GDB was configured as "i386-linux"...
> > (gdb) run
> > Starting program:
> > /home/danielb/software/src/cvs/gsim/src/examples/mm1/.libs/mm1
> > [New Thread 16384 (LWP 20311)]
> >  
> >  Program received signal SIGSEGV, Segmentation fault.
> >  [Switching to Thread 16384 (LWP 20311)]
> >  0x400313b6 in bool std::has_facet<std::ctype<char> >(std::locale
> >  const&) (__loc=@0x804dc48)
> >      at /usr/include/g++-v3/bits/locale_facets.tcc:87
> >      87      /usr/include/g++-v3/bits/locale_facets.tcc: No such file or
> >      directory.
> >              in /usr/include/g++-v3/bits/locale_facets.tcc
> 
> That's not enough information.  How was this built?  What libraries is
> it really linked to?  What headers are really opened during build?

It was built with g++-3.2 so it is linked to libstdc++5 (well, and my
lib gsim, gnu common c++ built from cvs and gnu scientific
library, etc.). It uses the headers in /usr/include/c++/3.2 which is where
they are for libstdc++5[-dev], AFAIK.

ldd -v gives me:

	libgsim.so.0 => /usr/lib/libgsim.so.0 (0x40022000)
	libgsl.so.0 => /usr/lib/libgsl.so.0 (0x4004b000)
	libgslcblas.so.0 => /usr/lib/libgslcblas.so.0 (0x40194000)
	libccext2-1.1.so.0 => /usr/lib/libccext2-1.1.so.0 (0x401be000)
	libccgnu2-1.1.so.0 => /usr/lib/libccgnu2-1.1.so.0 (0x401fb000)
	libxml2.so.2 => /usr/lib/libxml2.so.2 (0x4022f000)
	libz.so.1 => /lib/libz.so.1 (0x402e8000)
	libdl.so.2 => /lib/libdl.so.2 (0x402f7000)
	libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x402fa000)
	libm.so.6 => /lib/libm.so.6 (0x403a3000)
	libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x403c4000)
	libpthread.so.0 => /lib/libpthread.so.0 (0x403cc000)
	libc.so.6 => /lib/libc.so.6 (0x4041b000)
	libccext2-0.99.so.0 => /usr/lib/libccext2-0.99.so.0 (0x4052c000)
	libccgnu2-0.99.so.0 => /usr/lib/libccgnu2-0.99.so.0 (0x4055a000)
	/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

	Version information:
	.libs/mm1:
		libgcc_s.so.1 (GCC_3.0) => /lib/libgcc_s.so.1
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libstdc++.so.5 (CXXABI_1.2) => /usr/lib/libstdc++.so.5
		libstdc++.so.5 (GLIBCPP_3.2) => /usr/lib/libstdc++.so.5
	/usr/lib/libgsim.so.0:
		libm.so.6 (GLIBC_2.0) => /lib/libm.so.6
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
	/usr/lib/libgsl.so.0:
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
		libm.so.6 (GLIBC_2.0) => /lib/libm.so.6
	/usr/lib/libgslcblas.so.0:
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
	/usr/lib/libccext2-1.1.so.0:
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
	/usr/lib/libccgnu2-1.1.so.0:
		libc.so.6 (GLIBC_2.1.2) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
	/usr/lib/libxml2.so.2:
		libm.so.6 (GLIBC_2.0) => /lib/libm.so.6
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
	/lib/libz.so.1:
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
	/lib/libdl.so.2:
		libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
		libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
	/usr/lib/libstdc++.so.5:
		libgcc_s.so.1 (GCC_3.0) => /lib/libgcc_s.so.1
		libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
	/lib/libm.so.6:
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
	/lib/libgcc_s.so.1:
		libc.so.6 (GLIBC_2.2.4) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
	/lib/libpthread.so.0:
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.2) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1.2) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
		libc.so.6 (GLIBC_PRIVATE) => /lib/libc.so.6
	/lib/libc.so.6:
		ld-linux.so.2 (GLIBC_2.1) => /lib/ld-linux.so.2
		ld-linux.so.2 (GLIBC_2.0) => /lib/ld-linux.so.2
		ld-linux.so.2 (GLIBC_PRIVATE) => /lib/ld-linux.so.2
	/usr/lib/libccext2-0.99.so.0:
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
	/usr/lib/libccgnu2-0.99.so.0:
		libc.so.6 (GLIBC_2.1.2) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1.3) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.0) => /lib/libc.so.6
		libc.so.6 (GLIBC_2.1) => /lib/libc.so.6

Dan
-- 
And if cynics ridicule freedom, ridicule community...if ``hard nosed 
realists'' say that profit is the only ideal...just ignore them, and use 
copyleft all the same.
      -- RMS

Was I helpful?  Let others know: 
  http://svcs.affero.net/rm.php?r=chillywilly



Reply to: