Re: Compiling ext2fs.static with pthreads

2012-08-15 Thread Thomas DiModica
>How I got around this was to apply Thomas Schwinge's fix_have_kernel_resources >branch to libpthread. Basically, the first thread structure allocated is not >zeroed out, >so have_kernel_resources is some random non-zero number, and thus the thread >neither gets a wakeup port, nor does the kernel_

Re: Compiling ext2fs.static with pthreads

2012-08-15 Thread Thomas DiModica
- Original Message - From: Richard Braun To: Thomas Thomas Cc: bug-hurd@gnu.org Sent: Wednesday, August 15, 2012 3:24 AM Subject: Re: Compiling ext2fs.static with pthreads >On Tue, May 08, 2012 at 07:16:09PM -0700, Thomas Thomas wrote: >> So, it runs as a translator. Spews

Re: Compiling ext2fs.static with pthreads

2012-08-15 Thread Richard Braun
On Wed, Aug 15, 2012 at 11:24:20AM +0200, Richard Braun wrote: > What prevents _hurdsig_init from being called unconditionally and > earlier ? In the meantime, I merely made sigstate_is_global_rcv check that _hurd_global_sigstate isn't NULL. Now I have a subhurd completely populated by pthreads-en

Re: Compiling ext2fs.static with pthreads

2012-08-15 Thread Richard Braun
On Tue, May 08, 2012 at 07:16:09PM -0700, Thomas Thomas wrote: > So, it runs as a translator. Spews out some unexpected debugging info that > Barry > added, but I can add files, delete files, list directories, etc. I haven't > tested it under > load, however. Thank you for the link on debugging t

Re: Compiling ext2fs.static with pthreads

2012-05-10 Thread Thomas Thomas
Some notes here, now that I've thought some more and done some more: >> I caught the output of make to get the full compile command and added >> ../libpthread/cancel-cond.o into it manually, and saved it as a shell script. >> Barry, or someone, rewrote cancel-cond.c from cthreads into a pthreads

Re: Compiling ext2fs.static with pthreads

2012-05-08 Thread Thomas Schwinge
Hi! On Tue, 8 May 2012 19:16:09 -0700 (PDT), Thomas Thomas wrote: > >On Sun, 6 May 2012 09:25:11 -0700 (PDT), Thomas Thomas > >wrote: > >> I played around and got it to compile, though how I did so is a nasty hack. > > >What kind of? > > I caught the output of make to get the full compile co

Re: Compiling ext2fs.static with pthreads

2012-05-08 Thread Thomas Thomas
> Hi! Howdy. >On Sun, 6 May 2012 09:25:11 -0700 (PDT), Thomas Thomas >wrote: >> I played around and got it to compile, though how I did so is a nasty hack. >What kind of? I caught the output of make to get the full compile command and added ../libpthread/cancel-cond.o into it manually, and

Re: Compiling ext2fs.static with pthreads

2012-05-07 Thread Thomas Schwinge
Hi! On Sun, 6 May 2012 09:25:11 -0700 (PDT), Thomas Thomas wrote: > I played around and got it to compile, though how I did so is a nasty hack. What kind of? > Should ext2fs.static compiled with pthreads be able to run on cthreads Hurd? > It's a statically linked program that should have no ex

Re: Compiling ext2fs.static with pthreads

2012-05-06 Thread Thomas Thomas
I played around and got it to compile, though how I did so is a nasty hack. Should ext2fs.static compiled with pthreads be able to run on cthreads Hurd? It's a statically linked program that should have no external dependencies, so it should run in any environment, right? Thomas D

Compiling ext2fs.static with pthreads

2012-05-03 Thread Thomas Thomas
I've applied Barry's patch, and removed all cthreads references that I can find (in the code that gets compiled). I compiled everything in the source tree, so I clobbered the linker script version of libpthread.a. In attempting to run ext2fs.static, I get an assertion failure in pthread (somewhere)