[Pianod] Build issues
Jimmy Pop
jimmypopali96 at gmail.com
Fri May 31 16:14:38 PDT 2013
Hmmm interesting results
#locate libjson
/lib/arm-linux-gnueabihf/libjson-c.so.2
/lib/arm-linux-gnueabihf/libjson-c.so.2.0.1
/root/json-c/libjson.c
/usr/lib/arm-linux-gnueabihf/libjson.a
/usr/lib/arm-linux-gnueabihf/libjson-c.a
/usr/lib/arm-linux-gnueabihf/libjson-c.so
/usr/lib/arm-linux-gnueabihf/libjson-c.so.2
/usr/lib/arm-linux-gnueabihf/libjson.so
/usr/lib/arm-linux-gnueabihf/libjson.so.0
/usr/share/doc/libjson0
/usr/share/doc/libjson0-dev
/usr/share/doc/libjson-c2
/usr/share/doc/libjson-c2/changelog.Debian.gz
/usr/share/doc/libjson-c2/changelog.gz
/usr/share/doc/libjson-c2/copyright
/usr/share/doc/libjson-c2/README
/usr/share/doc/libjson-c2/README.html
/usr/share/doc/libjson-c-dev
/usr/share/doc/libjson-c-dev/changelog.Debian.gz
/usr/share/doc/libjson-c-dev/changelog.gz
/usr/share/doc/libjson-c-dev/copyright
/var/cache/apt/archives/libjson0_0.11-1_armhf.deb
/var/cache/apt/archives/libjson0-dev_0.11-1_armhf.deb
/var/cache/apt/archives/libjson-c2_0.11-1_armhf.deb
/var/cache/apt/archives/libjson-c-dev_0.11-1_armhf.deb
/var/lib/dpkg/info/libjson0:armhf.list
/var/lib/dpkg/info/libjson0:armhf.md5sums
/var/lib/dpkg/info/libjson0:armhf.postinst
/var/lib/dpkg/info/libjson0-dev:armhf.list
/var/lib/dpkg/info/libjson0-dev:armhf.md5sums
/var/lib/dpkg/info/libjson0-dev:armhf.postinst
/var/lib/dpkg/info/libjson-c2:armhf.list
/var/lib/dpkg/info/libjson-c2:armhf.md5sums
/var/lib/dpkg/info/libjson-c2:armhf.postinst
/var/lib/dpkg/info/libjson-c2:armhf.postrm
/var/lib/dpkg/info/libjson-c2:armhf.shlibs
/var/lib/dpkg/info/libjson-c2:armhf.symbols
/var/lib/dpkg/info/libjson-c-dev:armhf.list
/var/lib/dpkg/info/libjson-c-dev:armhf.md5sums
#gcc -o conftest -g -O2 -std=c99 conftest.c -ljson -lgnutls -lgcrypt
-lpthread -lm
gcc: error: conftest.c: No such file or directory
redownloading now to see if my download was corrupted
On Fri, May 31, 2013 at 3:37 PM, Peter Li <chinasaurli at gmail.com> wrote:
> 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
> ______________________________**_________________
> Pianod mailing list
> Pianod at lists.deviousfish.com
> http://lists.deviousfish.com/**listinfo.cgi/pianod-**deviousfish.com<http://lists.deviousfish.com/listinfo.cgi/pianod-deviousfish.com>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.deviousfish.com/pipermail/pianod-deviousfish.com/attachments/20130531/ecc0535f/attachment-0003.htm>
More information about the Pianod
mailing list