Package: libyajl-dev
Version: 2.1.0-2
Severity: important

Linking against the shared libyajl library works as expected, but
linking against the static version causes missing symbol errors.

The easiest way to test this is to use the example that comes with
upstream libyajl, available here:

https://github.com/lloyd/yajl/blob/master/example/parse_config.c

The following command works:

 $ gcc -lyajl -o p parse_config.c

But the following command does not:

 $ gcc -lyajl_s -o p parse_config.c
/tmp/ccffEaZO.o: In function `main':
parse_config.c:(.text+0xc4): undefined reference to `yajl_tree_parse'
parse_config.c:(.text+0x199): undefined reference to `yajl_tree_get'
parse_config.c:(.text+0x213): undefined reference to `yajl_tree_free'
collect2: error: ld returned 1 exit status

Thanks,
 -George

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

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages libyajl-dev depends on:
ii  libyajl2  2.1.0-2

libyajl-dev recommends no packages.

libyajl-dev suggests no packages.

-- no debconf information

Reply via email to