Page 1 of 3

Samba build issue for Android

Posted: 13 Sep 2016, 17:50
by KeyserSoze
I'm trying to get a working build chain but samba is throwing me fits. Something about LIBREPLACE needs type 'long long' during configure. I have the latest SDK/NDK and all the other dependencies seem to build fine. Any ideas?

Re: Samba build issue for Android

Posted: 13 Sep 2016, 17:54
by davilla
cd into target/samba

make distclean
make

copy output and pastebin it so I can see what's going on.

Re: Samba build issue for Android

Posted: 13 Sep 2016, 18:00
by KeyserSoze
Thanks for the help.

http://pastebin.com/v5FE0h5P

Re: Samba build issue for Android

Posted: 13 Sep 2016, 18:12
by davilla
KeyserSoze wrote:Thanks for the help.

http://pastebin.com/v5FE0h5P
First thing, android-21 is min. FireOS is SDK 22 but 21 will be fine, 17 is too old. I see you are actually running 22. This error typically comes from a missing '--with-sdk=android-21' in the depends configure line.

in source, config.log. let me see that.

start of mine for comparison -> http://pastebin.com/bW46sUBc

Re: Samba build issue for Android

Posted: 13 Sep 2016, 18:24
by KeyserSoze
Good catch. I missed the --with-sdk option on my configure. Looks like it defaults to 17? Building all the dependencies again now. Hopefully successfully.

Re: Samba build issue for Android

Posted: 13 Sep 2016, 19:42
by KeyserSoze
Switched everything to 21. Still same thing for samba.

This is where things seem to go wrong.
checking for ANSI C header files... no

Other dependencies do not report this. So something on my end is wrong with my compiler configuration? Not sure at this point but I'm open to suggestions. It's weird that only samba reports this.

Re: Samba build issue for Android

Posted: 13 Sep 2016, 20:34
by davilla
KeyserSoze wrote:Switched everything to 21. Still same thing for samba.

This is where things seem to go wrong.
checking for ANSI C header files... no

Other dependencies do not report this. So something on my end is wrong with my compiler configuration? Not sure at this point but I'm open to suggestions. It's weird that only samba reports this.
pastebin it's config.log, that might tell me more.

Re: Samba build issue for Android

Posted: 13 Sep 2016, 20:40
by davilla
This catches my eye;

mine:
checking for /home/davilla/android/toolchains/android-21/bin/arm-linux-androideabi-gcc option to accept ISO C89... none needed
checking for version of gcc... 4.9

yours:
checking for /home/jason/android-toolchain-arm/android-22/bin/arm-linux-androideabi-gcc option to accept ISO C89... unsupported
checking for version of gcc... 4.9.x

/home/jason/android-toolchain-arm/android-22/bin/arm-linux-androideabi-gcc --version

I would bump back to android-toolchain-arm/android-21 toolchain. Not sure but I think 22 is actually clang and not gcc. Koying has tried 22/23 and there might be changes needed to support it.

Re: Samba build issue for Android

Posted: 13 Sep 2016, 20:47
by KeyserSoze
http://pastebin.com/PNGwADed

error: conflicting types for 'off64_t' <<< looks to be an issue.

I am now using android-21. I am using a newer version of the NDK 12b in this case but that shouldn't matter I don't think. Anyways I tried NDK 11b with the same effect.

Re: Samba build issue for Android

Posted: 13 Sep 2016, 20:47
by davilla