Page 1 of 2 12 LastLast
Results 1 to 15 of 22

Thread: NFSv3

  1. #1

    NFSv3

    Just compiled NFSv3. It's taken from unfs3-0.9.10 and it's the same nfs daemon as our brothers in arms run on the Linksys NSLU2 (aka Allnet6100).

    When I run it I get this error:

    # ./unfsd
    ./unfsd: error while loading shared libraries: ./unfsd: symbol xdr_u_long, versi
    on GLIBC_2.0 not defined in file libc.so.6 with link time reference
    #

    I guess I need to build a more up to date 'libc.so'

    Any advise on how to build that thingy?

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,353
    Quote Originally Posted by JOCKYW2001
    Just compiled NFSv3. It's taken from unfs3-0.9.10 and it's the same nfs daemon as our brothers in arms run on the Linksys NSLU2 (aka Allnet6100).

    When I run it I get this error:

    # ./unfsd
    ./unfsd: error while loading shared libraries: ./unfsd: symbol xdr_u_long, versi
    on GLIBC_2.0 not defined in file libc.so.6 with link time reference
    #

    I guess I need to build a more up to date 'libc.so'

    Any advise on how to build that thingy?
    Link statically.

  3. #3
    Quote Originally Posted by Oleg
    Link statically.
    Okay, you mean to link statically with the libc.so.6 which sits in /opt/.../mipsel-linux/lib ? By adding a "-lc.so.6" linkparameter?

  4. #4
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,353
    Just add this option to link flags
    Code:
    -static

  5. #5
    Cool Thanks!

    Yeah, it looks much better now if I run it I get:
    Cannot register service: RPC: Unable to receive; errno = Connection refused
    unable to register (NFS3_PROGRAM, NFS_V3, udp).

    That's because portmap isn't running which I will now also compile -static

    update: Yes!! portmap and unfsd are running

    Why are these dynamic link errors at runtime happening? Is the libc.so.6 in the firmware crippled?
    Last edited by JOCKYW2001; 07-10-2004 at 19:34.

  6. #6
    Okay, I'm almost there, but need some help to mount a NFS share.

    My exports is stored on the HDD in /tmp/harddisk/part1/conf/etc and has only one line:
    /tmp/harddisk/part1/Movies 192.168.1.91 (rw )

    The portmapper and nfs daemon are stored in/tmp/harddisk/part1/conf/bin
    I do this to start them:
    cd /tmp/harddisk/part1/conf/bin/
    ./portmap
    ./unfsd -e /tmp/harddisk/part1/conf/etc/exports

    Then on my satbox I try to mount as follows:
    /var # mount -t nfs -o soft,udp,rsize=32768,wsize=8192,nolock 192.168.1.220:/tmp/harddisk/part1/Movies /var/movies
    mount: 192.168.1.220:/tmp/harddisk/part1/Movies failed, reason given by server: Permission denied
    mount: nfsmount failed: Bad file descriptor
    mount: Mounting 192.168.1.220:/tmp/harddisk/part1/Movies on /var/movies failed: Invalid argument

    Anyone ideas why the WL-HDD refuses this mount?

  7. #7
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,353
    Quote Originally Posted by JOCKYW2001
    update: Yes!! portmap and unfsd are running

    Why are these dynamic link errors at runtime happening? Is the libc.so.6 in the firmware crippled?
    You mean, that you've launched it with -p switch? There is no portmap, -p just instructs to not use portmap.

    Yes, libraries are relinked with only functions needed to minimize it's size.

  8. #8
    Quote Originally Posted by Oleg
    You mean, that you've launched it with -p switch? There is no portmap, -p just instructs to not use portmap.

    Yes, libraries are relinked with only functions needed to minimize it's size.
    Yes, tried first -p and it ran. Then I compiled portmap with -static and all is well except for the mount problem (see my prev post)

  9. #9
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,353
    Quote Originally Posted by JOCKYW2001
    Yes, tried first -p and it ran. Then I compiled portmap with -static and all is well except for the mount problem (see my prev post)
    Where you got portmap?

    try (rw,no_root_squash) and check your IP address. Also, you may want try running it in debug mode.

  10. #10

    Thumbs up

    Quote Originally Posted by Oleg
    Where you got portmap?

    try (rw,no_root_squash) and check your IP address. Also, you may want try running it in debug mode.
    portmap: http://ftp.surfnet.nl/security/tcpwr...rtmap_4.tar.gz
    to compile it this helps: http://www.tomsnetworking.com/Sectio...le86-page3.php

    YES!!! with no_root_squash I've got a mount.

    Oleg, let's drink a wodka together to celebrate!

  11. #11
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,353
    Ok, the stock one (I just have a thought, that you've found an other one). It's also possible to use it without portmap, but buggy FC2 mount does not allow that now...

  12. #12
    Join Date
    Sep 2004
    Posts
    123
    hi,
    I also like to celebrate :-)...please up your customized firmware somewhere for us..with al little help how to mount ;-)

    I can't wait any longer to test it :-)

    cu,
    peter

  13. #13
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,353
    Quote Originally Posted by JOCKYW2001
    YES!!! with no_root_squash I've got a mount.
    Check it with MS SFU. It's probably should outperform samba...

  14. #14
    I'm a very happy camper Works flawless !!!
    I can record and playback from my satbox w/o any hickups.
    Just tested with Naked Gun 2 1/2

    Will do some performance tests with M$ SFU client now

    PS: petgun: will contact you tomorrow so that you can dl stuff

    Next challenge is to build some automatic start scripts for telnetd, portmap etc.

  15. #15
    Join Date
    Sep 2004
    Posts
    123
    Quote Originally Posted by JOCKYW2001
    I'm a very happy camper Works flawless !!!
    I can record and playback from my satbox w/o any hickups.
    Just tested with Naked Gun 2 1/2

    Will do some performance tests with M$ SFU client now

    PS: petgun: will contact you tomorrow so that you can dl stuff

    Next challenge is to build some automatic start scripts for telnetd, portmap etc.
    :-) oh man, you made my day and it's no problem for me to wait until you finnish! Unbelievable, but true..you got your WL-HDD last week and now all my dreams become true :-) I'm sure, the results of your performance tests will motivate many guys here to give NFS a try and I hope your firmware will be upped here in the downloadcenter so everybody can enjoy it.

    Thank you very much!

    cu,
    peter

Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •