<<< Date Index >>>     <<< Thread Index >>>

mutt_md5



Hi,

The change

"Build local md5 tool for hcachever.sh. Closes #3025."

broke my local builds. The later change

"hcversion.h depends on new mutt_md5 tool"

makes situation better, but not completely (it does not link mutt_md5,
since it requires libintl.a, which is not yet ready when mutt_md5 is
being built).

================================= Snip =================================
/usr/dist/share/sunstudio_i386/SUNWspro/bin/cc -DMD5UTIL -fast -xarch=generic 
-Dxxx -I/tmp/vm156888/build/gdbm-1.8.3/include  -ldl 
-L/tmp/vm156888/build/ncurse
s-5.6/lib -L/tmp/vm156888/build/openssl-0.9.8g/lib 
-L/tmp/vm156888/build/gdbm-1.8.3/lib -L/tmp/vm156888/build/libiconv-1.12/lib 
-L/tmp/vm156888/build/libidn-1.
7/lib -o mutt_md5 mutt_md5-md5.o setenv.o strsep.o ./intl/libintl.a -liconv 
-lidn -lsocket -lnsl
ld: fatal: file ./intl/libintl.a: open failed: No such file or directory
ld: fatal: File processing errors. No output written to mutt_md5
make: *** [mutt_md5] Error 1
========================================================================

I'm attaching change from my local repository which fixes the issue for
me.

Thanks for mutt
-- 
        Vlad
diff --git a/Makefile.am b/Makefile.am
--- a/Makefile.am
+++ b/Makefile.am
@@ -83,6 +83,7 @@
 
 mutt_md5_SOURCES = md5.c
 mutt_md5_CFLAGS = -DMD5UTIL
+mutt_md5_LDADD = @LIBOBJS@
 
 noinst_PROGRAMS = $(MUTT_MD5)
 
@@ -119,7 +120,7 @@
        cmp -s reldate.h.tmp reldate.h || cp reldate.h.tmp reldate.h; \
        rm reldate.h.tmp
 
-hcversion.h: $(srcdir)/mutt.h $(srcdir)/rfc822.h hcachever.sh mutt_md5$(EXEEXT)
+hcversion.h: $(srcdir)/mutt.h $(srcdir)/rfc822.h hcachever.sh $(MUTT_MD5)
        ( echo '#include "config.h"'; echo '#include "mutt.h"'; ) \
        | $(CPP) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) 
$(CPPFLAGS) - | sh ./hcachever.sh hcversion.h
 

Attachment: pgpk5LUIvJzTT.pgp
Description: PGP signature