Re: [SLUG] compiling Samba

From: Eben King (eben01@verizon.net)
Date: Mon Mar 23 2009 - 15:17:04 EST


On Mon, 23 Mar 2009, Paul Bransford wrote:

> On Mon, 2009-03-23 at 10:53 -0400, Eben King wrote:
>> I'm trying to compile Samba on my iPod Touch. It's Darwin 9.4.1 on ARM.
>> It reboots during the "linking" phase, every time. I've tried 3.3.2 (the
>> latest), 3.2.0, and 3.0.34. The last one (3.0.34) was "Linking bin/smbd"
>> and it immediately rebooted. It did all the compilation before that with
>> no problems, and hardly a warning. I'm guessing it has to do with the
>> iPod's non-i386 definition of int and char sizes, and the samba code making
>> assumptions that don't turn out to be true. Any clues?

> Any chance you can figure which object files were being linked when it
> blew up?

Possibly. I'm looking through ld(1) to find any relevant options. I see
"-O", so turning off optimization is an idea; I found "--exclude-libs", so
once I identify the bad lib I can exclude it; I can try "-static", but that
may make it too memory-hungry; but I don't see anything having to do with
verbosity. Heck, it might not be ld that's crashing. ld(1) refers to ar(1),
nm(1), objcopy(1), objdump(1), and readelf(1). Gotta write English tonight,
so C++ will have to wait until tomorrow.

-- 
-eben                                      QebWenE01R@vTerYizUonI.nOetP
1101000 1110100 1110100 1110000 0111010 0101111 0101111 1110010 1101111
1111001 1100001 1101100 1110100 1111001 0101110 1101101 1101001 1101110
1100101 0101110 1101110 1110101 0111010 0111000 0110001 0101111
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS).  Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 19:15:23 EDT