smbclient mipsel Error writing file: NT_STATUS_INVALID_PARAMETER

Grzegorz Heldt grzegorz.heldt at gmail.com
Thu Jul 30 09:04:45 MDT 2009


Hello !


After some problems I finally get smbclient working for mipsel. Almost :-).

export libreplace_cv_HAVE_GETADDRINFO=no
export samba_cv_CC_NEGATIVE_ENUM_VALUES=true


user at SamRDBestOS:~/samba-3.3.5/source$ CC=mipsel-linux-uclibc-gcc
LD=mipsel-linux-uclibc-ld CFLAGS=-DHAVE_IFACE_IFCONF ./configure
--target=mipsel-uclibc-linux --host=mipsel-uclibc-linux --build=i686
--without-libtalloc --disable-pie --disable-cups --enable-debug
--enable-developer  && make bin/smbclient
.................
Build looks OK.

go to the mipsel console:


# cat /proc/version
Linux version 2.6.24.7_200-uclibc-brcm (root at monster) (gcc version
4.2.0 20070124 (prerelease) - BRCM 9ts-20080702) #6 Thu Mar 19
19:21:05 UTC 2009
# pwd
/mnt/nfs/samba-3.3.5/source/bin
# ./smbclient  \\\\My-pc\\sharedfolder -U user
creating lame upcase table
creating lame lowcase table
tdb(/usr/local/samba/var/locks/gencache.tdb): tdb_oob len 12592 beyond
eof at 12288
tdb(/usr/local/samba/var/locks/gencache.tdb): tdb_free: update_tailer
failed at 12212
Enter user's password:
Domain=[MY-PC] OS=[Windows 7 Ultimate 7100] Server=[Windows 7 Ultimate 6.1]
smb: \> ls
  .                                   D        0  Thu Jul 30 14:01:37 2009
  ..                                  D        0  Thu Jul 30 14:01:37 2009
  blabla.txt                          A        0  Tue Jul 28 10:26:56 2009

                51313 blocks of size 2097152. 51221 blocks available
smb: \> put smbclient
Error writing file: NT_STATUS_INVALID_PARAMETER
putting file smbclient as \smbclient (0.0 kb/s) (average 0.0 kb/s)
smb: \> get /tmp/blabla.txt
NT_STATUS_OBJECT_NAME_INVALID opening remote file \/tmp/blabla.txt
smb: \> get blabla.txt /tmp/bla
getting file \blabla.txt of size 0 as /tmp/bla (0.0 kb/s) (average 0.0 kb/s)
smb: \> put smbclient
Error writing file: NT_STATUS_INVALID_PARAMETER
putting file smbclient as \smbclient (0.0 kb/s) (average 0.0 kb/s)
smb: \>
smb: \> ls
  .                                   D        0  Thu Jul 30 14:46:12 2009
  ..                                  D        0  Thu Jul 30 14:46:12 2009
  blabla.txt                          A        0  Tue Jul 28 10:26:56 2009
  smbclient                           A    65534  Thu Jul 30 14:47:20 2009

                51313 blocks of size 2097152. 51221 blocks available
smb: \>

To get it work i've forced some in build configuration:
1. I've defined CFLAGS=-DHAVE_IFACE_IFCONF before _FOUND_IFACE_ANY
forced to use getifaddrs stub function which results with no
possibility to detect network interfaces.
2. I've exported libreplace_cv_HAVE_GETADDRINFO=no so build system
forced to use internal implementation of this function. Otherwise this
function blocked program execution (it newer returned from this
function).

What actually means "Error writing file: NT_STATUS_INVALID_PARAMETER" ?

If these two steps may have some infuence on "Error writing file:
NT_STATUS_INVALID_PARAMETER issue" ?

If no, could you please give me any advices, what should be my next
steps to get this work on mipsel ?

The same version simply compiled for x86 (./configure&&make) works
with no problems in the same conditions.

Thank you !

Best Regards
Grzegorz Heldt.

-- 
Please consider the environment before printing this email.


More information about the samba-technical mailing list