[Pianod] Build issues
Peter Li
chinasaurli at gmail.com
Fri May 31 15:37:31 PDT 2013
On 05/31/2013 02:49 PM, Jimmy Pop wrote:
> configure:4883: checking for json_object_new_string in -ljson
> configure:4908: gcc -o conftest -g -O2 -std=c99 conftest.c -ljson
> -lgnutls -lgcrypt -lpthread -lm >&5
> /tmp/cc8Kic6X.o: In function `main':
> /root/pianod-144/conftest.c:25: undefined reference to
> `json_object_new_string'
> collect2: ld returned 1 exit status
Okay, so the problem appears to be a straightforward failure to find the
function in the library.
Probably I would first check that the library is in a standard place:
'sudo updatedb; locate libjson'. It could be the library is named
something else, like libjson-c or something, and for some reason
configure didn't get the clue to link to the other name.
If the library seems to be in the right place, I would probably try
running the gcc conftest.c line from the terminal to figure out why it's
not finding it.
Sometimes if I start to feel crazy I check the headers, etc. to be sure
that the function that is being looked for didn't get removed from the
library, but that's rarely the issue.
P
More information about the Pianod
mailing list