Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78175 - [Extra/jasper] shared library missing exported symbols

Attached to Project: Arch Linux
Opened by Tommy Zhang (T-J-M) - Wednesday, 12 April 2023, 09:28 GMT
Last edited by Antonio Rojas (arojas) - Wednesday, 12 April 2023, 09:55 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description: The Jasper package with libjasper is widely used in image processing. However, two symbols 'jp2_encode' and 'jp2_decode' are missing from the libjasper.so


Additional info:
* package version(s) :4.0.0-1
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:
1. Install GCC and Jasper
2. Save the PoC in the local environment
3. Compile the Poc

Proof-of-Concept: poc.cc
```
#include <jasper/jas_image.h>

int main() {
jas_stream_t* in;
jp2_decode(in, 0);
}
```

Terminal Output:
```
[tjm@ArchPad tmp]$ g++ -O0 -g poc.cc -ljasper -o poc
In file included from /usr/include/jasper/jas_image.h:77,
from poc.cc:1:
/usr/include/jasper/jas_config.h:117:2: warning: #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building." [-Wcpp]
117 | #warning "Your code is being built against an older version of the C standard than JasPer was. Although this is supported, this may require some extra preprocessor defines when building."
| ^~~~~~~
/sbin/ld: /tmp/ccskK3ft.o: in function `main':
/tmp/poc.cc:5: undefined reference to `jp2_decode'
collect2: error: ld returned 1 exit status
```
This task depends upon

Closed by  Antonio Rojas (arojas)
Wednesday, 12 April 2023, 09:55 GMT
Reason for closing:  Not a bug
Comment by Antonio Rojas (arojas) - Wednesday, 12 April 2023, 09:54 GMT

Loading...