[uClinux-dev] Problem with OpenSSH_5.2p1

2009-10-28 Thread Christoph Baumann
Hello, working on getting OpenSSH (5.2p1 + OpenSSL 0.9.8k with uClinux patch) to run in a uClinux environment I ran into a problem. The ssh client gets a SIGSEGV when it tries to access environment variables. So I put a wrapper around getenv which checks the extern char **environ pointer. It

Re: [uClinux-dev] Problem with OpenSSH_5.2p1

2009-10-28 Thread Allon Stern
On Oct 28, 2009, at 5:13 AM, Christoph Baumann wrote: To check if the environment is messed up in any case, I wrote a simple program that only dumps the environment variables. This program works fine. So the cause of the problem lies more in the ssh client. Has anybody seen similar problems?

Re: [uClinux-dev] Problem with OpenSSH_5.2p1

2009-10-28 Thread Christoph Baumann
On 28.10.2009 14:39, Allon Stern wrote: What's the stack size of the SSH client? Remember, the uclinux runtime does not have a dynamic stack size. currently it's 32k Run toolchain-prefixflthdr on your target FLAT executable to read the header. flthdr -s lets you change the stack size. Try

Re: [uClinux-dev] Problem with OpenSSH_5.2p1

2009-10-28 Thread Allon Stern
On Oct 28, 2009, at 10:01 AM, Christoph Baumann wrote: On 28.10.2009 14:39, Allon Stern wrote: What's the stack size of the SSH client? Remember, the uclinux runtime does not have a dynamic stack size. currently it's 32k Run toolchain-prefixflthdr on your target FLAT executable to read

Re: [uClinux-dev] Problem with OpenSSH_5.2p1

2009-10-28 Thread Christoph Baumann
On 28.10.2009 15:55, Allon Stern wrote: In any case, I'd recommend doubling the stack until you find a value that works, then back off by powers of two until it doesn't, then back up a couple of steps as a safety margin. Or, depending on how memory-rich you are, you can just leave it with a

[uClinux-dev] m68k g++: reloc outside program

2009-10-28 Thread John B Moore
We currently have a platform which uses an M5233 nommu Coldfire with uClinux using a 2.6.17 kernel with uClibc 0.9.27, bFLT executables and no shared library support. The compiler set we are using is the 4.1.1 compiler set as distributed from the uclinux.org website and it works well for

Re: [uClinux-dev] m68k g++: reloc outside program

2009-10-28 Thread Wolfgang Mües
John, Am Mittwoch, 28. Oktober 2009 21:13:38 schrieb John B Moore: We currently have a platform which uses an M5233 nommu Coldfire with uClinux using a 2.6.17 kernel with uClibc 0.9.27, bFLT executables and no shared library support. The compiler set we are using is the 4.1.1 compiler set as

Re: [uClinux-dev] m68k g++: reloc outside program

2009-10-28 Thread Greg Ungerer
Hi John, John B Moore wrote: We currently have a platform which uses an M5233 nommu Coldfire with uClinux using a 2.6.17 kernel with uClibc 0.9.27, bFLT executables and no shared library support. The compiler set we are using is the 4.1.1 compiler set as distributed from the uclinux.org