[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1042096: lodepng: debian packages the library as shared library but upstream does not expose symbols for C API



Source: lodepng
Severity: important
Tags: upstream
X-Debbugs-Cc: akallabeth@posteo.net

Dear Maintainer,

I tried to link lodepng from my C application and did fail in doing so.
Checking the source revealed that upstream considers static building the
default and does not declare symbols as extern "C" but recommends
renaming the source from .cpp to .c
As debian builds that as a shared library and compiles with a C++
compiler the symbols are not available to link from C and the renaming
is obviously not possible to do.

I´ve created an upstream pr https://github.com/lvandeve/lodepng/pull/182
that would fix the issue, but would require porting the commit to
debian.


-- System Information:
Debian Release: 12.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.1.0-10-amd64 (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8), LANGUAGE=de_AT.UTF-8
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Reply to: