
Originally Posted by
drivesoslow
Make sure you have the 'iPhone 2.0 Toolchain' installed
Thanks, that was it. For anyone else who wants to try too, you also need gawk. It's compiling now (s l o w l y), so I'll see how it comes out, or whether the iPod reboots during linking as reported.
Yep, first thing it tried to link it rebooted:
Code:
Linking shared library bin/libnetapi.dylib.0
Crap crap crap. I wonder if it's something about that file, or whether linking anything makes it panic(). I think I'll edit the makefile to put that one later and see what happens.
...
OK, this completed successfully:
So I'll go through them one by one to find what crashes and what doesn't.
OK, these worked:
libtalloc debug2html libsmbclient smbfilter talloctort replacetort smbconftort modules
Only libnetapi caused a crash.
This one gave an error:
Code:
# 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
Bah.
OK, got around that error by commenting out lines 1, 2, 3, and 5 in
Code:
#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 */
but now it gives
Code:
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
and reboots.
Double bah.
---
OK, it's compiling 3.2.0 now. I'll see how that goes.