Hi there, I'm trying to compile pianod but it fails, complaining it can't find libjson.
According to this page, the dependencies needed are libao, libgcrypt, gnutls, json-c, faad2 and libmad, which I all installed.
Additionaly, this is what pacman lists as installed packages regarding json:
$this->bbcode_second_pass_code('', '
$ pacman -Qqs json
json-c
jsoncpp
perl
yajl
')
When I run ./configure it fails (I cut some stuff from the top):
$this->bbcode_second_pass_code('', '
.....
checking for gnutls... yes
checking for ao... yes
checking for mad... yes
checking for json... yes
checking for gcry_cipher_open in -lgcrypt... yes
checking for gnutls_record_recv in -lgnutls... yes
checking for json_object_new_string in -ljson... no
configure: error: Cannot find required library: libjson (aka libjson0, json-c)
')
locate libjson outputs the following:
$this->bbcode_second_pass_code('', '
$ locate libjson
/usr/lib/libjson-c.so
/usr/lib/libjson-c.so.2
/usr/lib/libjson-c.so.2.0.1
/usr/lib/libjson.so
/usr/lib/libjson.so.0
/usr/lib/libjson.so.0.1.0
')
config.log shows this about the error:
$this->bbcode_second_pass_code('', '
...
configure:4886: checking for json_object_new_string in -ljson
configure:4911: gcc -o conftest -g -O2 -std=c99 conftest.c -ljson -lgnutls -lgcrypt -lpthread -lm >&5
/usr/bin/ld: /tmp/ccYsnkBX.o: undefined reference to symbol 'json_object_new_string'
/usr/bin/ld: note: 'json_object_new_string' is defined in DSO /usr/lib/libjson-c.so.2 so try adding it to the linker command line
/usr/lib/libjson-c.so.2: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
configure:4911: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "pianod"
| #define PACKAGE_TARNAME "pianod"
| #define PACKAGE_VERSION "147"
| #define PACKAGE_STRING "pianod 147"
| #define PACKAGE_BUGREPORT "pianod@lists.deviousfish.com"
| #define PACKAGE_URL "http://deviousfish.com/pianod"
| #define PACKAGE "pianod"
| #define VERSION "147"
| #define HAVE_LIBPTHREAD 1
| #define HAVE_LIBGCRYPT 1
| #define HAVE_LIBGNUTLS 1
| /* end confdefs.h. */
|
| /* Override any GCC internal prototype to avoid an error.
| Use char because int might match the return type of a GCC
| builtin and then its argument prototype would still apply. */
| #ifdef __cplusplus
| extern "C"
| #endif
| char json_object_new_string ();
| int
| main ()
| {
| return json_object_new_string ();
| ;
| return 0;
| }
configure:4920: result: no
configure:4930: error: Cannot find required library: libjson (aka libjson0, json-c)
')
any idea how to fix this?