Mercury Bugs - mercury
View Issue Details
0000517mercuryBugpublic2020-09-16 23:512020-09-16 23:51
Reporterkeri 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusnewResolutionopen 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0000517: extras/mopenssl fails to compile in a par grade with libressl
DescriptionUsing a par grade mopenssl.c fails to compile with libressl:

Making Mercury/os/mopenssl.o
mopenssl.m: In function 'mopenssl_module10':
mopenssl.m:116.49: error: 'pthreads_thread_id' undeclared (first use in this function)
mopenssl.m:116.49: note: each undeclared identifier is reported only once for each function it appears in
mopenssl.m:116:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
mopenssl.m:117.45: error: 'pthreads_locking_callback' undeclared (first use in this function); did you mean 'CRYPTO_SET_locking_callback'?
mopenssl.m:117.45: note: each undeclared identifier is reported only once for each function it appears in
mopenssl.m:117:5: warning: function declaration isn't a prototype [-Wstrict-prototypes]
mopenssl.m: At top level:
mopenssl.m:125:6: warning: no previous prototype for 'pthreads_locking_callback' [-Wmissing-prototypes]
mopenssl.m:135.15: warning: no previous prototype for 'pthreads_thread_id' [-Wmissing-prototypes]
** Error making 'Mercury/os/mopenssl.o'.
Steps To Reproduce* use a version of Mercury configured with --enable-par-grades
* compile extras/mopenssl on a host with libressl installed

$ cd extras/mopenssl
$ cp ../net/*.m ./
$ mmc --grade asm_fast.par.gc.stseg --make libopenssl
Additional InformationThe attached diff adds function prototype declarations which allows mopenssl to compile.
TagsNo tags attached.
Attached Filespatch mercury-extras-mopenssl.patch (505) 2020-09-16 23:51
https://bugs.mercurylang.org/file_download.php?file_id=305&type=bug

There are no notes attached to this issue.

Issue History
2020-09-16 23:51keriNew Issue
2020-09-16 23:51keriFile Added: mercury-extras-mopenssl.patch