hello.
on SunOS 5.8, with a fresh compiled ghc (configure
-prefix=/home/xxx/local && make)
and the some for the precompiled version.
the simple programm crash (see test.hs).
gdb says > gdb ./test
This GDB was configured as "sparc-sun-solaris2.8"...
(gdb) run
Starting program: /home/xxx/test
Program received signal SIGILL, Illegal instruction.
0x1f16dc in getgrnam_r ()
(gdb)
-- test.hs
import Posix
main :: IO ()
main = do
user <- Posix.getEffectiveUserName
print user
----
thx in advance
klaus
Logged In: YES
user_id=880987
A fix for Solaris has been committed for this, defining
_POSIX_PTHREAD_SEMANTICS to get the proper getgrnam_r.
It is untested as yet.
See this thread:
http://www.haskell.org/pipermail/glasgow-haskell-bugs/2003-September/003601.html
At the time it was also noted that getgrnam_r functions did
not work on FreeBSD and OpenBSD as well, although for
different reasons. This hasn't been resolved yet.
-- Don
Logged In: YES
user_id=126328
Fixed in 6.2+.
Tested on SunOS 5.9 & FreeBSD 5