git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: compiling master fails

From
Stefan Beller <sbeller@google.com>
Date
Feb 26, 2015, 20:52 UTC
Message-ID
<CAGZ79kZvVFTGASbsx6vZXvYJUwLjgqDeCGrN0Cz=3pjW58Qbyw@mail.gmail.com>
In-Reply-To
<CAGZ79kaRJg1QzFSyj0iAtUn2nUFxzZRy7BsrYC2++kaN0RD1Aw@mail.gmail.com>

Removing config.mak makes it compile again. config.mak contained: CFLAGS += -Wall -g -rdynamic -O0 # CFLAGS += -Wextra # CFLAGS += -Werror CFLAGS += -Wno-format-zero-length CFLAGS += -Wdeclaration-after-statement CFLAGS += -Wpointer-arith CFLAGS += -Wstrict-prototypes CFLAGS += -Wold-style-declaration # CFLAGS += -flto # CFLAGS += -fwhole-program CC = /usr/lib/gcc-snapshot/bin/gcc

Mind that compiling did work with this exact version of config.mak, (I did not touch it for a few weeks now), so I suspect new changes in changes to break the compilation.

On Thu, Feb 26, 2015 at 12:48 PM, Stefan Beller <sbeller@google.com> wrote:
Show 14 quoted lines
> On Post 2.3 cyle (batch #5) (v2.3.1-167-g7f4ba4b)
>
>     CC http.o
> http.c: In function 'get_preferred_languages':
> http.c:1021:2: warning: implicit declaration of function 'setlocale'
> [-Wimplicit-function-declaration]
>   retval = setlocale(LC_MESSAGES, NULL);
>   ^
> http.c:1021:21: error: 'LC_MESSAGES' undeclared (first use in this function)
>   retval = setlocale(LC_MESSAGES, NULL);
>                      ^
> http.c:1021:21: note: each undeclared identifier is reported only once
> for each function it appears in
> make: *** [http.o] Error 1
Previous: Stefan BellerNext: Stefan Beller
Message 2 of 4 in “compiling master fails”
  1. Stefan BellerFeb 26, 2015
  2. Stefan BellerFeb 26, 2015
  3. Stefan BellerFeb 26, 2015
  4. Jonathan NiederFeb 26, 2015

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.