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: Wed, 20 Feb 2008 11:05:23 +0900

Sergey,

the following patch you sent worked and allowed me to progress futher in the 
cvs build process.

I now ran into the following problem, which looks like a missing header file or 
library.

/usr/local/bin/gcc -g -O2 -o aclck.exe aclck.o  ../mailbox/.libs/libmailutils.a 
-L/usr/lib /usr/lib/libintl.dll.a /usr/lib/libiconv.dll.a -lcrypt -lresolv 
-lpthread /usr/lib/libgdbm.dll.a
aclck.o: In function `main':
/usr/cvs/mailutils/examples/aclck.c:190: undefined reference to `_rpl_getopt'
/usr/cvs/mailutils/examples/aclck.c:207: undefined reference to `_rpl_optarg'
/usr/cvs/mailutils/examples/aclck.c:210: undefined reference to `_rpl_optarg'
/usr/cvs/mailutils/examples/aclck.c:199: undefined reference to `_rpl_optarg'
/usr/cvs/mailutils/examples/aclck.c:203: undefined reference to `_rpl_optarg'
collect2: ld returned 1 exit status
make[3]: *** [aclck.exe] Error 1
make[3]: Leaving directory `/usr/cvs/mailutils/examples'
make[2]: *** [all-recursive] Error 1
----


I tried adding:
  #include <getopt.h>
and
  #include <lib/getopt.h>

but the same error occurs.  I guess the _rpl_ prefix to getopt and optarg 
is handeled by some other fashion.

Thanks for your assistance,
   Darel Henman



---------------- Ref: patch Sergey sent:
Sergey Poznyakoff <address@hidden> wrote:
> ,.,.....
> Add forward declaration of _add_load_dir somewhere before line 55, like
> that:
> 
> Index: libsieve/load.c
> ===================================================================
> RCS file: /cvsroot/mailutils/mailutils/libsieve/load.c,v
> retrieving revision 1.14
> diff -p -u -r1.14 load.c
> --- libsieve/load.c     14 Jan 2008 10:20:34 -0000      1.14
> +++ libsieve/load.c     18 Feb 2008 09:48:15 -0000
> @@ -42,6 +42,8 @@ _free_loaded_module (void *data)
>  }
>  #endif
> 
> +static int _add_load_dir (void *, void *);
> +
>  static int
>  sieve_init_load_path ()
>  {
> 
> Regards,
> Sergey
>  




reply via email to

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