Mercury Bugs - mercury | |||||
| View Issue Details | |||||
| 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 | ||
| Platform | OS | OS Version | |||
| 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. | ||||
| Relationships | |||||
| Attached Files | https://bugs.mercurylang.org/file_download.php?file_id=305&type=bug | ||||
| There are no notes attached to this issue. |
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
|---|---|---|---|---|---|
| 2020-09-16 23:51 | keri | New Issue | |||
| 2020-09-16 23:51 | keri | File Added: mercury-extras-mopenssl.patch | |||