[NFS] Extra spaces in address
#1
Hello everyone,

I use Buildroot to build my rootfs including XBMC and I encounter a small problem with XBMC and NFS.
I used XBMC's tag Frodo_rc1 and built it against libnfs version 1.3.
The toolchain used was uClibc 0.99.3

When I try to add manually a source by inputing the IP, I get this :
07:39:26 T:1075544064 WARNING: Create - Unsupported protocol( nfs) in nfs://192.168.42.253/data/torrent
07:40:07 T:1075544064 ERROR: NFS: Failed to mount nfs share: (nfs_service failed)
07:40:07 T:1075544064 ERROR: GetDirectory - Error getting nfs://192.168.42.243/data/torrent
07:40:34 T:1075544064 WARNING: Create - Unsupported protocol( nfs) in nfs://192.168.42.253/
07:41:42 T:1075544064 NOTICE: NFS is idle. Closing the remaining connections.

I'm puzzled by the "Unsupported protocol( nfs)", did I typed the string wrong ?

When going to the "Browse" menu, I choose NFS, and XBMC fails to browse the different share (how does it detect the different NFS server on the network by the way ?)

I can see this in the log :
07:28:57 T:1171875008 ERROR: Unable to lookup host: ''
07:29:00 T:1075015680 ERROR: GetDirectory - Error getting nfs://
07:29:00 T:1075015680 ERROR: CGUIDialogFileBrowser::GetDirectory(nfs://) failed

And when I try to add manually, I enter the IP of the server, I can read that :
07:29:53 T:1075015680 ERROR: Unable to lookup host: ' 192.168.42.253'
07:29:53 T:1075015680 ERROR: GetDirectory - Error getting nfs:// 192.168.42.253/ /data/tv

Notice the extra space before the IP address, it doesn't seem to be a logging error but then I don't know what that could be.

Also, I can perfectly well mount my nfs share via mount.

Thank you very much for your help
Reply
#2
does it load libnfs.so.1 before? It discovers nfs servers by doing a broadcast with a special nfs message (something like that). That unknown protocol suggests that configure didn't pick up the libnfs during build time - but some other printouts wouldn't appear then - so its a bit strange indeed.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#3
There is no trace of loading libnfs.so.1 that's true. but as you said, since some prints lead me to think NFS was supported, I'll look at the build log to see if there was some message that could make libnfs fail without generating an error.
Reply
#4
Yeah read the config.log and see if it found libnfs during build.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply
#5
The configure seems pretty happy :

configure:23980: checking nfsc/libnfs.h usability
configure:23980: /home/maxime/workspace/buildroot/output/host/usr/bin/arm-buildroot-linux-gnueabi-gcc -c -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -mfpu=vfp -mfloat-abi=hard -pipe -Os -Wno-psabi -Wa,-mno-warn-deprecated -Wno-deprecated-declarations -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DNDEBUG=1 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c >&5
configure:23980: $? = 0
configure:23980: result: yes
configure:23980: checking nfsc/libnfs.h presence
configure:23980: /home/maxime/workspace/buildroot/output/host/usr/bin/arm-buildroot-linux-gnueabi-cpp -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 conftest.c
configure:23980: $? = 0
configure:23980: result: yes
configure:23980: checking for nfsc/libnfs.h
configure:23980: result: yes
configure:24011: checking for libnfs soname
configure:24053: result: libnfs.so.1

Also I see :

NFS_SONAME='libnfs.so.1'


Should I see something else ?
Reply
#6
then you should see that it gets loaded in xbmc.log (debugging has to be turned on in system->system).

The unsupported protocol thing suggests that the "HAVE_FILESYSTEM_NFS" is not defined for the pi nevertheless (for the other platforms its defined in xbmc/system.h iirc). That might be all about the problem then.
AppleTV4/iPhone/iPod/iPad: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for Kodi: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
Reply

Logout Mark Read Team Forum Stats Members Help
[NFS] Extra spaces in address0