Re: How to enable the debug symbols

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

 



I find that there are many info bellow in the configure file:
archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects
$libobjs $deplibs $postdep_objects $compiler_flags
${wl}-retain-symbols-file,$export_symbols -o $lib'


Is there some relation between this and "
${wl}-retain-symbols-file,$export_symbols -o $lib' "?

And in the ./libtool, there several line:
# Commands used to build and install a shared archive.
archive_cmds="\$CC -shared -nostdlib \$predep_objects \$libobjs
\$deplibs \$postdep_objects \$compiler_flags \${wl}-soname
\$wl\$soname -o \$lib"
archive_expsym_cmds="\$CC -shared -nostdlib \$predep_objects \$libobjs
\$deplibs \$postdep_objects \$compiler_flags \${wl}-soname
\$wl\$soname \${wl}-retain-symbols-file \$wl\$export_symbols -o \$lib"
postinstall_cmds=""
postuninstall_cmds=""


...........  ...............
...........  ...............


Well, after a try of deleting  "\${wl}-retain-symbols-file
\$wl\$export_symbols" in libtool, then make install,  the stack just
appear!!!!
(gdb) bt
#0  Client::write (this=0x629040, fd=10, buf=0x7fff2134cf10 "",
size=2097152, offset=0) at client/Client.cc:4999
#1  0x00007f739ca0922d in ceph_write (fd=10, buf=0x7fff2134cf10 "",
size=2097152, offset=0) at libceph.cc:322
#2  0x0000000000400fd3 in main (argc=1, argv=0x7fff2154d0d8) at testceph.cc:72


I think there should be a switch option of configure for
"\${wl}-retain-symbols-file \$wl\$export_symbols".
Hope helpful for all the user of ceph.

Thx you all!

Simon







2011/5/17 Simon Tian <aixt2006@xxxxxxxxx>:
>> A couple things come to mind:
>> 1. Are you using the same prefix now as you had when
>> /usr/local/lib/libceph.so.1 was built?
>
> I attached the log of make install. There is also -g -ggdb.
>
>> 2. Does the timestamp of the /usr/local/lib/libceph.so.1 change after you
>> ran make install?
>
> Yes, the modify time changed!
>
>> 3. Try deleting /usr/local/lib/libceph.so.1 (or move it to some other
>> folder) and then ./configure, make, make install.
>
> Command "make uninstall" will delete the file, I list this directory
> after this command.
>
>
> Thx!
> Simon
>
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [CEPH Users]     [Ceph Large]     [Information on CEPH]     [Linux BTRFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux