Re: [Haskell-cafe] libffi mystery

2010-10-29 Thread Ketil Malde
Conor McBride writes: > ...seemed like a good plan. I got lots of scary warnings like > (.text+0x51d8): warning: Using 'setprotoent' in statically linked > applications requires at runtime the shared libraries from the glibc > version used for linking I guess the message is pretty self-explanat

Re: [Haskell-cafe] libffi mystery

2010-10-29 Thread Conor McBride
Hi Thanks for the help! I've made some progress, but I'm not there yet. On 28 Oct 2010, at 20:08, Ketil Malde wrote: "Sittampalam, Ganesh" writes: Have you tried passing -optl-static to ghc (which causes -static to be passed to ld)? This was new to me. I gave it a whirl. I got lots of l

Re: [Haskell-cafe] libffi mystery

2010-10-28 Thread Ketil Malde
"Sittampalam, Ganesh" writes: > Have you tried passing -optl-static to ghc (which causes -static to be > passed to ld)? It used to be: -optl-static -optl-pthread But it doesn't seem to work anymore on my install. % ./a.out a.out: ../sysdeps/unix/sysv/linux/getpagesize.c:32: __getpagesize: A

RE: [Haskell-cafe] libffi mystery

2010-10-28 Thread Sittampalam, Ganesh
Conor McBride wrote: > Is there some way I can get some more static linking to happen? > I did poke about online a bit and found some remarks to the effect > that GHC got so much more portable after switching to the dynamic > libffi. That sounds great, but tough luck for me. > > So, being both

[Haskell-cafe] libffi mystery

2010-10-28 Thread Conor McBride
Hi again This is what happens when you write actual for-users for-running programs, I guess. It's been a while... I've been writing some software with Network.CGI etc, which we run on the deparmental web server for my students to use. But we just had a bit of an upgrade on the system, and now (o