[mercury-users] socket support in io

Sandy Harris sandy.harris at sympatico.ca
Mon Oct 4 08:38:01 AEST 1999


Michael Day wrote:
> 
> > However, this is really an example of socket programming
> > in a combination of C and Mercury, ... The Mercury code
> > uses the `io__read' predicate from the `io' module in the standard
> > library to do the parsing.
> 
> Right I've looked through that file a little actually as gcc 2.95.1
> collapses with an internal error when it tries to compile it. I had to
> comment out a small portion of the code that checks for a unix socket
> environment variable or similar, to be able to build it. (I'm assuming
> that's a gcc error, the code looks fine...)

If you're on Linux, support for "Unix domain sockets" is a kernel
configuration option. you may need to switch it on and recompile
the kernel.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list