I have been able to compile and link FSUI programs, but when I go to run them I get errors like this. Failure at configuration.c:640. Failure at configuration.c:664. You must specify a directory for user-data under 'GNUNETGNUNET_HOME' at the beginning of the configuration file. This happens when trying to use FSUI_start, even a simple "hello world" client crashes: #include <stdio.h> #include <stdlib.h> #include <gnunet_fsui_lib.h>
void cb(void * cls, const FSUI_Event * event)
{
}
int main(int argc, char *argv[])
{
FSUI_EventCallback callback;
struct FSUI_Context *context;
callback = cb;
context = FSUI_start("gnunetcurse",NO,callback,0L);
FSUI_stop(context);
return EXIT_SUCCESS;
}.
My config file is there and works fine with gnunet-gtk (which wasn't running
when I tried this). If I put other calls in first I get the same crash but in
different places:
readConfigFile("/home/michael/.gnunet/gnunet.conf"); results in
Failure at configuration.c:785.
Failure at configuration.c:823.
Failure at configuration.c:640.
Failure at configuration.c:664.
Failure at configuration.c:751.
Failure at configuration.c:765.
Failure at cron.c:437.
while triggerGlobalConfigurationRefresh(); gives just
Failure at cron.c:437.
I notice that all the failures seem to be at MUTEX_LOCK() calls. As I
understand the code, this is happening because pthread_mutex_lock() is
returning non-zero, but my knowledge of pthreads isn't good enough to
understand why this is happening. Does anyone know what I'm doing wrong, or
have I found a gnunet bug?
Thanks
Mikey
pgp1WcHxgM4I8.pgp
Description: PGP signature
_______________________________________________ GNUnet-developers mailing list [email protected] http://lists.gnu.org/mailman/listinfo/gnunet-developers
