Hamachi binary not works as expected

Marvell Kirkwood based
barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: Hamachi binary not works as expected

Post by barmalej2 » Fri Jan 13, 2017 9:42 pm

Lsb is required only for start script, provided by logmein.
Look at dnsdown and dnsup and you will understand, what is harcoded. Unfortunately you can't look at hamachid source and find out, where it expects these scripts to be. I was asking two times before, about what I need to configure and setup to login to these logmein VPN servers.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Hamachi binary not works as expected

Post by MrDini » Fri Jan 13, 2017 10:29 pm

The original path of the binary is /opt/logmein-hamachi/bin see the deb package. I have already done a test with placing here the binaries (I have entware-ng installed too), but the login also cannot be done.

Sorry, for the late explanation, I misunderstood You first... But I think, if the daemon Can't login to the server without credientals, it will also does the same, if You execute theese too.
Thanks nas-central the lot of help! :)

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Hamachi binary not works as expected

Post by MrDini » Sun Jan 15, 2017 11:01 am

I had no idea, So created a new package from an older source, but nothing changed which is related with the logging in.

I had no more idea, So as a last chance, I looked on the strace output, and I saw, the binary tries to use for example the libpthread from the /lib folder (where I haven't got a pthread library), instead of using the FFp version...

Okay, now, I tried to force using the FFp lib folder, by setting the LD_LIBRARY_PATH variable, but when I try to start the daemon, it says this:

Code: Select all

root@NSA320S:~# LD_LIBRARY_PATH=/ffp/lib hamachid
hamachid: /ffp/lib/libpthread.so.0: no version information available (required by hamachid)
hamachid: /ffp/lib/libc.so.6: no version information available (required by hamachid)
hamachid: /ffp/lib/libc.so.6: no version information available (required by hamachid)
hamachid: /ffp/lib/libc.so.6: no version information available (required by /lib/libdl.so.2)
hamachid: /ffp/lib/libc.so.6: no version information available (required by /lib/libdl.so.2)
hamachid: /ffp/lib/libc.so.6: no version information available (required by /lib/libm.so.6)
Inconsistency detected by ld.so: do-lookup.h: 115: check_match: Assertion `version->filename == ((void *)0) || ! _dl_name_match_p (version->filename, map)' failed!
And don't want to start up... :(
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: Hamachi binary not works as expected

Post by barmalej2 » Sun Jan 15, 2017 12:23 pm

What are you trying to do, makes no sense. Hamachi is not compiled with ffp toolchain. It is clearly compiled with and for glibc and it doesn't uses any of ffp libraries. Instead of them, zyxel firmware libs are used:

Code: Select all

readelf -d ./hamachid | grep NEEDED
0x00000001 (NEEDED) Shared library: [libstdc++.so.6]
0x00000001 (NEEDED) Shared library: [libpthread.so.0]
0x00000001 (NEEDED) Shared library: [libdl.so.2]
0x00000001 (NEEDED) Shared library: [libm.so.6]
0x00000001 (NEEDED) Shared library: [libgcc_s.so.1]
0x00000001 (NEEDED) Shared library: [libc.so.6]
Dynamic linker is also glibc based:

Code: Select all

readelf -l ./hamachid | grep interpreter
[Requesting program interpreter: /lib/ld-linux.so.3]
On ffp linker is:

Code: Select all

ls -la /ffp/lib/ld-uClibc*
lrwxrwxrwx 1 root root 25 May 22 2016 /ffp/lib/ld-uClibc.so -> ld-uClibc-0.9.33.3-git.so
-rwxr-xr-x 1 root root 29K May 22 2016 /ffp/lib/ld-uClibc-0.9.33.3-git.so
lrwxrwxrwx 1 root root 25 May 22 2016 /ffp/lib/ld-uClibc.so.0 -> ld-uClibc-0.9.33.3-git.so

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Hamachi binary not works as expected

Post by MrDini » Sun Jan 15, 2017 12:27 pm

So, that means, We Cannot use this daemon binary on FFp?
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2387
Joined: Sun Apr 29, 2012 5:24 pm

Re: Hamachi binary not works as expected

Post by barmalej2 » Sun Jan 15, 2017 12:29 pm

Interesting way of thinking. You have already run it. What makes you think, that you can't? It just doesn't depends on ffp at all.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: Hamachi binary not works as expected

Post by MrDini » Sun Jan 15, 2017 12:31 pm

:D

I just try to find out, why it Can't login...
Thanks nas-central the lot of help! :)

Post Reply