Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.
Thread: Samba for Iphoneis a discussion within the
Native iPhone / iPod Touch App Launchesforums, a part of the
3rd Party Apps For iPhone | iPod Touchsection;
Yes you need to disable checks while compiling...
03-20-2009, 09:45 AM #21
Yes you need to disable checks while compiling
03-20-2009, 09:12 PM #22
# CPPFLAGS="-I/private/var/stash/gcc.mK2oIa/arm-apple-darwin9/4.2.1/include" ./configure --disable-largefile SAMBA VERSION: 3.3.2 ... checking how to run the C preprocessor... /lib/cpp configure: error: in `/var/samba-3.3.2/source': configure: error: C preprocessor "/lib/cpp" fails sanity check See `config.log' for more details.
In file included from /usr/lib/gcc/arm-apple-darwin9/4.2.1/include/syslimits.h:7, from /usr/lib/gcc/arm-apple-darwin9/4.2.1/include/limits.h:11, from conftest.c:10: /usr/lib/gcc/arm-apple-darwin9/4.2.1/include/limits.h:122:61: error: limits.h: No such file or directory
With all the parts and knowledge, I'd set up a cross-compilation environment on my machine. Any relevant HOWTOs?Move along, nothing to see here.
03-21-2009, 01:40 PM #23
Make sure you have the 'iPhone 2.0 Toolchain' installed
03-22-2009, 12:18 PM #24
Yep, first thing it tried to link it rebooted:
Linking shared library bin/libnetapi.dylib.0
OK, this completed successfully:
# make debug2html
OK, these worked:
libtalloc debug2html libsmbclient smbfilter talloctort replacetort smbconftort modules
Only libnetapi caused a crash.
This one gave an error:
# make torture ... Compiling lib/readline.c lib/readline.c: In function 'smb_readline': lib/readline.c:141: error: 'rl_completion_func_t' undeclared (first use in this function) lib/readline.c:141: error: (Each undeclared identifier is reported only once lib/readline.c:141: error: for each function it appears in.) lib/readline.c:141: error: expected expression before ')' token lib/readline.c: In function 'cmd_history': lib/readline.c:191: warning: assignment makes pointer from integer without a cast The following command failed: gcc -I. -I/var/samba-3.3.2/source -O -O -D_SAMBA_BUILD_=3 -fno-common -I/var/samba-3.3.2/source/popt -I/var/samba-3.3.2/source/iniparser/src -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns -I./librpc -I./popt -I/include -I/var/samba-3.3.2/source/lib -D_SAMBA_BUILD_=3 -fPIE -c lib/readline.c -o lib/readline.o make: *** [lib/readline.o] Error 1
OK, got around that error by commenting out lines 1, 2, 3, and 5 in
#ifdef HAVE_NEW_LIBREADLINE # define RL_COMPLETION_CAST (rl_completion_func_t *) #else /* This type is missing from libreadline<4.0 (approximately) */ # define RL_COMPLETION_CAST #endif /* HAVE_NEW_LIBREADLINE */
Compiling lib/readline.c lib/readline.c:45:1: warning: "RL_COMPLETION_CAST" redefined In file included from include/includes.h:109, from lib/readline.c:21: ./lib/replace/system/readline.h:46:1: warning: this is the location of the previous definition lib/readline.c: In function 'cmd_history': lib/readline.c:191: warning: assignment makes pointer from integer without a cast Linking bin/vfstest
OK, it's compiling 3.2.0 now. I'll see how that goes.
Last edited by eben; 03-22-2009 at 12:18 PM. Reason: Automerged DoublepostMove along, nothing to see here.
03-23-2009, 11:19 PM #25
works for me
03-24-2009, 01:14 PM #26
What works? Samba?Move along, nothing to see here.
06-25-2009, 11:44 PM #27
Anyone eager to try this on 3.0?
07-02-2009, 05:34 PM #28
07-04-2009, 10:52 AM #29