Re: [dev] [st] Cannot compile latest HEAD, nor 0.4.1

From: Alexander Huemer <alexander.huemer_AT_xx.vu>
Date: Mon, 25 Nov 2013 16:59:08 +0100

On Mon, Nov 25, 2013 at 04:32:28PM +0100, Matthias Beyer wrote:
> Hi,
>
> I'm watching your projects since a couple of months.

From the rest of the email it seems like you not only watched it, but
also used st.

> Today I tried to update st (i replaced the less important parts with
> "(...)" and added two blank lines before each prompt for readability):
>
> [0][st] (master) -> git remote update
> (...)

Is '[0][st] (master) ->' your shell prompt? That's highly unlikely.
I suggest to use '$ ' or '% ' matching your shell for PS1 in a terminal
hardcopy when you request support. Everything else is very difficult to
parse.

>
> [0][st] (master) -> git merge origin/master --ff-only
> (...)
>
>
> [0][st] (master) -> make
> st build options:
> CFLAGS = -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os -I. -I/usr/include -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2 -DVERSION="0.4.1" -D_BSD_SOURCE -D_XOPEN_SOURCE=600
> LDFLAGS = -g -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -lutil -lXext -lXft -lfontconfig -lfreetype -lfreetype
> CC = cc
> CC st.c
> st.c: In Funktion »tputc«:
> st.c:2397:8: Fehler: »bellvolume« nicht deklariert (erste Benutzung in dieser Funktion)
> if (bellvolume)
> ^
> st.c:2397:8: Anmerkung: jeder nicht deklarierte Bezeichner wird nur einmal für jede Funktion, in der er vorkommt, gemeldet
> Makefile:21: recipe for target 'st.o' failed
> make: *** [st.o] Error 1

The diagnostics of your compiler are not in english, which is the
language of this mailing list. I'd recommend to set LANG=C before
running the commands you later want to include as a hardcopy in a
support request.

> [0][st] (master) -> git tag
> 0.1
> 0.1.1
> 0.2
> 0.2.1
> 0.3
> 0.4
> 0.4.1
>
>
> [0][st] (master) -> git checkout 0.4.1
> (...)
>
>
> [0][st] ((losgelöst) -> make
> st build options:
> CFLAGS = -g -std=c99 -pedantic -Wall -Wvariadic-macros -Os -I. -I/usr/include -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/freetype2 -DVERSION="0.4.1" -D_BSD_SOURCE -D_XOPEN_SOURCE=600
> LDFLAGS = -g -L/usr/lib -lc -L/usr/X11R6/lib -lX11 -lutil -lXext -lXft -lfontconfig -lfreetype -lfreetype
> CC = cc
> CC st.c
> In file included from st.c:268:0:
> config.h:93:1: Fehler: unbekannter Typname: »Mousekey«
> static Mousekey mshortcuts[] = {
> ^
> config.h:95:2: Warnung: geschweifte Klammern um Skalar-Initialisierung [standardmäßig aktiviert]
> { Button4, XK_ANY_MOD, "\031"},
> ^
> config.h:95:2: Warnung: (nahe der Initialisierung für »mshortcuts[0]«) [standardmäßig aktiviert]
> config.h:95:2: Warnung: Elementüberschreitung in Skalarinitialisierung [standardmäßig aktiviert]
> config.h:95:2: Warnung: (nahe der Initialisierung für »mshortcuts[0]«) [standardmäßig aktiviert]
> config.h:95:2: Warnung: Elementüberschreitung in Skalarinitialisierung [standardmäßig aktiviert]
> config.h:95:2: Warnung: (nahe der Initialisierung für »mshortcuts[0]«) [standardmäßig aktiviert]
> config.h:96:2: Warnung: geschweifte Klammern um Skalar-Initialisierung [standardmäßig aktiviert]
> { Button5, XK_ANY_MOD, "\005"},
> ^
> config.h:96:2: Warnung: (nahe der Initialisierung für »mshortcuts[1]«) [standardmäßig aktiviert]
> config.h:96:2: Warnung: Elementüberschreitung in Skalarinitialisierung [standardmäßig aktiviert]
> config.h:96:2: Warnung: (nahe der Initialisierung für »mshortcuts[1]«) [standardmäßig aktiviert]
> config.h:96:2: Warnung: Elementüberschreitung in Skalarinitialisierung [standardmäßig aktiviert]
> config.h:96:2: Warnung: (nahe der Initialisierung für »mshortcuts[1]«) [standardmäßig aktiviert]
> config.h:21:13: Warnung: »worddelimiters« definiert, aber nicht verwendet [-Wunused-variable]
> static char worddelimiters[] = " ";
> ^
> config.h:38:21: Warnung: »blinktimeout« definiert, aber nicht verwendet [-Wunused-variable]
> static unsigned int blinktimeout = 800;
> ^
> config.h:93:17: Warnung: »mshortcuts« definiert, aber nicht verwendet [-Wunused-variable]
> static Mousekey mshortcuts[] = {
> ^
> Makefile:21: recipe for target 'st.o' failed
> make: *** [st.o] Error 1
>
>
> [0][st] ((losgelöst) ->
>
>
> I'm not familiar with the code, just thought you may want to know
> this!

Did you look at the problem yourself?
Did you try to understand what the error messages mean?

Your problem is an outdated config.h.

Kind regards,
-Alex
Received on Mon Nov 25 2013 - 16:59:08 CET

This archive was generated by hypermail 2.3.0 : Mon Nov 25 2013 - 17:00:19 CET