kolyvan / kxsmb Goto Github PK
View Code? Open in Web Editor NEWKxSMB is objective-c wrapper for libsmbclient (samba.org) lib.
License: BSD 2-Clause "Simplified" License
KxSMB is objective-c wrapper for libsmbclient (samba.org) lib.
License: BSD 2-Clause "Simplified" License
llvm-gcc which is used by the rake to compile Samba has removed from XCoxe 5. So the build script stops with error
checking whether the C compiler works... no
configure: error: in `/Users/abbas/Downloads/kxsmb-master/samba/source3':
configure: error: C compiler cannot create executables
Can it be compiled with Clang?
I want to pause and resume, what should I do? and resume broken transfer,and ideas?
Xcode 11.3
macOS:10.15.1
Console:
...
checking byteswap.h presence... no
checking for byteswap.h... no
checking whether we can compile with attribute((cold))... yes
checking whether we can compile with attribute((const))... yes
checking whether we can compile with attribute((noreturn))... yes
checking whether we can compile with attribute((printf))... yes
checking whether we can compile with attribute((unused))... yes
checking whether we can compile with attribute((used))... yes
checking whether we are big endian... configure: error: in /Users/tom/Documents/OpenSource/kxsmb/samba/source3': configure: error: cannot run test program while cross compiling See
config.log' for more details
rake aborted!
******** Build failed ********
/Users/tom/Documents/OpenSource/kxsmb/Rakefile:42:in system_or_exit' /Users/tom/Documents/OpenSource/kxsmb/Rakefile:216:in
buildArch'
/Users/tom/Documents/OpenSource/kxsmb/Rakefile:260:in block in <top (required)>' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.2/exe/rake:27:in
<top (required)>'
Tasks: TOP => default => build_all => build_smb_i386
(See full trace by running task with --trace)
../lib/util/fault.c:134:13: error: 'system' is unavailable: not available on iOS
result = system(cmdstring);
^
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include/stdlib.h:195:6: note: 'system' has been explicitly marked
unavailable here
int system(const char *) DARWIN_ALIAS_C(system);
^
1 error generated.
The following command failed:
xcrun clang -std=gnu99 -no-cpp-precomp -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include -arch armv7 -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -pipe -Wno-trigraphs -fpascal-strings -Os -fembed-bitcode -g -fno-common -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I. -I/Users/hongweiwang/WorkSpace/kxsmb/samba/source3 -I/Users/hongweiwang/WorkSpace/kxsmb/samba/source3/../lib/popt -I/Users/hongweiwang/WorkSpace/kxsmb/samba/source3/../lib/iniparser/src -Iinclude/autoconf -Iautoconf -Iautoconf/source3 -Iinclude -I./include -I. -I. -I./../lib/replace -I../lib/ccan/.. -I./librpc -I./.. -I./../lib/tdb_compat -I./../lib/talloc -I./../lib/tevent -I../lib/tdb/include -I../lib/ntdb -DHAVE_CONFIG_H -std=gnu99 -no-cpp-precomp -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include -arch armv7 -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -pipe -Wno-trigraphs -fpascal-strings -Os -fembed-bitcode -g -I/Users/hongweiwang/WorkSpace/kxsmb/tmp/include -Iinclude/autoconf -Iautoconf -Iautoconf/source3 -Iinclude -I./include -I. -I. -I./../lib/replace -I../lib/ccan/.. -I./librpc -I./.. -I./../lib/tdb_compat -I./../lib/popt -I/usr/local/include -I/Users/hongweiwang/WorkSpace/kxsmb/samba/source3/lib -I.. -I./../lib/ldb/include -D_SAMBA_BUILD=3 -D_SAMBA_BUILD=3 -c ../lib/util/fault.c -o ../lib/util/fault.o
make: *** [../lib/util/fault.o] Error 1
rake aborted!
******** Build failed ********
/Users/hongweiwang/WorkSpace/kxsmb/Rakefile:42:in system_or_exit' /Users/hongweiwang/WorkSpace/kxsmb/Rakefile:219:in
block in buildArch'
/Users/hongweiwang/WorkSpace/kxsmb/Rakefile:218:in each' /Users/hongweiwang/WorkSpace/kxsmb/Rakefile:218:in
buildArch'
/Users/hongweiwang/WorkSpace/kxsmb/Rakefile:243:in block in <top (required)>' /Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:240:in
block in execute'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:235:in each' /Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:235:in
execute'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:179:in block in invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/monitor.rb:214:in
mon_synchronize'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:172:in invoke_with_call_chain' /Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:201:in
block in invoke_prerequisites'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:199:in each' /Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:199:in
invoke_prerequisites'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:178:in block in invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/monitor.rb:214:in
mon_synchronize'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:172:in invoke_with_call_chain' /Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:201:in
block in invoke_prerequisites'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:199:in each' /Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:199:in
invoke_prerequisites'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:178:in block in invoke_with_call_chain' /System/Library/Frameworks/Ruby.framework/Versions/2.3/usr/lib/ruby/2.3.0/monitor.rb:214:in
mon_synchronize'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:172:in invoke_with_call_chain' /Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/task.rb:165:in
invoke'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:150:in invoke_task' /Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:106:in
block (2 levels) in top_level'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:106:in each' /Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:106:in
block in top_level'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:115:in run_with_threads' /Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:100:in
top_level'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:78:in block in run' /Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:176:in
standard_exception_handling'
/Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/lib/rake/application.rb:75:in run' /Library/Ruby/Gems/2.3.0/gems/rake-10.4.2/bin/rake:33:in
<top (required)>'
/usr/bin/rake:22:in load' /usr/bin/rake:22:in
It is impossible to delete folders (empty or not)
The example implementation is not working with folders, and even when i try to call the KxSMBProvider's method removeFolder, it simply does not works. Contained non folder items will be deleted, but folders will still exist.
The method createFileAtPath:(NSString *) path overwrite:(BOOL)overwrite overwrites even if overwrite is set to NO.
This can be fixed by replacing smbc_getFunctionCreat with smbc_getFunctionOpen in the underlying createFile method (line 1675 in the .m).
Is anyone know how to build these these static libraries for 64-bit??
thanks
I could compile your test project with xcode 7.2.
But i got an Mach o error . library not found for -ltdb, when i import the library to my own project
I added:
Any suggestions
Thank you
when i rake it
No such file or directory @ rb_sysopen - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk/usr/include/crt_externs.h
~/smb_111/kxsmb/Rakefile:52:in copyIfNotExists' ~/smb_111/kxsmb/Rakefile:235:in
checkExtInclude'
~/smb_111/kxsmb/Rakefile:242:in `block in <top (required)>'
Tasks: TOP => default => build_all => build_smb_armv7
I do not konw how to resove this issue
I got this: ./autogen.sh: need autoconf 2.53 or later to build samba from GIT. Here is the full log. Help!
** Invoke default (first_time)
** Invoke build_all (first_time)
** Invoke retrieve_samba (first_time)
** Execute retrieve_samba
"retrieving samba from http://ftp.samba.org/pub/samba/stable/samba-4.0.13.tar.gz"
Executing /usr/bin/curl -Ls --output samba-4.0.13.tar.gz http://ftp.samba.org/pub/samba/stable/samba-4.0.13.tar.gz
"extracting samba from archive"
Executing tar -zxf samba-4.0.13.tar.gz
** Invoke build_smb_armv7 (first_time)
** Execute build_smb_armv7
"copy /Applications/Xcode_502.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator7.0.sdk/usr/include/crt_externs.h -> /Users/user1/kxsmb/tmp/include"
"--prefix=/private --disable-shared --enable-static --without-readline --with-libsmbclient --without-libnetapi --without-libsmbsharemodes --without-cluster-support --without-ldap --disable-swat --disable-cups --disable-iprint libreplace_cv_HAVE_C99_VSNPRINTF=yes samba_cv_CC_NEGATIVE_ENUM_VALUES=yes ac_cv_header_libunwind_h=no ac_cv_header_execinfo_h=no ac_cv_header_rpcsvc_ypclnt_h=no ac_cv_file__proc_sys_kernel_core_pattern=no ac_cv_func_fdatasync=no libreplace_cv_HAVE_GETADDRINFO=no samba_cv_SYSCONF_SC_NPROCESSORS_ONLN=no samba_cv_big_endian=no samba_cv_little_endian=yes --host=arm-apple-darwin"
Executing cd samba/source3; ./autogen.sh
./autogen.sh: need autoconf 2.53 or later to build samba from GIT
rake aborted!
******** Build failed ********
/Users/user1/kxsmb/Rakefile:42:in system_or_exit' /Users/user1/kxsmb/Rakefile:206:in
buildArch'
/Users/user1/kxsmb/Rakefile:234:in block in <top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:228:in
call'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:228:in block in execute' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:223:in
each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:223:in execute' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:166:in
block in invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb:211:in mon_synchronize' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:159:in
invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:187:in block in invoke_prerequisites' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:185:in
each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:185:in invoke_prerequisites' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:165:in
block in invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb:211:in mon_synchronize' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:159:in
invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:187:in block in invoke_prerequisites' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:185:in
each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:185:in invoke_prerequisites' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:165:in
block in invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb:211:in mon_synchronize' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:159:in
invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:152:in invoke' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:143:in
invoke_task'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:101:in block (2 levels) in top_level' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:101:in
each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:101:in block in top_level' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:110:in
run_with_threads'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:95:in top_level' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:73:in
block in run'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:160:in standard_exception_handling' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:70:in
run'
/usr/bin/rake:37:in `
Did you try to build samba
for tvOS.
I've tried to modify your Rakefile
, but there are too many dependencies which prohibited in tvOS, such as fork()
, system()
and other functions.
Do you have any suggestion how to avoid this dependencies?
Here is the modified build script:
https://gist.github.com/bartl-git/3260a03432420360d5da
Hi,
I have been trying for quite some time to download the libs folder which contains talloc_stack.h, talloc.h, libsmbclient.h, libsmbclient.a, libtalloc.a, libtdb.a, libwbclient.a, libtevent.a files.But I am not able to download it.Whenever I am doing "RAKE" from within the kxsmb folder in the terminal I get the following errror:
Executing tar -zxf samba-4.0.7.tar.gz
rake aborted!
No such file or directory - /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/usr/include/crt_externs.h
/Users/rahul/Downloads/kxsmb-master/Rakefile:52:in `copyIfNotExists'
(See full trace by running task with --trace)
Could anyone let me know as how can I download it and from where can I download it.
Moreover, can I use this library for for sending image to the windows shared folder from the ios application?
"retrieving samba from http://ftp.samba.org/pub/samba/samba-4.0.6.tar.gz"
Executing /usr/bin/curl -Ls --output samba-4.0.6.tar.gz http://ftp.samba.org/pub/samba/samba-4.0.6.tar.gz
"extracting samba from archive"
Executing tar -zxf samba-4.0.6.tar.gz
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
rake aborted!
******** Build failed ********
/Users/ikentop/OpenKit/github/kxsmb/Rakefile:42:in system_or_exit' /Users/ikentop/OpenKit/github/kxsmb/Rakefile:287 /Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:246:in
call'
/Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:246:in execute' /Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:241:in
each'
/Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:241:in execute' /Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:184:in
invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:177:in invoke_with_call_chain' /Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:205:in
invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:203:in each' /Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:203:in
invoke_prerequisites'
/Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:183:in invoke_with_call_chain' /Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:177:in
invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:205:in invoke_prerequisites' /Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:203:in
each'
/Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:203:in invoke_prerequisites' /Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:183:in
invoke_with_call_chain'
/Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:177:in invoke_with_call_chain' /Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:170:in
invoke'
/Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:143:in invoke_task' /Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:101:in
top_level'
/Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:101:in each' /Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:101:in
top_level'
/Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:110:in run_with_threads' /Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:95:in
top_level'
/Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:73:in run' /Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:160:in
standard_exception_handling'
/Library/Ruby/Gems/1.8/gems/rake-10.0.4/lib/rake/application.rb:70:in `run'
Tasks: TOP => default => build_all => retrieve_samba
(See full trace by running task with --trace)
this my error log,when I rake ,it showing this !!!!!!!!!!
I have tried to download a files. It working fine. I can able to browse files and download it from windows and linux but it failed to download the files from Mac.
I have create application it work fine with some devices which i have but in some other devices it will connect with only windows machine when i will try to connect it with mac it failed when smbc_getFunctionOpendir called same code run fine with simulator and some other device
Using libraries:
LIBS = -lresolv -liconv -lpthread
DNSSD_LIBS =
AUTH_LIBS =
checking configure summary... configure: WARNING: cannot run when cross-compiling
configure: creating ./config.status
config.status: creating Makefile
config.status: creating script/findsmb
config.status: creating smbadduser
config.status: creating script/installbin.sh
config.status: creating script/uninstallbin.sh
config.status: creating lib/netapi/examples/Makefile
config.status: creating lib/netapi/tests/Makefile
config.status: creating pkgconfig/smbclient.pc
config.status: creating pkgconfig/wbclient.pc
config.status: creating pkgconfig/netapi.pc
config.status: creating pkgconfig/smbsharemodes.pc
config.status: creating ../examples/libsmbclient/Makefile.internal
config.status: creating include/autoconf/config.h
config.status: executing rm-stdint.h commands
config.status: executing rm-stdbool.h commands
config.status: executing default-1 commands
Executing cd samba/source3; make libsmbclient
mkdir bin
/bin/sh: -c: line 0: syntax error near unexpected token (' /bin/sh: -c: line 0:
if test -n ""; then echo "Checking libsmb/libsmb_cache.c with ''"; -std=gnu99 -no-cpp-precomp -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include -arch armv7 -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -pipe -Wno-trigraphs -fpascal-strings -Os -fembed-bitcode -g -fno-common -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -I. -I/Users/admin/Desktop/iJKPlayer(RTSP、HTTP、SMB)/kxsmb/samba/source3 -I/Users/admin/Desktop/iJKPlayer(RTSP、HTTP、SMB)/kxsmb/samba/source3/../lib/popt -I/Users/admin/Desktop/iJKPlayer(RTSP、HTTP、SMB)/kxsmb/samba/source3/../lib/iniparser/src -Iinclude/autoconf -Iautoconf -Iautoconf/source3 -Iinclude -I./include -I. -I. -I./../lib/replace -I../lib/ccan/.. -I./librpc -I./.. -I./../lib/tdb_compat -I./../lib/talloc -I./../lib/tevent -I../lib/tdb/include -I../lib/ntdb -DHAVE_CONFIG_H -std=gnu99 -no-cpp-precomp -miphoneos-version-min=8.0 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk -I/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/usr/include -arch armv7 -mcpu=cortex-a8 -mfpu=neon -ftree-vectorize -pipe -Wno-trigraphs -fpascal-strings -Os -fembed-bitcode -g -I/Users/admin/Desktop/iJKPlayer(RTSP、HTTP、SMB)/kxsmb/tmp/include -Iinclude/autoconf -Iautoconf -Iautoconf/source3 -Iinclude -I./include -I. -I. -I./../lib/replace -I../lib/ccan/.. -I./librpc -I./.. -I./../lib/tdb_compat -I./../lib/popt -I/Users/admin/Desktop/iJKPlayer(RTSP、HTTP、SMB)/kxsmb/samba/source3/lib -I.. -I./../lib/ldb/include -D_SAMBA_BUILD_=3 -D_SAMBA_BUILD_=3 -c libsmb/libsmb_cache.c -o libsmb/libsmb_cache.o; fi'
make: *** [libsmb/libsmb_cache.o] Error 2
rake aborted!
******** Build failed ********
/Users/admin/Desktop/iJKPlayer(RTSP、HTTP、SMB)/kxsmb/Rakefile:42:in system_or_exit' /Users/admin/Desktop/iJKPlayer(RTSP、HTTP、SMB)/kxsmb/Rakefile:219:in
block in buildArch'
/Users/admin/Desktop/iJKPlayer(RTSP、HTTP、SMB)/kxsmb/Rakefile:218:in each' /Users/admin/Desktop/iJKPlayer(RTSP、HTTP、SMB)/kxsmb/Rakefile:218:in
buildArch'
/Users/admin/Desktop/iJKPlayer(RTSP、HTTP、SMB)/kxsmb/Rakefile:243:in block in <top (required)>' /Library/Ruby/Gems/2.6.0/gems/rake-12.3.2/exe/rake:27:in
<top (required)>'
Tasks: TOP => default => build_all => build_smb_armv7
(See full trace by running task with --trace)
I got this message when testing the sample app:
params.c:OpenConfFile() - Unable to open configuration file "/private/var/mobile/Applications/DBD979FA-F7BE-4093-AE83-18734E3709AC/.smb/smb.conf":
No such file or directory
params.c:OpenConfFile() - Unable to open configuration file "/private/etc/smb.conf":
No such file or directory
And this:
tdb(/private/var/cache/gencache.tdb): tdb_open_ex: could not open file /private/var/cache/gencache.tdb: No such file or directory
I found the smb.conf in Samba folder. But I can't write to /private/var/mobile/Applications/DBD979FA-F7BE-4093-AE83-18734E3709AC/
Any suggestions?
If i use samba client in ios , app store wont reject the app due to GPL license of samba or is there any trick to submit it app store ? ? @kolyvan @alex-v1981
Hi,
Whenever I am doing "RAKE" from within the kxsmb folder in the terminal I get the following errror:
checking whether we are big endian... configure: error: in `/Users/deyi/Downloads/kxsmb/samba/source3':
configure: error: cannot run test program while cross compiling
See `config.log' for more details
rake aborted!
******** Build failed ********
/Users/deyi/Downloads/kxsmb/Rakefile:42:in `system_or_exit'
/Users/deyi/Downloads/kxsmb/Rakefile:216:in `buildArch'
/Users/deyi/Downloads/kxsmb/Rakefile:260:in `block in <top (required)>'
Tasks: TOP => default => build_all => build_smb_i386
(See full trace by running task with --trace)
If file size is more then 5 GB, it display as negative numbers ( eg : -12658323 )
I'm trying build this sample on simulator (6.1), but have some errors:
Undefined symbols for architecture i386:
"__tevent_add_fd", referenced from:
_reinit_after_fork in libsmbclient.a(util.o)
_sendto_send in libsmbclient.a(async_sock.o)
_wait_for_read_send in libsmbclient.a(async_sock.o)
_recvfrom_send in libsmbclient.a(async_sock.o)
_read_packet_send in libsmbclient.a(async_sock.o)
_writev_trigger in libsmbclient.a(async_sock.o)
_writev_send in libsmbclient.a(async_sock.o)
...
"__tevent_add_signal", referenced from:
_messaging_tdb_event in libsmbclient.a(messages_local.o)
_messaging_tdb_init in libsmbclient.a(messages_local.o)
"__tevent_add_timer", referenced from:
_event_add_idle in libsmbclient.a(events.o)
_smbd_idle_event_handler in libsmbclient.a(events.o)
"__tevent_create_immediate", referenced from:
_gensec_update_send in libsmbclient.a(gensec.o)
_tstream_cli_np_readv_trans_start in libsmbclient.a(cli_np_tstream.o)
"__tevent_queue_create", referenced from:
_smbXcli_conn_create in libsmbclient.a(smbXcli_base.o)
_nb_packet_server_listener in libsmbclient.a(unexpected.o)
_rpc_transport_tstream_init in libsmbclient.a(rpc_transport_tstream.o)
"__tevent_req_callback_data", referenced from:
_cli_echo_done in libsmbclient.a(clientgen.o)
_smbXcli_negprot_invalid_done in libsmbclient.a(smbXcli_base.o)
_smbXcli_negprot_dispatch_incoming in libsmbclient.a(smbXcli_base.o)
_smbXcli_negprot_smb1_done in libsmbclient.a(smbXcli_base.o)
_smbXcli_negprot_smb2_done in libsmbclient.a(smbXcli_base.o)
_smbXcli_conn_samba_suicide_done in libsmbclient.a(smbXcli_base.o)
_smb1cli_req_writev_done in libsmbclient.a(smbXcli_base.o)
...
"__tevent_req_cancel", referenced from:
_smb1cli_trans_cancel in libsmbclient.a(smb1cli_trans.o)
"__tevent_req_create", referenced from:
_cli_echo_send in libsmbclient.a(clientgen.o)
_smbXcli_conn_samba_suicide_send in libsmbclient.a(smbXcli_base.o)
_smb2cli_req_create in libsmbclient.a(smbXcli_base.o)
_smb1cli_req_create in libsmbclient.a(smbXcli_base.o)
_smbXcli_negprot_send in libsmbclient.a(smbXcli_base.o)
_cli_qpathinfo_basic_send in libsmbclient.a(clirap.o)
_cli_qpathinfo_streams_send in libsmbclient.a(clirap.o)
...
"__tevent_req_data", referenced from:
_cli_echo_done in libsmbclient.a(clientgen.o)
_smb2cli_req_set_credit_charge in libsmbclient.a(smbXcli_base.o)
_smb2cli_req_set_notify_async in libsmbclient.a(smbXcli_base.o)
_smb1cli_req_wct_ofs in libsmbclient.a(smbXcli_base.o)
_smb1cli_req_set_seqnum in libsmbclient.a(smbXcli_base.o)
_smb1cli_req_seqnum in libsmbclient.a(smbXcli_base.o)
_smb1cli_req_set_mid in libsmbclient.a(smbXcli_base.o)
...
"__tevent_req_done", referenced from:
_cli_echo_done in libsmbclient.a(clientgen.o)
_smb2cli_conn_dispatch_incoming in libsmbclient.a(smbXcli_base.o)
_smb1cli_conn_dispatch_incoming in libsmbclient.a(smbXcli_base.o)
_smbXcli_negprot_smb1_done in libsmbclient.a(smbXcli_base.o)
_smbXcli_negprot_smb2_done in libsmbclient.a(smbXcli_base.o)
_smbXcli_conn_samba_suicide_done in libsmbclient.a(smbXcli_base.o)
_smb1cli_req_writev_done in libsmbclient.a(smbXcli_base.o)
...
"__tevent_req_error", referenced from:
__tevent_req_nterror in libsmbclient.a(tevent_ntstatus.o)
_tevent_req_simple_finish_ntstatus in libsmbclient.a(tevent_ntstatus.o)
_getaddrinfo_done in libsmbclient.a(util_sock.o)
_read_smb_done in libsmbclient.a(read_smb.o)
_recvfrom_handler in libsmbclient.a(async_sock.o)
_sendto_handler in libsmbclient.a(async_sock.o)
_read_packet_handler in libsmbclient.a(async_sock.o)
...
"__tevent_req_nomem", referenced from:
_smb2cli_conn_dispatch_incoming in libsmbclient.a(smbXcli_base.o)
_smb1cli_conn_dispatch_incoming in libsmbclient.a(smbXcli_base.o)
_smbXcli_negprot_smb1_done in libsmbclient.a(smbXcli_base.o)
_smbXcli_negprot_smb2_done in libsmbclient.a(smbXcli_base.o)
_smbXcli_conn_samba_suicide_send in libsmbclient.a(smbXcli_base.o)
_smbXcli_negprot_send in libsmbclient.a(smbXcli_base.o)
_cli_qpathinfo_basic_send in libsmbclient.a(clirap.o)
...
"__tevent_req_notify_callback", referenced from:
_smb2cli_conn_dispatch_incoming in libsmbclient.a(smbXcli_base.o)
"__tevent_req_oom", referenced from:
_cli_sesssetup_blob_done in libsmbclient.a(cliconnect.o)
_query_wins_list_done in libsmbclient.a(namequery.o)
_resolve_wins_send in libsmbclient.a(namequery.o)
_name_queries_next in libsmbclient.a(namequery.o)
_name_resolve_bcast_send in libsmbclient.a(namequery.o)
_fncall_send in libsmbclient.a(fncall.o)
_smb2cli_tcon_send in libsmbclient.a(smb2cli_tcon.o)
...
"__tevent_schedule_immediate", referenced from:
_gensec_update_send in libsmbclient.a(gensec.o)
_tstream_cli_np_readv_trans_done in libsmbclient.a(cli_np_tstream.o)
_tstream_cli_np_readv_error in libsmbclient.a(cli_np_tstream.o)
"_tevent_common_add_fd", referenced from:
_s3_event_ops in libsmbclient.a(events.o)
"_tevent_common_add_signal", referenced from:
_s3_event_ops in libsmbclient.a(events.o)
"_tevent_common_add_timer", referenced from:
_s3_event_ops in libsmbclient.a(events.o)
"_tevent_common_check_signal", referenced from:
_run_events_poll in libsmbclient.a(events.o)
"_tevent_common_fd_get_flags", referenced from:
_s3_event_ops in libsmbclient.a(events.o)
"_tevent_common_fd_set_close_fn", referenced from:
_s3_event_ops in libsmbclient.a(events.o)
"_tevent_common_fd_set_flags", referenced from:
_s3_event_ops in libsmbclient.a(events.o)
"_tevent_common_loop_immediate", referenced from:
_run_events_poll in libsmbclient.a(events.o)
"_tevent_common_loop_timer_delay", referenced from:
_run_events_poll in libsmbclient.a(events.o)
"_tevent_common_loop_wait", referenced from:
_s3_event_ops in libsmbclient.a(events.o)
"_tevent_common_schedule_immediate", referenced from:
_s3_event_ops in libsmbclient.a(events.o)
"_tevent_context_init", referenced from:
_cli_smb in libsmbclient.a(clientgen.o)
_smbXcli_conn_samba_suicide in libsmbclient.a(smbXcli_base.o)
_smbXcli_negprot in libsmbclient.a(smbXcli_base.o)
_cli_notify in libsmbclient.a(clifile.o)
_cli_setpathinfo in libsmbclient.a(clifile.o)
_cli_tdis in libsmbclient.a(cliconnect.o)
_cli_ulogoff in libsmbclient.a(cliconnect.o)
...
(maybe you meant: _s3_tevent_context_init)
"_tevent_context_init_byname", referenced from:
_s3_tevent_context_init in libsmbclient.a(events.o)
"_tevent_debug", referenced from:
_s3_event_loop_once in libsmbclient.a(events.o)
"_tevent_fd_get_flags", referenced from:
_run_events_poll in libsmbclient.a(events.o)
_writev_handler in libsmbclient.a(async_sock.o)
_tstream_bsd_set_writeable_handler in libsmbclient.a(tsocket_bsd.o)
_tstream_bsd_fde_handler in libsmbclient.a(tsocket_bsd.o)
_tstream_bsd_set_readable_handler in libsmbclient.a(tsocket_bsd.o)
_tdgram_bsd_set_writeable_handler in libsmbclient.a(tsocket_bsd.o)
_tdgram_bsd_fde_handler in libsmbclient.a(tsocket_bsd.o)
...
"_tevent_fd_set_flags", referenced from:
_run_events_poll in libsmbclient.a(events.o)
_writev_handler in libsmbclient.a(async_sock.o)
_tstream_bsd_set_writeable_handler in libsmbclient.a(tsocket_bsd.o)
_tstream_bsd_fde_handler in libsmbclient.a(tsocket_bsd.o)
_tstream_bsd_set_readable_handler in libsmbclient.a(tsocket_bsd.o)
_tdgram_bsd_set_writeable_handler in libsmbclient.a(tsocket_bsd.o)
_tdgram_bsd_fde_handler in libsmbclient.a(tsocket_bsd.o)
...
"_tevent_queue_add", referenced from:
_writev_send in libsmbclient.a(async_sock.o)
"_tevent_queue_add_optimize_empty", referenced from:
_tdgram_sendto_queue_send in libsmbclient.a(tsocket_helpers.o)
_tstream_writev_queue_send in libsmbclient.a(tsocket_helpers.o)
_tstream_readv_pdu_queue_send in libsmbclient.a(tsocket_helpers.o)
"_tevent_queue_length", referenced from:
_smbXcli_conn_has_async_calls in libsmbclient.a(smbXcli_base.o)
_nb_packet_client_send_done in libsmbclient.a(unexpected.o)
_nb_packet_dispatch in libsmbclient.a(unexpected.o)
_rpc_tstream_trans_send in libsmbclient.a(rpc_transport_tstream.o)
"_tevent_queue_stop", referenced from:
_smbXcli_conn_disconnect in libsmbclient.a(smbXcli_base.o)
"_tevent_re_initialise", referenced from:
_reinit_after_fork in libsmbclient.a(util.o)
"_tevent_register_backend", referenced from:
_s3_tevent_context_init in libsmbclient.a(events.o)
"_tevent_req_default_print", referenced from:
_cli_pull_print in libsmbclient.a(clireadwrite.o)
"_tevent_req_defer_callback", referenced from:
_smb2cli_conn_dispatch_incoming in libsmbclient.a(smbXcli_base.o)
_smb1cli_conn_dispatch_incoming in libsmbclient.a(smbXcli_base.o)
_smbXcli_conn_disconnect in libsmbclient.a(smbXcli_base.o)
"_tevent_req_is_error", referenced from:
_tevent_req_is_nterror in libsmbclient.a(tevent_ntstatus.o)
_tevent_req_is_unix_error in libsmbclient.a(tevent_unix.o)
_tsocket_simple_int_recv in libsmbclient.a(tsocket.o)
"_tevent_req_is_in_progress", referenced from:
_smb1cli_req_chain_submit in libsmbclient.a(smbXcli_base.o)
_smb1cli_req_send in libsmbclient.a(smbXcli_base.o)
_smb2cli_req_compound_submit in libsmbclient.a(smbXcli_base.o)
_smb2cli_req_send in libsmbclient.a(smbXcli_base.o)
_cli_pull_read_done in libsmbclient.a(clireadwrite.o)
_tstream_bsd_readv_send in libsmbclient.a(tsocket_bsd.o)
_tstream_bsd_writev_send in libsmbclient.a(tsocket_bsd.o)
...
"_tevent_req_poll", referenced from:
_cli_echo in libsmbclient.a(clientgen.o)
_smbXcli_conn_samba_suicide in libsmbclient.a(smbXcli_base.o)
_smbXcli_negprot in libsmbclient.a(smbXcli_base.o)
_tevent_req_poll_ntstatus in libsmbclient.a(tevent_ntstatus.o)
_cli_dskattr in libsmbclient.a(clifile.o)
_cli_ftruncate in libsmbclient.a(clifile.o)
_cli_nt_delete_on_close in libsmbclient.a(clifile.o)
...
(maybe you meant: _tevent_req_poll_ntstatus)
"_tevent_req_post", referenced from:
_smbXcli_conn_samba_suicide_send in libsmbclient.a(smbXcli_base.o)
_smb1cli_req_send in libsmbclient.a(smbXcli_base.o)
_smb2cli_req_send in libsmbclient.a(smbXcli_base.o)
_smbXcli_negprot_send in libsmbclient.a(smbXcli_base.o)
_cli_qpathinfo_basic_send in libsmbclient.a(clirap.o)
_cli_qpathinfo_streams_send in libsmbclient.a(clirap.o)
_cli_qpathinfo2_send in libsmbclient.a(clirap.o)
...
"_tevent_req_received", referenced from:
_rpccli_bh_raw_call_recv in libsmbclient.a(cli_pipe.o)
_rpccli_bh_disconnect_recv in libsmbclient.a(cli_pipe.o)
_dcerpc_srvsvc_NetServerSetServiceBitsEx_recv in libsmbclient.a(ndr_srvsvc_c.o)
_dcerpc_srvsvc_NetServerSetServiceBitsEx_r_recv in libsmbclient.a(ndr_srvsvc_c.o)
_dcerpc_srvsvc_NetServerTransportAddEx_recv in libsmbclient.a(ndr_srvsvc_c.o)
_dcerpc_srvsvc_NetServerTransportAddEx_r_recv in libsmbclient.a(ndr_srvsvc_c.o)
_dcerpc_srvsvc_NetSetFileSecurity_recv in libsmbclient.a(ndr_srvsvc_c.o)
...
"_tevent_req_set_callback", referenced from:
_cli_echo_send in libsmbclient.a(clientgen.o)
_smbXcli_negprot_dispatch_incoming in libsmbclient.a(smbXcli_base.o)
_smbXcli_negprot_smb2_done in libsmbclient.a(smbXcli_base.o)
_smbXcli_conn_samba_suicide_send in libsmbclient.a(smbXcli_base.o)
_smb1cli_req_writev_submit in libsmbclient.a(smbXcli_base.o)
_smbXcli_req_cancel in libsmbclient.a(smbXcli_base.o)
_smbXcli_conn_receive_next in libsmbclient.a(smbXcli_base.o)
...
"_tevent_req_set_cancel_fn", referenced from:
_smb1cli_req_writev_submit in libsmbclient.a(smbXcli_base.o)
_smbXcli_req_set_pending in libsmbclient.a(smbXcli_base.o)
_smb1cli_trans_send in libsmbclient.a(smb1cli_trans.o)
"_tevent_req_set_endtime", referenced from:
_smb2cli_req_create in libsmbclient.a(smbXcli_base.o)
_smb1cli_req_create in libsmbclient.a(smbXcli_base.o)
_query_wins_list_done in libsmbclient.a(namequery.o)
_resolve_wins_send in libsmbclient.a(namequery.o)
_name_queries_next in libsmbclient.a(namequery.o)
_name_resolve_bcast_send in libsmbclient.a(namequery.o)
_name_query in libsmbclient.a(namequery.o)
...
"_tevent_req_set_print_fn", referenced from:
_cli_pull_send in libsmbclient.a(clireadwrite.o)
"_tevent_set_debug", referenced from:
_s3_tevent_context_init in libsmbclient.a(events.o)
"_tevent_set_default_backend", referenced from:
_s3_tevent_context_init in libsmbclient.a(events.o)
"_tevent_timeval_is_zero", referenced from:
_run_events_poll in libsmbclient.a(events.o)
"_tevent_timeval_set", referenced from:
_smbsock_any_connect_trynext in libsmbclient.a(smbsock_connect.o)
"_tevent_trace_point_callback", referenced from:
_s3_event_loop_once in libsmbclient.a(events.o)
"_tevent_wakeup_recv", referenced from:
_name_queries_next in libsmbclient.a(namequery.o)
_nb_trans_send_next in libsmbclient.a(namequery.o)
_open_socket_out_defer_waited in libsmbclient.a(util_sock.o)
_smbsock_connect_do_139 in libsmbclient.a(smbsock_connect.o)
_smbsock_any_connect_trynext in libsmbclient.a(smbsock_connect.o)
"_tevent_wakeup_send", referenced from:
_name_queries_next in libsmbclient.a(namequery.o)
_name_resolve_bcast_send in libsmbclient.a(namequery.o)
_nb_trans_sent in libsmbclient.a(namequery.o)
_open_socket_out_defer_send in libsmbclient.a(util_sock.o)
_smbsock_connect_send in libsmbclient.a(smbsock_connect.o)
_smbsock_any_connect_send in libsmbclient.a(smbsock_connect.o)
_smbsock_any_connect_trynext in libsmbclient.a(smbsock_connect.o)
...
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Showing first 200 notices only
Sorry bit of a noob, so i don't know how to commit a change.
For the rake to work with Xcode 6.1, you need to amend this line in the rake file:
SDK_VERSION= '8.0'
to
SDK_VERSION='8.1'
rake command failed with message C compiler cannot create executables
i'm trying to resume a download. i don't understand how to use the method seekToFileOffset:
Can you please give some sample?
Hello,
Tried sample example on iOS device.. on first try getting error: "no talloc stackframe at libsmb/cliconnect.c:2637, leaking memory"
Any pointer on this helps... thank you.
Thanks for sharing library/code...
Requesting one help/pointer for getting "NetBIOS" name from given IP Address...
Is thier any way to get fetch these details - any pointer on this would be great help. Thank You
i want to copy multiple files from smb server, But when i loop the
[provider copySMBPath:@"" localPath:@"" overwrite:YES block:^(id result) { } some the files fails to copy giving error like ... Error Domain=error.SMB Code=0 "SMB Error" UserInfo=0x7f8429dd0930 {NSLocalizedDescription=SMB Error, NSLocalizedFailureReason=Unable get stat:smb://192.168.0.1/wifishare/AutoTest Scripts/VIP_ActiveLine.spcv (errno:60)}
but the same file if downloaded individually works fine.
Anyone manage to use it with swift? i added bridging header but am getting linker errors. linker command failed with exit code 1
Undefined symbols for architecture x86_64:
"_deflate", referenced from:
_ndr_push_compression_end in libsmbclient.a(ndr_compression.o)
"_deflateInit2_", referenced from:
_ndr_push_compression_end in libsmbclient.a(ndr_compression.o)
"_deflateReset", referenced from:
_ndr_push_compression_end in libsmbclient.a(ndr_compression.o)
"_deflateSetDictionary", referenced from:
_ndr_push_compression_end in libsmbclient.a(ndr_compression.o)
"_iconv", referenced from:
_sys_iconv in libsmbclient.a(iconv.o)
_iconvert_talloc in libsmbclient.a(reg_parse_internal.o)
(maybe you meant: _iconvert_talloc, _smb_iconv_handle_reinit_lp , _lpcfg_iconv_handle , _set_iconv , _get_iconv_handle , _smb_iconv_open , _smb_iconv_open_ex , _smb_iconv , _smb_iconv_close , _smb_iconv_handle_reinit , _global_iconv_handle , _get_iconv_testing_handle )
"_iconv_close", referenced from:
_smb_iconv_t_destructor in libsmbclient.a(iconv.o)
_set_iconv in libsmbclient.a(reg_parse_internal.o)
(maybe you meant: _smb_iconv_close)
"_iconv_open", referenced from:
_smb_iconv_open_ex in libsmbclient.a(iconv.o)
_set_iconv in libsmbclient.a(reg_parse_internal.o)
(maybe you meant: _smb_iconv_open, _smb_iconv_open_ex )
"_inflate", referenced from:
_ndr_pull_compression_start in libsmbclient.a(ndr_compression.o)
"_inflateInit2_", referenced from:
_ndr_pull_compression_start in libsmbclient.a(ndr_compression.o)
"_inflateReset", referenced from:
_ndr_pull_compression_start in libsmbclient.a(ndr_compression.o)
"_inflateSetDictionary", referenced from:
_ndr_pull_compression_start in libsmbclient.a(ndr_compression.o)
"_res_9_dn_expand", referenced from:
_ads_dns_lookup_srv in libsmbclient.a(dnsquery.o)
_ads_dns_parse_query in libsmbclient.a(dnsquery.o)
_ads_dns_parse_rr in libsmbclient.a(dnsquery.o)
_ads_dns_lookup_ns in libsmbclient.a(dnsquery.o)
"_res_9_query", referenced from:
_dns_send_req in libsmbclient.a(dnsquery.o)
"_zError", referenced from:
_ndr_pull_compression_start in libsmbclient.a(ndr_compression.o)
_ndr_push_compression_end in libsmbclient.a(ndr_compression.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
@implementation KxSMBItemFile {
(void) close
{
if (_impl) {
KxSMBFileImpl *p = _impl;
_impl = nil;
KxSMBProvider *provider = [KxSMBProvider sharedSmbProvider];
[provider dispatchAsync:^{ [p closeFile]; }];
}
}
...
Excuse me, can you explain here, why has an async call to close it? May crash in some case.
Although a license is specified in individual source files, it might be nice if a LICENSE file was provided in the root of the repo so that people could quickly check to see the terms of use.
When I'm not connected to the internet and try to send a file via
[provider fetchAtPath:completePath block:^(id result) {
...
}];
I get Bad talloc magic value - unknown value
.
XOS 10.10.1
Marvins-MacBook-Air:kxsmb-master bsetsu$ rake --trace
** Invoke default (first_time)
** Invoke build_all (first_time)
** Invoke retrieve_samba (first_time)
** Execute retrieve_samba
** Invoke build_smb_armv7 (first_time)
** Execute build_smb_armv7
"--prefix=/private --disable-shared --enable-static --without-readline --with-libsmbclient --without-libnetapi --without-libsmbsharemodes --without-cluster-support --without-ldap --disable-swat --disable-cups --disable-iprint libreplace_cv_HAVE_C99_VSNPRINTF=yes samba_cv_CC_NEGATIVE_ENUM_VALUES=yes ac_cv_header_libunwind_h=no ac_cv_header_execinfo_h=no ac_cv_header_rpcsvc_ypclnt_h=no ac_cv_file__proc_sys_kernel_core_pattern=no ac_cv_func_fdatasync=no libreplace_cv_HAVE_GETADDRINFO=no samba_cv_SYSCONF_SC_NPROCESSORS_ONLN=no samba_cv_big_endian=no samba_cv_little_endian=yes --host=arm-apple-darwin"
Executing cd samba/source3; ./autogen.sh
./autogen.sh: running script/mkversion.sh
./script/mkversion.sh: 'include/autoconf/version.h' created for Samba("4.0.21")
./autogen.sh: running autoheader -Im4 -I../m4 -I../lib/replace
autom4te: need GNU m4 1.4 or later: /usr/bin/m4
autoheader: '/usr/local/Cellar/autoconf/2.69/bin/autom4te' failed with exit status: 1
ERROR running autoheader
rake aborted!
******** Build failed ********
/Users/bsetsu/Downloads/kxsmb-master/Rakefile:42:in system_or_exit' /Users/bsetsu/Downloads/kxsmb-master/Rakefile:217:in
buildArch'
/Users/bsetsu/Downloads/kxsmb-master/Rakefile:245:in block in <top (required)>' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:228:in
call'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:228:in block in execute' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:223:in
each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:223:in execute' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:166:in
block in invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb:211:in mon_synchronize' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:159:in
invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:187:in block in invoke_prerequisites' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:185:in
each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:185:in invoke_prerequisites' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:165:in
block in invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb:211:in mon_synchronize' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:159:in
invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:187:in block in invoke_prerequisites' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:185:in
each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:185:in invoke_prerequisites' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:165:in
block in invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/monitor.rb:211:in mon_synchronize' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:159:in
invoke_with_call_chain'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/task.rb:152:in invoke' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:143:in
invoke_task'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:101:in block (2 levels) in top_level' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:101:in
each'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:101:in block in top_level' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:110:in
run_with_threads'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:95:in top_level' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:73:in
block in run'
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:160:in standard_exception_handling' /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rake/application.rb:70:in
run'
/usr/bin/rake:37:in `
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.