[Pianod] Ubuntu 12.04 compile error
Michael R. Hines
michael at hinespot.com
Sun Apr 7 07:10:52 PDT 2013
$ sudo apt-get install libjson0-dev
On Sun, 2013-04-07 at 09:00 -0400, Perette Barella wrote:
> 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'
> ...
>
> _______________________________________________
> Pianod mailing list
> Pianod at lists.deviousfish.com
> http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com
More information about the Pianod
mailing list