help-gnunet
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-gnunet] Example Code not compiling


From: Sree Harsha Totakura
Subject: Re: [Help-gnunet] Example Code not compiling
Date: Mon, 19 Jun 2017 17:52:39 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

On 06/14/2017 02:50 PM, Christian Grothoff wrote:
> On 06/14/2017 02:00 PM, Vincent wrote:
>> Hi,
>> everytime I try to comile the testbed it doesn't work:
>>
>> gcc $CPPFLAGS $LDFLAGS -o testbed-test testbed_test.c  -lgnunettestbed
>> -lgnunetdht -lgnunetutil
>> /tmp/ccZmNcYw.o: In function `service_connect_comp':
>> testbed_test.c:(.text+0xe9): undefined reference to `GNUNET_abort_'
>> /tmp/ccZmNcYw.o: In function `test_master':
>> testbed_test.c:(.text+0x1e3): undefined reference to
>> `GNUNET_SCHEDULER_add_shutdown'
>> collect2: error: ld returned 1 exit status
>>
>> So I think I don't link all the necessary libraries. But what library am
>> I missing?
> Very strange, the symbols are in libgnunetutil, which you do link against.

If `make install` was not done previously, libgnunetutil will be
unavailable for the linker.

Also note that sometimes testing requires -lgnunettesting, but not in
the above case as the symbols listed are not from there.

> _Maybe_ you have some ancient version thereof on your system.  You might
> want to try building with the usual 'Makefile.am' inside of the GNUnet
> configure/autotool process, as that is, eh, more likely to give you the
> correct $LDFLAGS.  Regardless, the list of libraries is correct, so this
> is most likely an issue with your installation / system / paths.


Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]