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

Fwd: linking a code with


Hello,

Please ignore my previous mail.
It will be great if the sys-admin can erase it.

Thanks,
Zvika

---------- Forwarded message ----------
From: Zvi Vered <veredz72@xxxxxxxxx>
Date: Tue, Apr 29, 2014 at 10:28 PM
Subject: linking a code with
To: libssh@xxxxxxxxxx


Hello,

I built the code in guided_tour.dox with libssl.so, libcrypto.so I created
(with last version of openssl):

gcc Main.o -o Main.out /home/my_user/GNU/libssh-0.6.3/build/lib/libssh.so
/home/my_user/GNU/openssl/lib/libssl.so
/home/my_user/GNU/openssl/lib/libcrypto.so

and got the following message:

/usr/bin/ld: warning: libssl.so.6, needed by
/home/zvivered/GNU/libssh-0.6.3/build/lib/libssh.so, may conflict with
libssl.so.1.0.0
/usr/bin/ld: warning: libcrypto.so.6, needed by
/home/zvivered/GNU/libssh-0.6.3/build/lib/libssh.so, may conflict with
libcrypto.so.1.0.0

When I ran Main.out I got the following crash:

*** glibc detected *** ./Main.out: malloc(): memory corruption: 0x09d0fae0
***
======= Backtrace: =========
/lib/libc.so.6[0x9867e3]
/lib/libc.so.6(__libc_malloc+0x67)[0x988447]
/home/zvivered/GNU/openssl/lib/libcrypto.so.1.0.0[0x14c73c]
======= Memory map: ========
00110000-0027d000 r-xp 00000000 16:45 5315473
/home/zvivered/GNU/openssl/lib/libcrypto.so.1.0.0
0027d000-00292000 rwxp 0016c000 16:45 5315473
/home/zvivered/GNU/openssl/lib/libcrypto.so.1.0.0
00292000-00295000 rwxp 00292000 00:00 0
00479000-0047a000 r-xp 00479000 00:00 0          [vdso]
005e7000-00623000 r-xp 00000000 16:45 3123359
/home/zvivered/GNU/libssh-0.6.3/build/lib/libssh.so.4.4.1
00623000-00624000 rwxp 0003c000 16:45 3123359
/home/zvivered/GNU/libssh-0.6.3/build/lib/libssh.so.4.4.1
00729000-00733000 r-xp 00000000 16:45 17992242   /lib/libnss_files-2.5.so
00733000-00734000 r-xp 00009000 16:45 17992242   /lib/libnss_files-2.5.so
00734000-00735000 rwxp 0000a000 16:45 17992242   /lib/libnss_files-2.5.so
007cd000-007e3000 r-xp 00000000 16:45 17990972   /lib/libselinux.so.1
007e3000-007e5000 rwxp 00015000 16:45 17990972   /lib/libselinux.so.1
007e7000-00822000 r-xp 00000000 16:45 17990971   /lib/libsepol.so.1
00822000-00823000 rwxp 0003b000 16:45 17990971   /lib/libsepol.so.1
00823000-0082d000 rwxp 00823000 00:00 0
008a3000-008e9000 r-xp 00000000 16:45 17991016   /lib/libssl.so.0.9.8e
008e9000-008ed000 rwxp 00045000 16:45 17991016   /lib/libssl.so.0.9.8e
008f0000-008f2000 r-xp 00000000 16:45 17990951   /lib/libkeyutils-1.2.so
008f2000-008f3000 rwxp 00001000 16:45 17990951   /lib/libkeyutils-1.2.so
008f8000-00913000 r-xp 00000000 16:45 17990621   /lib/ld-2.5.so
00913000-00914000 r-xp 0001a000 16:45 17990621   /lib/ld-2.5.so
00914000-00915000 rwxp 0001b000 16:45 17990621   /lib/ld-2.5.so
0091c000-00a73000 r-xp 00000000 16:45 17990622   /lib/libc-2.5.so
00a73000-00a75000 r-xp 00156000 16:45 17990622   /lib/libc-2.5.so
00a75000-00a76000 rwxp 00158000 16:45 17990622   /lib/libc-2.5.so
00a76000-00a79000 rwxp 00a76000 00:00 0
00aa6000-00aa9000 r-xp 00000000 16:45 17990623   /lib/libdl-2.5.so
00aa9000-00aaa000 r-xp 00002000 16:45 17990623   /lib/libdl-2.5.so
00aaa000-00aab000 rwxp 00003000 16:45 17990623   /lib/libdl-2.5.so
00aad000-00abf000 r-xp 00000000 16:45 17990630   /lib/libz.so.1.2.3
00abf000-00ac0000 rwxp 00011000 16:45 17990630   /lib/libz.so.1.2.3
00ac2000-00ad8000 r-xp 00000000 16:45 17990624   /lib/libpthread-2.5.so
00ad8000-00ad9000 r-xp 00015000 16:45 17990624   /lib/libpthread-2.5.so
00ad9000-00ada000 rwxp 00016000 16:45 17990624   /lib/libpthread-2.5.so
00ada000-00adc000 rwxp 00ada000 00:00 0
00bb2000-00c07000 r-xp 00000000 16:45 5315476
/home/zvivered/GNU/openssl/lib/libssl.so.1.0.0
00c07000-00c0c000 rwxp 00054000 16:45 5315476
/home/zvivered/GNU/openssl/lib/libssl.so.1.0.0
00d24000-00d2b000 r-xp 00000000 16:45 17990625   /lib/librt-2.5.so
00d2b000-00d2c000 r-xp 00007000 16:45 17990625   /lib/librt-2.5.so
00d2c000-00d2d000 rwxp 00008000 16:45 17990625   /lib/librt-2.5.so
00dcf000-00dda000 r-xp 00000000 16:45 17990632
/lib/libgcc_s-4.1.2-20080825.so.1
00dda000-00ddb000 rwxp 0000a000 16:45 17990632
/lib/libgcc_s-4.1.2-20080825.so.1
032f6000-03420000 r-xp 00000000 16:45 17991012   /lib/libcrypto.so.0.9.8e
03420000-03434000 rwxp 00129000 16:45 17991012   /lib/libcrypto.so.0.9.8e
03434000-03437000 rwxp 03434000 00:00 0
03b6d000-03b7e000 r-xp 00000000 16:45 17990969   /lib/libresolv-2.5.so
03b7e000-03b7f000 r-xp 00010000 16:45 17990969   /lib/libresolv-2.5.so
03b7f000-03b80000 rwxp 00011000 16:45 17990969   /lib/libresolv-2.5.so
03b80000-03b82000 rwxp 03b80000 00:00 0
03d2d000-03d2f000 r-xp 00000000 16:45 17991003   /lib/libcom_err.so.2.1
03d2f000-03d30000 rwxp 00001000 16:45 17991003   /lib/libcom_err.so.2.1
03d32000-03d3a000 r-xp 00000000 16:45 17901268
/usr/lib/libkrb5support.so.0.1
03d3a000-03d3b000 rwxp 00007000 16:45 17901268
/usr/lib/libkrb5support.so.0.1
03d3d000-03dd1000 r-xp 00000000 16:45 17901270   /usr/lib/libkrb5.so.3.3
03dd1000-03dd4000 rwxp 00093000 16:45 17901270   /usr/lib/libkrb5.so.3.3
03dd6000-03dfc000 r-xp 00000000 16:45 17901269   /usr/lib/libk5crypto.so.3.1
03dfc000-03dfd000 rwxp 00025000 16:45 17901269   /usr/lib/libk5crypto.so.3.1
03dff000-03e2c000 r-xp 00000000 16:45 17901271
/usr/lib/libgssapi_krb5.so.2.2
03e2c000-03e2d000 rwxp 0002d000 16:45 17901271
/usr/lib/libgssapi_krb5.so.2.2
08048000-0804a000 r-xp 00000000 16:45 2992103
/home/zvivered/workspace/test_libssh/Main.out
0804a000-0804b000 rw-p 00001000 16:45 2992103
/home/zvivered/workspace/test_libssh/Main.out
09d0a000-09d2b000 rw-p 09d0a000 00:00 0          [heap]
b7e00000-b7e21000 rw-p b7e00000 00:00 0
b7e21000-b7f00000 ---p b7e21000 00:00 0
b7fb9000-b7fbe000 rw-p b7fb9000 00:00 0
b7fd4000-b7fd6000 rw-p b7fd4000 00:00 0
bf800000-bf815000 rw-p bffe9000 00:00 0          [stack]
Aborted

What am I doing wrong ?

Thanks,
Zvika

References:
linking a code withZvi Vered <veredz72@xxxxxxxxx>
Archive administrator: postmaster@lists.cynapses.org