I'm building JSON-C as a dependency for PulseAudio. It fails to build with: > > > /bin/sh ./libtool --tag=CC --mode=link gcc -Wall -Werror -Wextra > > -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE > > -D_REENTRANT -g -O2 -version-info 1:0:1 -no-undefined -ljson-c -o > > libjson.la -rpath /usr/lib libjson.lo -ljson-c > > mv -f .deps/json_util.Tpo .deps/json_util.Plo > > mv -f .deps/printbuf.Tpo .deps/printbuf.Plo > > mv -f .deps/linkhash.Tpo .deps/linkhash.Plo > > libtool: link: gcc -shared .libs/libjson.o -ljson-c -Wl,-soname > > -Wl,libjson.so.0 -o .libs/libjson.so.0.1.0 > > /usr/bin/ld: cannot find -ljson-c > > collect2: error: ld returned 1 exit status > > make[2]: *** [libjson.la] Error 1 > > make[2]: *** Waiting for unfinished jobs.... > > mv -f .deps/json_object.Tpo .deps/json_object.Plo > > mv -f .deps/json_tokener.Tpo .deps/json_tokener.Plo > > make[2]: Leaving directory `/usr/src/json-c-0.11/json-c-0.11' > > make[1]: Leaving directory `/usr/src/json-c-0.11/json-c-0.11' > > make[1]: *** [all-recursive] Error 1 > > make: *** [all] Error 2 > > I don't know if it's relevant, but the README file contains this: > > > Linking to libjson-c > > > > If your system has pkgconfig then you can just add this to your makefile > > > > CFLAGS += $(shell pkg-config --cflags json-c) > > LDFLAGS += $(shell pkg-config --libs json-c) > > > > Without pkgconfig, you would do something like this: > > > > JSON_C_DIR=/path/to/json_c/install > > CFLAGS += -I$(JSON_C_DIR)/include/json-c > > LDFLAGS+= -L$(JSON_C_DIR)/lib -ljson-c > > If it's relevant to pass any of these things to get JSON-C to build, how > and where would I do it? > > You could try Jansson, I think it's a drop-in replacement and that built just fine for me.
Richard
-- http://linuxfromscratch.org/mailman/listinfo/blfs-support FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page