[mercury-users] using sockets, echoserv.m

Jörg Schuster joerg.schuster at gmail.com
Tue Dec 16 04:11:32 AEDT 2008


Hello,

in order to be able to compare Mercury's performance in a fair way to
how several Prolog compilers perform, I would like to run some small
programs as servers. I could not compile echoserv.m (posted by Julian
Fondren in Februrary 2007) on my system. (The error message is at the
end of this mail.)

Are there other simple server programs that I could easily adapt?

Or are there other simple ways to run a Mercury program on a socket?
E.g. by interfacing it with some other language?

Jörg



=================================================================================

Making echoserv
** Error making `echoserv'.
Mercury/os/posix.select.o: In function `<predicate
'posix:select.new_fdset_ptr'/3 mode 0>':
posix.select.c:(.text+0xf6): undefined reference to `ME_fd_zero'
Mercury/os/posix.select.o: In function `<predicate
'posix:select.fd_isset'/5 mode 0>':
posix.select.c:(.text+0x143): undefined reference to `ME_fd_isset'
Mercury/os/posix.select.o: In function `<predicate
'posix:select.fd_zero'/3 mode 0>':
posix.select.c:(.text+0x111): undefined reference to `ME_fd_zero'
Mercury/os/posix.select.o: In function `<predicate
'posix:select.fd_clr'/4 mode 0>':
posix.select.c:(.text+0x121): undefined reference to `ME_fd_clr'
Mercury/os/posix.select.o: In function `<predicate
'posix:select.fd_set'/4 mode 0>':
posix.select.c:(.text+0x161): undefined reference to `ME_fd_set'
collect2: ld returned 1 exit status

--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list