In gmane.comp.lang.haskell.glasgow.user, you wrote:
Is anyone else seeing this on his system?
getUserEntryForName [] = print . userName
wasabi
Fixed in CVS -- I was only able to test this on SunOS where your
example would segfault.
--
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP
In gmane.comp.lang.haskell.glasgow.user, you wrote:
[missing ieee_fp_set_control]
I've been staring at
http://www.freebsd.org/cgi/man.cgi?query=ieee_set_fp_controlapropos=0sektion=0manpath=OSF1+V5.1%2Falphaformat=html
to find out the correct fpset*()-function. fpsetmask() should do
the trick, but
In gmane.comp.lang.haskell.glasgow.user, you wrote:
It shouldn't even build OpenOL, however, because I ran
./configure with --disable-openal.
I see the flag in libraries/config.log, so it has been
passed through alright. But ${SUBDIRS} contains the OpenAL
directory nonetheless afterwards.
In gmane.comp.lang.haskell.glasgow.user, you wrote:
Volker Stolz writes:
Fix attached.
Thank you! Is this patch gonna make it into CVS?
Done. Sven is probably on vacations.
--
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
* Christian Maeder [EMAIL PROTECTED]:
I used gcc_2.95.3 until I discovered the warning:
LdvProfile.c:43: #error Please use gcc 3.0+ to compile this file with
DEBUG; gcc 3.0 miscompiles it
This usually happens if you use build.mk.sample. Simply remove the
-DDEBUG from the options (unless
In gmane.comp.lang.haskell.glasgow.bugs, you wrote:
Simon M is away today and Monday, but I do recall him saying something
about the Solaris port being broken. I'm sure he would welcome help
getting it fixed. Are there any of you who build GHC from source, and
know Solaris?
I'm currently
* Li, Peng [EMAIL PROTECTED]:
In GHC, how can I allocate a chunk of memory aligned to some block
size (say, 512 or 1024 bytes)? I tried to specify it in the
alignment method in the Storable typeclass, but that does not seem
to work. Is Storable.alignment really used in GHC? If so, is there a
* Simon Marlow [EMAIL PROTECTED]:
This bit of Makefile code is possibly going wrong for you:
-include $(shell echo $(ProjectDirectory) | tr A-Z a-z)/mk/config.mk
-include $(shell echo $(ProjectDirectory) | tr A-Z a-z)/mk/version.mk
Try this instead:
$ make Project=Ghc
* Christian Maeder [EMAIL PROTECTED]:
I also had to adapt again the call of ctime_r in ghc/rts/RtsUtils.c
#if HAVE_CTIME_R
- ctime_r(now, nowstr, 26);
+ ctime_r(now, nowstr);
#else
26 is supposed to be the size of the buffer nowstr. Maybe 27 is also
fine? According to the man
Am 20. Apr 2006 um 11:19 CEST schrieb Christian Maeder:
Volker Stolz wrote:
Without the 3rd arg is according to POSIX (check your Solaris man page).
'buf' is required to be at least 26 bytes.
You're right, but it does not compile without the 3rd argument! Maybe
this is due to gcc_4.0.3_s10
* Christian Maeder [EMAIL PROTECTED]:
P.S. the non-termination of the final stage2 compiler still needs
further investigation (that I cannot do alone)
How about throwing 'truss' at it? Maybe this reveals a blatant reason.
Volker
--
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP ***
* Rich Fought [EMAIL PROTECTED]:
I've got some unit test code that forks off test processes using the
'system' function and then delays using 'threadDelay' to synchronize
with the test process.
This has worked fine until I upgraded to 6.4.2, now some of the
'threadDelay' calls never
to prevent this (by command-line option)? (Anyways, dying
because of *that* in a function called *threadWait...* sounds a little bit...
unwise?)
Thanks in advance,
Volker
--
Volker Stolz * [EMAIL PROTECTED] * PGP
to learn diffing/patching)
--
Volker Stolz * [EMAIL PROTECTED] * PGP
*** Posix.lhs Fri Mar 17 12:32:19 2000
--- Posix.lhs Fri Mar 17 12:10:50 2000
***
*** 16,21
runProcess,
- mayGetEnvVar,
-
ByteCount,
Fd, intToFd,
--- 16,19
***
*** 48,53
Should getEnvVar just be overloaded in Posix.lhs or should the whole thing
(System PosixProcPrim) be changed?
--
Volker Stolz * [EMAIL PROTECTED] * PGP
installed.
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
. Works on my box (4.1-STABLE), anyway.
Thank you, now it works.
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
I didn't succeed in getting (or catching?) this exception through an
obvious example. Is this exception thrown at all or just NYI?
Is this exception thrown at all or just NYI?
Volker
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow
for preventing the main thread from exiting.
Could this be the reason I don't get the exception?
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell
Will Select.hSelect block all running Haskell threads? I assume it does. However,
the small explanation at the bottom of the documentation seems too convoluted to
me to convey it's meaning. How about adding "Remember that this will *block* *all*
*your* *threads*" to it?
--
Volker Stol
the right thing to use?
--
\usepackage[latin1]{inputenc}!
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Am 07. Dec 2000 um 11:56 MET schrieb Volker Stolz:
Is anyone using SocketPrimt.getSocketName?
I try to get the IP of a listening socket (on my side), but
I always get 0. It could be either my fault, SocketPrims fault
(the source is prefilling the buffer with 0!), or the
conversion-functions
from ch:
msg - readChan ch
return (Just msg)
else (return Nothing)
However, shouldnt the dupChan be a space-leak par excellence? We end up
having no readers and keep adding new meesages to dup...
--
\usepackage[latin1]{inputenc}!
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
age[latin1]{inputenc}!
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
could hack ghci do add main = print 1 in case main is undefined,
but that's not really something I'd like to admit afterwards...
--
Abstrakte Syntaxträume.
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL
in reality.)
Looks to me like you're forgetting that the OS will give you a
sigPIPE on (semi-)closed sockets, which translates to a segfault
unless you install a signal handler:
- http://www.haskell.org/ghc/docs/latest/set/socket.html#AEN13989
- socket(2)
--
Abstrakte Syntaxträume.
Volker Stolz
suppose I'm missing something essential here, as there must be a
better way of doing it when passing a variable of type Int.
--
Abstrakte Syntaxträume.
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED
have to provide the corresponding top-level .hi and some .a-files to
the ghc command line for compiling.
Is there any way to use ghc --make without having to provide access to all
of the *source* files and make it use the pre-compiled stuff?
--
Abstrakte Syntaxträume.
Volker Stolz * [EMAIL
general way.
Okay, here a nice way to handle this:
#if __GLASGOW_HASKELL__ = 501
mkPortNumber = fromIntegral
#endif
--
Abstrakte Syntaxträume.
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED
in separate directories. How can I tell
--make to look for them?
Use the same options as you´d use for plain ghc: -i
Saludos,
Volker
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http
? http://germany.indymedia.org/2001/07/4866.html
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
, unless you use forkIO.
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
Am 22. Oct 2001 um 12:56 MET DST schrieb Simon Marlow:
The call doesn't block, because the socket is set to non-blocking mode.
Or have you perhaps observed different behaviour? It works here.
Okay, I'm stupid. I can clearly see the 'threadWaitRead' statement now.
--
Volker Stolz * [EMAIL
know how Windows/cygwin handle these things. You could modify
SocketPrim to use the number 6 instead of trying to do the getprotobyname
lookup, but that's not a real remedy.
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users
)
Ptr is abstract so I cannot create this Ptr myself. Maybe the Ptr-module
just lacks a 'minusOnePtr' similar to 'nullPtr'?
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org
by Simon Marlow and works. OTOH, this is not the bug you're seeing.
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
to 'connect' it says;
select(14, [], [13], NULL, {134, 217727}) = 1 (out [13], left {134, 21})
getsockopt(13, SOL_SOCKET, SO_ERROR, [0], [1]) = 0
This looks like some on-the-fly bitrotting in ghci :-/
--
Volker Stolz * [EMAIL PROTECTED] * PGP + S/MIME
) in paragraph at lines 16--18
Volker Stolz * [EMAIL PROTECTED]
Please use PGP or S/MIME for correspondence!
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
In local.glasgow-haskell-users, you wrote:
is System.system broken in 5.04? i am using the rpm provided on the web
site and this call appears to be broken. in particular, using strace i
find that it is attempting the following call
[pid 16975] execve(n/sh, [/bin/sh, -c, echo foo], [/* 67
how to build entirely static
binaries. Opinions?
--
Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME
http://news.bbc.co.uk: `Israeli forces [...], declaring curfews that
confine more than 700,000 people to their homes
would be to rename the current -static to e.g.
-hsstatic and let the actual -static be equivalent to
-hsstatic -optl-static. That way, you don't loose the current
possibility, although I cannot thing of any useful application, either.
--
Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz
Control.Exception.catch (takeMVar mv_deadlock) -- deadlock
(\ e - putMVar mv_should_work ())
yield yield yield
Control.Exception.catch (takeMVar mv_should_work)
(\ e - putStrLn $ main caught: ++ (show e))
\end{code}
--
Volker Stolz * http://www-i2
In local.glasgow-haskell-users, you wrote:
readSymbolicLink is broken, it assumes that readlink(2) null terminates its
result when it doesn't. this causes all sorts of badness.
This should fix it, although all my CVS trees are hosed right now
(now how did I manage to break something in the
In local.glasgow-haskell-users, you wrote:
I have a program that uses INET sockets and I wanted to change it to
use Unix domain sockets. Here is the relevant code:
sock - listenOn portID
(h, hostname, portnumber) - accept sock
I get an error message when running it with
portID =
a typdef for CInt]
--
Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME
http://news.bbc.co.uk: `Israeli forces [...], declaring curfews that
confine more than 700,000 people to their homes.'
___
Glasgow-haskell-users mailing list
In local.glasgow-haskell-users, you wrote:
Sendfile.hsc:94:
Couldn't match `IO ()' against `Fd - Fd - Int - Int - IO ()'
Should be fixed in CVS now, thanks!
--
http://www-i2.informatik.rwth-aachen.de/stolz/ *** PGP *** S/MIME
rage against the finite state machine
Am 17. Mar 2003 um 02:04 CET schrieb Kirsten Chevalier:
On Sun, Mar 16, 2003 at 04:09:31PM +0100, Volker Stolz wrote:
In local.glasgow-haskell-users, you wrote:
Sendfile.hsc:94:
Couldn't match `IO ()' against `Fd - Fd - Int - Int - IO ()'
Should be fixed in CVS now, thanks
In local.glasgow-haskell-users, you wrote:
After processing a random number of connections, the server dies with
Fail: invalid argument
Action: accept
Reason: Invalid argument
[...]
I don't know what's wrong, I'm afraid. Any chance you could supply us
with a working example that
In local.glasgow-haskell-users, you wrote:
I'm trying to compile the latest version of GHC from CVS. I followed
the instructions on GHC's web page and everything worked just fine.
But when I updated the sources with cvs update -dP as instructed,
CVS checked-out pretty much everything the CVS
In local.glasgow-haskell-users, you wrote:
| 2.4. Updating Your Source Tree
| It can be tempting to cvs update just part of a source tree to bring in
| some changes that someone else has made, or before committing your own
| changes. This is NOT RECOMMENDED! [...]
|
| So, to avoid a lot of
In local.glasgow-haskell-users, you wrote:
I am having trouble installing the package in a non-standard place. After
downloading and unpacking I did:
There have been some fixes to this particular package. Please check
if there's a more recent package (t 1 day)!
Volker
--
'getCountChan' turns its
back on the channel, the item will still have disappeared.]
[although I consider
mapM_ (uncurry putMVar) (zip counts (map (+1) vs))
rather neat :)]
Not as neat as
zipWithM_ putMVar counts (map (+1) vs)
Point taken.
Volker
--
Volker Stolz * http://www-i2
In local.glasgow-haskell-users, you wrote:
I've been using sockets and handles with ghc-5.04.3.
The strange thing is now that when I make a handle
out of a socket and ask whether the handle is readable
or writable, it returns True for the former and False
for the latter, although sockets are
In local.glasgow-haskell-users, you wrote:
For Unix, use Posix.handleToFd to get a descriptor, then fdopen() (in
C, or write a foreign import) to get a FILE*.
Also, don't forget about synchronisation issues between the C and
Haskell interfaces to the descriptor (e.g. buffering).
After the
In local.glasgow-haskell-users, you wrote:
I use the Posix library since I have to communicate via a pipe with
another UNIX process.
Therefore I have to use
fdRead :: Fd - ByteCount - IO (String,ByteCount)
Why do you have to use an Fd? A regular handle should be sufficient.
Where do you get
On Fri, Jul 11, 2003 at 08:39:54AM +0200, Rafael Martinez Torres wrote:
(piper,pipew) - createPipe
piperHandle - fdToHandle(piper)
threadWaitRead ( fdToInt(handleToFd(piperHandle)) )
message - hGetLine piperHandle --or whatever.
There's no need to call threadWaitRead, Haskell's RTS will take
In local.glasgow-haskell-users, you wrote:
I can't do much with the provided examples, because getSignalMask exits
the program with:
Fail: invalid argument
Action: getSignalMask
Reason: Invalid argument
Looks like an actual bug in the library. Should be fixed in CVS now.
--
],
framework_dirs = [],
extra_frameworks = []}]
--
Volker Stolz * http://www-i2.informatik.rwth-aachen.de/stolz/ * PGP * S/MIME
___
Glasgow-haskell-users mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-users
In local.glasgow-haskell-users, you wrote:
It might even be possible to create the file and then
remove(3) it, right away. The file handle will continue to
work, but there is never an entry in the file system.
IIRC this is not possible because files are referenced in the
different phases by
In local.glasgow-haskell-users, you wrote:
(This is when invoking ghci -package yahu)
Loading package base ... linking ... done.
Loading package yahu ... linking ...
/.../chalmers.se/fs/cab/cs/work/proj/multi/pub/lib/yahu/Yahu/YahuHaskell.o:
unknown symbol `__stginit_List_'
ghc-6.0.1: panic!
In local.glasgow-haskell-users, you wrote:
I have a ghc program that appears to be causing a memory error (either
segfaulting or tripping up X and killing my session).
Are you sure it's segfaulting? You might simply run low on memory and
your system starts killing processes to free up memory.
In local.glasgow-haskell-users, you wrote:
Ok, that was definitely my fault. I´ve built the gnu-make and tried again.
After an hour of compilation ghc ended with:
./../ghc/utils/hsc2hs/hsc2hs-inplace -Iinclude -I../../ghc/includes -I.
GHC/Unicode.hsc
Unicode.hsc: In function `main':
In local.glasgow-haskell-users, you wrote:
we have compiled ghc-6.2 --enable-hopengl from source (with ghc-6.0)
on SunOS userv2 5.8 Generic_108528-27 sun4u sparc SUNW,Ultra-60.
Linking ...
Undefined first referenced
symbol in file
In local.glasgow-haskell-users, you wrote:
Please, who knows how to download and install in the easiest
way the
Happy parser
Maybe, you now some mirrors ...
http://www.mirror.ac.uk/sites/www.haskell.org/
--
http://www-i2.informatik.rwth-aachen.de/stolz/ ***
In local.glasgow-haskell-users, you wrote:
Christian Maeder wrote:
What is ctype.h good for?
A good question. Its only use seems to be in
ghc/rts/RtsFlags.c where it is used for functions
like isdigit and isspace for decoding the RTS flags.
Maybe it should be retired altogether.
I'm
In local.glasgow-haskell-users, you wrote:
On 22 June 2004 10:39, Bernard James POPE wrote:
Supposing that such a thing is indeed possible is there any chance
that it could be folded into GHC? (Then I wouldn't have to ship my
own variant of the runtime with buddha.)
Certainly, I don't see
In local.glasgow-haskell-users, you wrote:
Essentially, Network.recvFrom is only of use to simple, stupid
programs; specifically, programs which only wish to accept a single
connection.
This has been noted (various?) times on the mailing-lists. You'd never
want to use it in a real application.
In local.glasgow-haskell-users, you wrote:
1. 'isEmptyChan x' blocks if x is empty and some other thread is waiting
to read from x:
Prelude Control.Concurrent x - newChan
Prelude Control.Concurrent forkIO $ readChan x
Prelude Control.Concurrent empty - isEmptyChan x
*** Exception: thread
In gmane.comp.lang.haskell.glasgow.user, you wrote:
When compiling using ghc, I get the following error:
Parser.o(.text+0x10fc5): In function `r1fgN_entry':
: undefined reference to `DataziTuple_Z77T_con_info'
collect2: ld returned 1 exit status
What platform and gcc? Could you please invoke
69 matches
Mail list logo