Package: libjsoncpp-dev
Version: 1.9.6-3
Severity: normal
Tags: newcomer
X-Debbugs-Cc: [email protected]

Dear Maintainer,

   * What led up to the situation?
I have a C++ program that uses libjsoncpp as dependency. I installed 
libjsoncpp-dev with apt-get. Because the package description said "includes 
static libs" I assumed I would have the static libs. When I attempted to link 
libjsoncpp statically the linker failed.       
   * What exactly did you do (or not do) that was effective (or
     ineffective)?
I was able to fetch the source with "apt-get source libjsoncpp-dev"
I then modified "debian/rules" file to remove the line "-DBUILD_STATIC_LIBS=OFF
I then modified "debian/libjsoncpp-dev.install" to add the line "usr/lib/*/*.a"
   * What was the outcome of this action?
After making these two modifications to the source, I was able to run 
"dpkg-buildpackage -us -uc" to build the "*.deb" files needed
>From there I was able to install the "*.deb" files and get the statically 
>linked libraries installed
   * What outcome did you expect instead?
The libjsoncpp-dev package description explicitly states that the static libs 
are included. However, they are not actually included.

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

Kernel: Linux 6.12.41+deb13-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages libjsoncpp-dev depends on:
ii  libjsoncpp26  1.9.6-3

libjsoncpp-dev recommends no packages.

libjsoncpp-dev suggests no packages.

-- no debconf information

Reply via email to