Re: Build problem with 1.5.6
* Ralf Hildebrandt <Ralf.Hildebrandt@xxxxxxxxxx> [2004-02-07 13:34]:
> menu.o:/usr/src/mutt-1.5.6/menu.c:50: undefined reference to PAIR_NUMBER'
> menu.o:/usr/src/mutt-1.5.6/menu.c:50: undefined reference to pair_content'
> menu.o:/usr/src/mutt-1.5.6/menu.c:51: undefined reference to PAIR_NUMBER'
> menu.o:/usr/src/mutt-1.5.6/menu.c:51: undefined reference to pair_content'
> collect2: ld returned 1 exit status
> make[2]: *** [mutt] Fehler 1
> make[2]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/mutt-1.5.6«
> make[1]: *** [all-recursive] Fehler 1
> make[1]: Verlassen des Verzeichnisses Verzeichnis »/usr/src/mutt-1.5.6«
> make: *** [all-recursive-am] Fehler 2
>
> Compilation worked fine with 1.5.4 and 1.5.5
Yup, pair_content and PAIR_NUMBER were added to menu.c in 1.5.6, but
they aren't defined in S-Lang. A quick workaround would be to ignore the
new code if linking against S-Lang:
---------- 8< ----------
--- menu.c.orig Sun Feb 1 18:10:57 2004
+++ menu.c Sat Feb 7 14:01:34 2004
@@ -46,6 +46,7 @@
if (*s < M_TREE_MAX)
{
if (do_color)
+#ifndef USE_SLANG_CURSES
{
pair_content(PAIR_NUMBER(ColorDefs[MT_COLOR_TREE]), &f1, &b1);
pair_content(PAIR_NUMBER(attr), &f2, &b2);
@@ -52,6 +53,9 @@
if (b1 == b2)
SETCOLOR (MT_COLOR_TREE);
}
+#else
+ SETCOLOR (MT_COLOR_TREE);
+#endif
while (*s && *s < M_TREE_MAX)
{
switch (*s)
---------- 8< ----------
Holger
--
PGP fingerprint: F1F0 9071 8084 A426 DD59 9839 59D3 F3A1 B8B5 D3DE