Discussion:
[bug-mailutils] problem with build 20151028 git snapshot
Sergey
2015-11-07 11:58:22 UTC
Permalink
Hello.

Build fail with

make[3]: Entering directory `/home/b/RPM/BUILD/mailutils/mu'

/bin/sh ../libtool --tag=CC --mode=link gcc -g -Wall -Wdeclaration-after-statement -ggdb -o mailutils dispatch.o getans.o getarg.o getyn.o mu.o shell.o util.o verbose.o acl.o cflags.o dbm.o imap.o filter.o flt2047.o help.o info.o ldflags.o logger.o pop.o query.o send.o smtp.o wicket.o ../libmu_argp/libmu_argp.la ../libmu_cfg/libmu_cfg.la ../libproto/mbox/libmu_mbox.la ../libproto/imap/libmu_imap.la ../libproto/pop/libmu_pop.la ../libproto/mh/libmu_mh.la ../libproto/maildir/libmu_maildir.la ../libproto/mailer/libmu_mailer.la ../libmu_auth/libmu_auth.la -lldap -lpam -ldl ../libmailutils/libmailutils.la ../libmu_dbm/libmu_dbm.la -lgdbm -ldb -ltokyocabinet -lreadline -lncurses -lcrypt -lpthread

libtool: link: gcc -g -Wall -Wdeclaration-after-statement -ggdb -o .libs/mailutils dispatch.o getans.o getarg.o getyn.o mu.o shell.o util.o verbose.o acl.o cflags.o dbm.o imap.o filter.o flt2047.o help.o info.o ldflags.o logger.o pop.o query.o send.o smtp.o wicket.o ../libmu_argp/.libs/libmu_argp.so ../libmu_cfg/.libs/libmu_cfg.so ../libproto/mbox/.libs/libmu_mbox.so ../libproto/imap/.libs/libmu_imap.so ../libproto/pop/.libs/libmu_pop.so ../libproto/mh/.libs/libmu_mh.so ../libproto/maildir/.libs/libmu_maildir.so ../libproto/mailer/.libs/libmu_mailer.so ../libmu_auth/.libs/libmu_auth.so -lldap -lpam -ldl ../libmailutils/.libs/libmailutils.so ../libmu_dbm/.libs/libmu_dbm.so -lgdbm -ldb -ltokyocabinet -lreadline -lncurses -lcrypt -lpthread -Wl,-rpath -Wl,/usr/local/lib

/usr/bin/ld: shell.o: undefined reference to symbol 'mu_set_signals'
/home/b/RPM/BUILD/mailutils/lib/.libs/libmuaux.so.4: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
--
Regards,
Sergey
Sergey
2015-11-08 11:15:11 UTC
Permalink
Post by Sergey
/usr/bin/ld: shell.o: undefined reference to symbol 'mu_set_signals'
/home/b/RPM/BUILD/mailutils/lib/.libs/libmuaux.so.4: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
I sent some details about libmuaux.so to your private mail.

Another problem. This is happens when I attempt to build mu
with guile library by gcc 5.2 (and not happens by 4.7; only
gcc version is switched):

==
cat mu_address.doc mu_body.doc mu_debug.doc mu_mailbox.doc mu_message.doc mu_mime.doc mu_logger.doc mu_port.doc mu_scm.doc mu_util.doc | \
/usr/bin/guile-tools snarf-check-and-output-texi > guile-procedures.texi
ERROR: unknown doc attribute: (cname (hash . hash) (id . scm_mu_address_get_personal) (hash . hash))
make[2]: *** [guile-procedures.texi] Error 1
==
--
Regards,
Sergey
Sergey Poznyakoff
2015-11-09 10:37:06 UTC
Permalink
Hi Sergey,
Post by Sergey
Another problem. This is happens when I attempt to build mu
with guile library by gcc 5.2 (and not happens by 4.7; only
==
cat mu_address.doc mu_body.doc mu_debug.doc mu_mailbox.doc mu_message.doc mu_mime.doc mu_logger.doc mu_port.doc mu_scm.doc mu_util.doc | \
/usr/bin/guile-tools snarf-check-and-output-texi > guile-procedures.texi
ERROR: unknown doc attribute: (cname (hash . hash) (id . scm_mu_address_get_personal) (hash . hash))
make[2]: *** [guile-procedures.texi] Error 1
Please try removing *.doc and *.x files in the libmu_scm directory, and
then retry make.

Regards,
Sergey
Sergey
2015-11-09 12:00:16 UTC
Permalink
Post by Sergey Poznyakoff
Post by Sergey
ERROR: unknown doc attribute: (cname (hash . hash) (id . scm_mu_address_get_personal) (hash . hash))
make[2]: *** [guile-procedures.texi] Error 1
Please try removing *.doc and *.x files in the libmu_scm directory, and
then retry make.
This does not helped, they are recreated. It reminds
http://lists.gnu.org/archive/html/bug-mailutils/2010-10/msg00003.html
I sent report to bug-guile@ yesterday, but I have auto reply from
help-debbugs@ only now.
--
Regards, Sergey
Sergey Poznyakoff
2015-11-09 13:26:40 UTC
Permalink
Post by Sergey
This does not helped, they are recreated. It reminds
http://lists.gnu.org/archive/html/bug-mailutils/2010-10/msg00003.html
That looks pretty similar, indeed. Can you send me the generated *.doc
files?

Regards,
Sergey
Sergey Poznyakoff
2015-11-09 14:16:02 UTC
Permalink
Thanks. That confirms that the problem is due to cc generating
more location markers, than guile snarfer is able to handle.
Here's a work around that should help. Please cd to the subdirectory
gint and apply the following patch:

diff --git a/clexer.l b/clexer.l
index 6201d12..c6b97d5 100644
--- a/clexer.l
+++ b/clexer.l
@@ -90,7 +90,7 @@ WS [ \t\v\f]
%%
\/\*(\n|[^*]|\*[^/])*\*\/ { advance_line (yytext);
outtok ("comment", yytext); }
-#.*\n { outstr ("hash"); line_no++; }
+#.*\n { line_no++; }
\n { outstr ("eol"); line_no++; }
{WS}+ ;
\\ ;

Then remove libmu_scm/guile-procedures.texi and run make again. Let me
know if it helps (and please, keep Cc).

Regards,
Sergey
Sergey
2015-11-09 15:10:51 UTC
Permalink
Post by Sergey Poznyakoff
Then remove libmu_scm/guile-procedures.texi and run make again.
Let me know if it helps (and please, keep Cc).
guile-tools run without error now but build failed with

mu_address.c: In function 'mu_scm_address_init':
mu_address.c:182:1: error: expected expression before '}' token
}
^
mu_address.x (included in mu_address.c:181) and other *.x are
damaged and equal what I sent in archive with *.doc.
--
Regards, Sergey
Sergey Poznyakoff
2015-11-09 15:14:07 UTC
Permalink
Post by Sergey
guile-tools run without error now
ok
Post by Sergey
but build failed with
Unfortunately, that cannot be worked around. That's guile snarfer that
should be fixed.

Regards,
Sergey
Sergey
2015-11-09 18:05:44 UTC
Permalink
Unfortunately, that cannot be worked around.  That's
guile snarfer that should be fixed.
Thanks.

The link to message in bug-guile:
http://lists.gnu.org/archive/html/bug-guile/2015-11/msg00008.html
--
Regards,
Sergey
Sergey Poznyakoff
2015-11-09 10:24:00 UTC
Permalink
Hi,
Post by Sergey
/usr/bin/ld: shell.o: undefined reference to symbol 'mu_set_signals'
/home/b/RPM/BUILD/mailutils/lib/.libs/libmuaux.so.4: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
Please apply the following patch:

diff --git a/mu/Makefile.am b/mu/Makefile.am
index 42fbd74..e096025 100644
--- a/mu/Makefile.am
+++ b/mu/Makefile.am
@@ -85,6 +85,7 @@ mailutils_LDADD = \
${MU_LIB_MAILER}\
${MU_LIB_AUTH}\
@MU_AUTHLIBS@\
+ ../lib/libmuaux.la\
${MU_LIB_MAILUTILS}\
${LIBMU_DBM} @DBMLIBS@\
@READLINE_LIBS@ @MU_COMMON_LIBRARIES@

Regards,
Sergey
Sergey Poznyakoff
2015-11-09 14:17:58 UTC
Permalink
Post by Sergey Poznyakoff
+ ../lib/libmuaux.la\
It works (with equal changes in frm/ imap4d/ mail/ mimeview/ pop3d/ readmsg/).
Thank you.

Regards,
Sergey
Sergey Poznyakoff
2015-11-10 12:18:11 UTC
Permalink
FYI, I installed the following patch (c9e42006d2dd6eda19c0455c97e6e6e2f4b4a4f6):

diff --git a/configure.ac b/configure.ac
index fa26b6e..cbd7291 100644
--- a/configure.ac
+++ b/configure.ac
@@ -57,7 +57,7 @@ AC_SUBST(mu_aux_dir,'$(top_srcdir)/mu-aux')
AC_SUBST(MU_SIEVE_MODDIR,'$(libdir)/$(PACKAGE)')

AC_SUBST(MU_COMMON_LIBRARIES,'$(LTLIBINTL) $(LTLIBICONV)')
-AC_SUBST(MU_APP_LIBRARIES,'${top_builddir}/libmu_argp/libmu_argp.la ${top_builddir}/libmu_cfg/libmu_cfg.la')
+AC_SUBST(MU_APP_LIBRARIES,'${top_builddir}/libmu_argp/libmu_argp.la ${top_builddir}/libmu_cfg/libmu_cfg.la ${top_builddir}/lib/libmuaux.la')

# There are two sets of include directories: MU_LIB_COMMON_INCLUDES, used
# by the libraries, and MU_APP_COMMON_INCLUDES, which is used by applications.

Regards,
Sergey

Loading...