+ Reply
Page 2 of 2 FirstFirst 12
Results 21 to 29 of 29

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: Samba for Iphone

is a discussion within the

Native iPhone / iPod Touch App Launches

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
Yes you need to disable checks while compiling
...
  1. #21
    iPhone? More like MyPhone
    Join Date
    Jul 2008
    Posts
    101
    Thanks
    7
    Thanked 64 Times in 48 Posts

    Yes you need to disable checks while compiling

  2. The Following User Says Thank You to drivesoslow For This Useful Post:

    FaceBooger (06-26-2009)

  3. #22
    What's Jailbreak?
    Join Date
    Mar 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by drivesoslow View Post
    Yes you need to disable checks while compiling
    Thanks, did that. I'm stuck here now:

    Code:
    # 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.
    config.log says, in part:

    Code:
    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
    which is really infuriating because it was reading limits.h when it complained that limits.h didn't exist!

    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.

  4. #23
    iPhone? More like MyPhone
    Join Date
    Jul 2008
    Posts
    101
    Thanks
    7
    Thanked 64 Times in 48 Posts

    Make sure you have the 'iPhone 2.0 Toolchain' installed

  5. The Following User Says Thank You to drivesoslow For This Useful Post:

    FaceBooger (06-26-2009)

  6. #24
    What's Jailbreak?
    Join Date
    Mar 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Quote Originally Posted by drivesoslow View Post
    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:

    Code:
    # make debug2html
    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.
    Last edited by eben; 03-22-2009 at 11:18 AM. Reason: Automerged Doublepost
    Move along, nothing to see here.

  7. #25
    Retired Moderator StealthBravo's Avatar
    Join Date
    Jan 2008
    Location
    TX  Follow me @StealthBravo
    Posts
    32,478
    Thanks
    44
    Thanked 5,328 Times in 3,113 Posts

    works for me

  8. #26
    What's Jailbreak?
    Join Date
    Mar 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    What works? Samba?
    Move along, nothing to see here.

  9. #27
    iPhoneaholic
    Join Date
    Dec 2008
    Posts
    385
    Thanks
    64
    Thanked 27 Times in 20 Posts

    Anyone eager to try this on 3.0?

  10. #28
    What's Jailbreak?
    Join Date
    May 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    For your guys' information, samba works perfectly well on iPhone 3.0


    (one happy camper)

    Samba for iPhone | iPhone News, Help and Guides

  11. #29
    iPhoneaholic
    Join Date
    Dec 2008
    Posts
    477
    Thanks
    4
    Thanked 49 Times in 37 Posts

    Quote Originally Posted by redomin8 View Post
    For your guys' information, samba works perfectly well on iPhone 3.0


    (one happy camper)

    Samba for iPhone | iPhone News, Help and Guides
    Can anyone confirm this?? Developer says he needs to port it still

+ Reply
Page 2 of 2 FirstFirst 12
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts