[Top][All Lists]

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

[bug-mailutils] compile failed with "--disable-smtp"

From: Robert Young
Subject: [bug-mailutils] compile failed with "--disable-smtp"
Date: Fri, 6 Oct 2017 00:39:02 +0000


libtool: link: gcc -O3 -Wall -Wdeclaration-after-statement -o
.libs/mailutils dispatch.o getans.o getarg.o getyn.o mu.o shell.o
util.o verbose.o acl.o cflags.o filter.o flt2047.o help.o info.o
ldflags.o logger.o query.o send.o stat.o wicket.o
../lib/.libs/libmuaux.so ../libproto/mbox/.libs/libmu_mbox.so
../libmailutils/.libs/libmailutils.so -lreadline -lncurses -lcrypt
-lpthread -Wl,-rpath -Wl,/usr/lib64
dispatch.o:(.data+0xf8): undefined reference to `mutool_smtp'
dispatch.o:(.data+0x100): undefined reference to `smtp_docstring'
collect2: ld returned 1 exit status

Patch to resolve this issue:

--- mu/mu-setup.h 2017-03-11 22:07:02.000000000 +0800
+++ mu/mu-setup.h 2017-10-06 08:30:20.613970005 +0800
@@ -27,8 +27,10 @@
 extern char query_docstring[];
 extern int mutool_send (int argc, char **argv);
 extern char send_docstring[];
 extern int mutool_smtp (int argc, char **argv);
 extern char smtp_docstring[];
 extern int mutool_stat (int argc, char **argv);
 extern char stat_docstring[];
 extern int mutool_wicket (int argc, char **argv);
--- mu/mu-setup.c 2017-03-11 22:07:02.000000000 +0800
+++ mu/mu-setup.c 2017-10-06 08:31:20.515971037 +0800
@@ -20,6 +20,8 @@
 { "query", mutool_query, query_docstring },
 { "send", mutool_send, send_docstring },
 { "smtp", mutool_smtp, smtp_docstring },
 { "stat", mutool_stat, stat_docstring },
 { "wicket", mutool_wicket, wicket_docstring },

reply via email to

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