View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0000517 | mercury | Bug | public | 2020-09-16 23:51 | 2020-09-16 23:51 | ||||||||
Reporter | keri | ||||||||||||
Assigned To | |||||||||||||
Priority | normal | Severity | minor | Reproducibility | always | ||||||||
Status | new | Resolution | open | ||||||||||
Product Version | |||||||||||||
Target Version | Fixed in Version | ||||||||||||
Summary | 0000517: extras/mopenssl fails to compile in a par grade with libressl | ||||||||||||
Description | Using 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 Information | The attached diff adds function prototype declarations which allows mopenssl to compile. | ||||||||||||
Tags | No tags attached. | ||||||||||||
Attached Files |
|