Sign up here and you can log into the forum!

PPTP VPN client

Here is the place to inquire about app.bins--Only currently available apps for sigma 8655 based wdtv's belong in this forum. requests go in 'Application Questions'

Re: PPTP VPN client   

Postby spazlon » Mon Dec 05, 2011 10:46 am

Here is the result of those commands:

Code: Select all
# ls -l /apps/                                                                                                                                                                             
drwxr-xr-x    1 www-data www-data        60 Dec 31  1969 devtools                                                                                                                         
drwxr-xr-x    6 root     root          4096 Oct 14  2010 pptp                                                                                                                             
# ldd /apps/pptp/bin/pppd                                                                                                                                                                 
        libutil.so.1 => /lib/libutil.so.1 (0x2aad8000)                                                                                                                                     
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x2aaec000)                                                                                                                                   
        libpam.so.0 => /usr/lib/libpam.so.0 (0x2ab30000)                                                                                                                                   
        libdl.so.2 => /lib/libdl.so.2 (0x2ab4c000)                                                                                                                                         
        libpcap.so.0.8 => not found                                                                                                                                                       
        libc.so.6 => /lib/libc.so.6 (0x2ab60000)                                                                                                                                           
        /lib/ld.so.1 (0x2aaa8000)                                                                                                                                                         
# ls -l /apps/devtools/lib/libcap.so*                                                                                                                                                     
ls: /apps/devtools/lib/libcap.so*: No such file or directory       


this is the ls of /apps/devtools/lib/

Code: Select all
# ls /apps/devtools/lib/                                                                                                                                             
libparted.so                libsvn_client-1.so.0        libsvn_fs-1.so.0            libsvn_ra-1.so.0            libsvn_ra_serf-1.so.0       libsvn_subr-1.so.0       
libparted.so.0              libsvn_client-1.so.0.0.0    libsvn_fs-1.so.0.0.0        libsvn_ra-1.so.0.0.0        libsvn_ra_serf-1.so.0.0.0   libsvn_subr-1.so.0.0.0   
libparted.so.0.0.1          libsvn_delta-1.so           libsvn_fs_fs-1.so           libsvn_ra_local-1.so        libsvn_ra_svn-1.so          libsvn_wc-1.so           
libpcap.so.0.8              libsvn_delta-1.so.0         libsvn_fs_fs-1.so.0         libsvn_ra_local-1.so.0      libsvn_ra_svn-1.so.0        libsvn_wc-1.so.0         
libpcap.so.0.9.8            libsvn_delta-1.so.0.0.0     libsvn_fs_fs-1.so.0.0.0     libsvn_ra_local-1.so.0.0.0  libsvn_ra_svn-1.so.0.0.0    libsvn_wc-1.so.0.0.0     
libserf-0.so                libsvn_diff-1.so            libsvn_fs_util-1.so         libsvn_ra_neon-1.so         libsvn_repos-1.so                                     
libserf-0.so.0              libsvn_diff-1.so.0          libsvn_fs_util-1.so.0       libsvn_ra_neon-1.so.0       libsvn_repos-1.so.0                                   
libserf-0.so.0.0.0          libsvn_diff-1.so.0.0.0      libsvn_fs_util-1.so.0.0.0   libsvn_ra_neon-1.so.0.0.0   libsvn_repos-1.so.0.0.0                               
libsvn_client-1.so          libsvn_fs-1.so              libsvn_ra-1.so              libsvn_ra_serf-1.so         libsvn_subr-1.so                                     
WDLXTV Live+ 1.05.04_.0.5.1.1 SVN on external USB
spazlon
WDTVer
 
Posts: 45
Joined: Sat Jan 29, 2011 11:39 am
Location: Mangaf, Kuwait

Re: PPTP VPN client   

Postby mad_ady » Mon Dec 05, 2011 11:45 am

Intriguing... I see the libpcap.so.0.8 which should be a symlink to libpcap.so.0.9.8 in your listing, so everything should be ok, but it seems the library is not registered with the system.
First run this command, just to make sure other binaries pick up libpcap:
Code: Select all
ldd /apps/devtools/bin/tcpdump
tcpdump -c 1 -n -i eth0

Then, try to run a
Code: Select all
ldconfig -n /apps/devtools/lib
ldd /apps/pptp/bin/pppd
User avatar
mad_ady
Developer
 
Posts: 2996
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: PPTP VPN client   

Postby spazlon » Mon Dec 05, 2011 12:02 pm

Here is the output:

Code: Select all
# ldd /apps/devtools/bin/tcpdump                                                                                                                   
$       not a dynamic executable                                                                                                                   
# tcpdump -c 1 -n -i eth0                                                                                                                         
# ldconfig -n /apps/devtools/lib                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libparted.so.                                                                                       
                                                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libparted.so.0.                                                                                     
                                                                                                                                                   
ldconfig: /apps/devtools/lib/libparted.so.0.0.1 is not an ELF file - it has the wrong magic bytes at the start.                                   
                                                                                                                                                   
ldconfig:

ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_fs-1.so.                                                                                     
                                                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_fs-1.so.0.                                                                                   
                                                                                                                                                   
ldconfig: /apps/devtools/lib/libsvn_fs-1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.                                 
                                                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_fs_fs-1.so.                                                                                   
                                                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_fs_fs-1.so.0.                                                                                 
                                                                                                                                                   
ldconfig: /apps/devtools/lib/libsvn_fs_fs-1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.                               
                                                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_fs_util-1.so.                                                                                 
                                                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_fs_util-1.so.0.                                                                               
                                                                                                                                                   
ldconfig: /apps/devtools/lib/libsvn_fs_util-1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.                             
                                                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_ra-1.so.                                                                                     
                                                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_ra-1.so.0.                                                                                   
                                                                                                                                                   
ldconfig: /apps/devtools/lib/libsvn_ra-1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.                                 
                                                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_ra_local-1.so.                                                                               
                                                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_ra_local-1.so.0.                                                                             
                                                                                                                                                   
ldconfig: /apps/devtools/lib/libsvn_ra_local-1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.                           
                                                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_ra_neon-1.so.                                                                                 
                                                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_ra_neon-1.so.0.                                                                               
                                                                                                                                                   
ldconfig: /apps/devtools/lib/libsvn_ra_neon-1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.                             
                                                                                                                                                   
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_ra_serf-1.so.                                                                                 
                                                                                                                                                                                             
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_ra_serf-1.so.0.                                                                             
                                                                                                                                                                                             
ldconfig: /apps/devtools/lib/libsvn_ra_serf-1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.                                                                       
                                                                                                                                                                                             
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_ra_svn-1.so.                                                                                                                           
                                                                                                                                                                                             
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_ra_svn-1.so.0.                                                                                                                         
                                                                                                                                                                                             
ldconfig: /apps/devtools/lib/libsvn_ra_svn-1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.                                                                       
                                                                                                                                                                                             
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_repos-1.so.                                                                                                                             
                                                                                                                                                                                             
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_repos-1.so.0.                                                                                                                           
                                                                                                                                                                                             
ldconfig: /apps/devtools/lib/libsvn_repos-1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.                                                                         
                                                                                                                                                                                             
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_subr-1.so.                                                                                                                             
                                                                                                                                                                                             
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_subr-1.so.0.                                                                                                                           
                                                                                                                                                                                             
ldconfig: /apps/devtools/lib/libsvn_subr-1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.                                                                         
                                                                                                                                                                                             
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_wc-1.so.                                                                                                                               
                                                                                                                                                                                             
ldconfig: Cannot mmap file /apps/devtools/lib/libsvn_wc-1.so.0.                                                                                                                             
                                                                                                                                                                                             
ldconfig: /apps/devtools/lib/libsvn_wc-1.so.0.0.0 is not an ELF file - it has the wrong magic bytes at the start.                                                                           
                                                                                                                                                                                             
# ldd /apps/pptp/bin/pppd                                                                                                                                                                   
        libutil.so.1 => /lib/libutil.so.1 (0x2aad8000)                                                                                                                                       
        libcrypt.so.1 => /lib/libcrypt.so.1 (0x2aaec000)                                                                                                                                     
        libpam.so.0 => /usr/lib/libpam.so.0 (0x2ab30000)                                                                                                                                     
        libdl.so.2 => /lib/libdl.so.2 (0x2ab4c000)                                                                                                                                           
        libpcap.so.0.8 => not found                                                                                                                                                         
        libc.so.6 => /lib/libc.so.6 (0x2ab60000)                                                                                                                                             
        /lib/ld.so.1 (0x2aaa8000)                                                                                                                                                           
#                                                                                                                                 


Also, I don't know if it makes a difference but I am using the "bleeding edge" SVN using this tutorial: http://forum.wdlxtv.com/viewtopic.php?f=43&t=228&hilit=bleeding+edge
WDLXTV Live+ 1.05.04_.0.5.1.1 SVN on external USB
spazlon
WDTVer
 
Posts: 45
Joined: Sat Jan 29, 2011 11:39 am
Location: Mangaf, Kuwait

Re: PPTP VPN client   

Postby hursey013 » Mon Dec 05, 2011 12:06 pm

Not sure if it helps or not, but im running WDTV Live with 1.05.04 and 0.5.1.1 and installed the pptp app and devtools and I do not receive the error - it may be specific to your setup?
hursey013
WDTVer
 
Posts: 22
Joined: Tue Nov 08, 2011 9:27 pm

Re: PPTP VPN client   

Postby spazlon » Mon Dec 05, 2011 12:16 pm

hursey013 wrote:Not sure if it helps or not, but im running WDTV Live with 1.05.04 and 0.5.1.1 and installed the pptp app and devtools and I do not receive the error - it may be specific to your setup?


How did you install? Did you install from the SVN and did you install to a USB drive?
WDLXTV Live+ 1.05.04_.0.5.1.1 SVN on external USB
spazlon
WDTVer
 
Posts: 45
Joined: Sat Jan 29, 2011 11:39 am
Location: Mangaf, Kuwait

Re: PPTP VPN client   

Postby hursey013 » Mon Dec 05, 2011 12:29 pm

I downloaded the firmware from this thread - http://forum.wdlxtv.com/viewtopic.php?f=38&t=5010&start=350 - post is about halfway down, throw it on a flash drive and flashed my wd live. Downloaded pptp app.bin from its respective thread, and installed devtools through WEC.
Last edited by hursey013 on Tue Dec 06, 2011 7:11 am, edited 1 time in total.
hursey013
WDTVer
 
Posts: 22
Joined: Tue Nov 08, 2011 9:27 pm

Re: PPTP VPN client   

Postby spazlon » Mon Dec 05, 2011 12:37 pm

Got it, downloading it now. Thanks!
WDLXTV Live+ 1.05.04_.0.5.1.1 SVN on external USB
spazlon
WDTVer
 
Posts: 45
Joined: Sat Jan 29, 2011 11:39 am
Location: Mangaf, Kuwait

Re: PPTP VPN client   

Postby mad_ady » Mon Dec 05, 2011 11:44 pm

I didn't know tcpdump was compiled statically. Interesting.
@spazion: let us know if it starts working
User avatar
mad_ady
Developer
 
Posts: 2996
Joined: Fri Nov 05, 2010 9:08 am
Location: Bucharest, Romania

Re: PPTP VPN client   

Postby spazlon » Tue Dec 06, 2011 1:40 pm

So I just booted from the internal drive using 1.03.49_B.WDLXTV_PLUS-0.4.7.3 and it worked.

Then I downloaded 1.05.04_B.EXT3-BOOT_PLUS-0.5.1.1, threw it on the ext3 USB, rebooted, put pptp on the drive, rebooted, installed devtools, rebooted again. Same error:

Code: Select all
Starting pptp

config saved val:key => (PLUGIN_WEBDIRS,webirc|/apps/webirc/cgiirc,mt-daapd|/usr/share/mt-daapd,umsp|/usr/share/umsp,nzbgetweb|/usr/share/nzbgetweb,rtorrent|/usr/share/rutorrent)
config saved val:key => (PLUGIN_WEBDIRS,webirc|/apps/webirc/cgiirc,mt-daapd|/usr/share/mt-daapd,umsp|/usr/share/umsp,nzbgetweb|/usr/share/nzbgetweb,rtorrent|/usr/share/rutorrent,pptp|/apps/pptp/usr/share/pptp)
/apps/pptp/bin/pppd: error while loading shared libraries: libpcap.so.0.8: cannot open shared object file: No such file or directory

Done


So its not just a problem with the SVN. It seems to be a problem with 1.05.04 or 0.5.1.1 on an external drive.

What would you expect to be the problem? The firmware (1.05.04) or the other thing, I don't know what it is called (0.5.1.1). Should I downgrade to 1.05.04-0.4.7.3? If so, where can I get it? I can't find this firmware version.
WDLXTV Live+ 1.05.04_.0.5.1.1 SVN on external USB
spazlon
WDTVer
 
Posts: 45
Joined: Sat Jan 29, 2011 11:39 am
Location: Mangaf, Kuwait

Re: PPTP VPN client   

Postby recliq » Tue Dec 06, 2011 3:23 pm

Use 0.4.7.3.

This is the reason why 0.5.1.1 is not an official release: there are still some issues.
Post a bug report so we can keep track of this issue.


What does this return?
Code: Select all
ldconfig -p | grep apps


PS: This seems really odd, I just diffed all three versions of crazymount (which is resposible for loading app.bins and taking care of the libs)
and they are all identical. I tried 1.02 and 1.05 on Live and it works normal (latest SVN).
It may be an issue with the image, I haven't tested the plus ext3 image yet.

Maybe you should start by replacing your versio of crazymount with the one from SVN.
­WDLXTV Project Maintainer
-:] If you like my contributions feel free to donate for a beer or a new flash drive. ...and always remember: RTFM! (README, FAQ, WIKI) [:-
User avatar
recliq
WDLXTV Team
 
Posts: 5021
Joined: Thu Apr 15, 2010 8:09 am
Location: Kiel, Germany

PreviousNext

Return to WDLXTV-G2 & WDLXTV-Live/Plus app.bins

Who is online

Users browsing this forum: No registered users and 1 guest