bug-mailutils
[Top][All Lists]
Advanced

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

Re: [bug-mailutils] New boostrap build error


From: d.henman
Subject: Re: [bug-mailutils] New boostrap build error
Date: Mon, 18 Feb 2008 08:54:09 +0900

Sergey,
  the patch you sent worked.  It enabled the build process to progress.  The 
next problem I ran into is a double declaration of "_add_load_dir" in "load.c". 
 Please see below:


  It doesn't look like the #ifdef SIEVE_MODDIR compiler directive needed below, 
since a static function definition is unconditionally given in line # 131.  Can 
the conditional be taken out of the source file?


In file: load.c line# 55:
#ifdef SIEVE_MODDIR
      _add_load_dir (SIEVE_MODDIR, NULL);
      inited = 1;
#endif

In file: load.c line# 131:
static int
_add_load_dir (void *item, void *unused)
{
  return lt_dladdsearchdir (item);
}


Regards,
  darel henman

Build error message:
----------------
 /usr/local/bin/gcc -DHAVE_CONFIG_H -I. -I.. -I. -I../include -I../lib -I../lib 
-I.. -I../include -I../mailbox -I../libargp -I../libcfg 
-DSIEVE_MODDIR=\"/usr/local/lib/mailutils\" -I/usr/local/include 
-DSYSCONFDIR=\"/usr/local/etc\" -g -O2 -MT load.lo -M

D -MP -MF .deps/load.Tpo -c load.c  -DDLL_EXPORT -DPIC -o .libs/load.o
In file included from ../include/mailutils/mailutils.h:41,
                 from ../include/mailutils/libsieve.h:25,
                 from ./sieve.h:20,
                 from load.c:29:
../include/mailutils/mailer.h:41: warning: 'struct timeval' declared inside 
parameter list
../include/mailutils/mailer.h:41: warning: its scope is only this definition or 
declaration, which is probably not what you want
load.c:131: error: static declaration of '_add_load_dir' follows non-static 
declaration
load.c:55: error: previous implicit declaration of '_add_load_dir' was here
make[4]: *** [load.lo] Error 1
make[4]: Leaving directory `/usr/cvs/mailutils/libsieve'
----------------

-- End




reply via email to

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