[Pianod] Ubuntu 12.04 compile error
Perette Barella
perette at barella.org
Sun Apr 7 06:00:55 PDT 2013
The linker isn't finding the json library. pkg-config should indicate where it comes from if you run:
pkg-config --libs json
Please post the output of that and the contents of config.log. I'd like to see why the ./configure script didn't do this right, or at least complain about the dependency and stop.
In the short term, if you can figure out where the json libraries are, fix json_LIBS in src/Makefile and try again. Note if you rerun ./configure for some reason it'll clobber this change.
Perette
--
Perette Barella • perette at barella.org • 585-286-1312
176 Middlesex Road, Rochester NY 14610
On 2013年04月07日, at 7:35, Steven Adeff wrote:
> anyone know why/how this is happening and how to resolve it?
> thanks!
>
> $ make
> ...
> mv -f .deps/pianod-users.Tpo .deps/pianod-users.Po
> gcc -g -O2 -std=c99 -ljson -o pianod pianod-command.o
> pianod-logging.o pianod-pianod.o pianod-pianoextra.o pianod-player.o
> pianod-query.o pianod-response.o pianod-seeds.o pianod-settings.o
> pianod-support.o pianod-tuner.o pianod-users.o
> libwaitress/libwaitress.a libpiano/libpiano.a
> libfootball/libfootball.a libezxml/libezxml.a -lcrypt -lfaad -lao
> -lgnutls -lgcrypt -lpthread -lm
> libpiano/libpiano.a(libpiano_a-request.o): In function `PianoRequest':
> /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:49: undefined
> reference to `json_object_new_object'
> /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:451:
> undefined reference to `json_object_to_json_string'
> /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:462:
> undefined reference to `json_object_put'
> /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:396:
> undefined reference to `json_object_new_string'
> /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:396:
> undefined reference to `json_object_object_add'
> /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:444:
> undefined reference to `json_object_new_string'
> /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:444:
> undefined reference to `json_object_object_add'
> /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:446:
> undefined reference to `json_object_new_int'
> /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:446:
> undefined reference to `json_object_object_add'
> /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:73: undefined
> reference to `json_object_new_string'
> /home/adeffs/Downloads/pianod-135/src/libpiano/request.c:73: undefined
> reference to `json_object_object_add'
...
More information about the Pianod
mailing list