[m-users.] "posix" extra library won't compile
Volker Wysk
post at volker-wysk.de
Fri Mar 15 04:39:48 AEDT 2019
Hi
I'm trying to compile the "posix" library, which is distributed in extras/,
and get error messages from the compiler:
cd /usr/local/src/mercury-srcdist-rotd-2019-01-03/extras/posix
mmc --make libposix
posix.select.m:049: Error: This declaration for type `fdset_ptr'/0 says it is
posix.select.m:049: private, while the previous declaration says it is
posix.select.m:049: exported.
posix.select.m:021: The previous declaration was here.
After fixing this in the code and trying again, I get more errors:
Making Mercury/os/posix.open.o
In file included from /usr/include/fcntl.h:290:0,
from /usr/local/mercury-rotd-2019-01-03/lib/mercury/inc/
io.mh:268,
from Mercury/cs/posix.open.c:28:
In function ‘open’,
inlined from ‘posix__open_module4’ at posix.open.m:74:15:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:4: error: call to
‘__open_missing_mode’ declared with attribute error: open with O_CREAT or
O_TMPFILE in second argument needs 3 arguments
In function ‘open’,
inlined from ‘posix__open_module0’ at posix.open.m:74:15:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:4: error: call to
‘__open_missing_mode’ declared with attribute error: open with O_CREAT or
O_TMPFILE in second argument needs 3 arguments
Could this be a compiler version problem...? Any chances to get this fixed
soon?
Bye
Volker
More information about the users
mailing list