Subject: bug#14644: emacsclient.c fails to compile

From: Eli Zaretskii <[email-masked]>
Date: Tue, 18 Jun 2013 19:07:24 +0300

> Date: Tue, 18 Jun 2013 00:59:19 -0700
> From: Paul Eggert <[email-masked]>
> 
> Anyway, I'm surprised that lib/getopt.h is built on your platform,
> as the stock getopt.h should be OK.
> Could you please send the part of
> config.log that talks about getopt?
> Mine says the following (Fedora 17):
> [...]
> configure:19163: checking for working GNU getopt function
> configure:19384: gcc -std=gnu99 -o conftest -g3 -O2     -Wl,-znocombreloc  conftest.c -lpthread  >&5 
> configure:19384: $? = 0
> configure:19384: ./conftest
> configure:19384: $? = 0
> configure:19400: result: yes

FWIW, on this system:

  Linux fencepost.gnu.org 2.6.32-47-server #1trisquel3 SMP Thu May 16 07:52:30 UTC 2013 x86_64 GNU/Linux

with this GCC:

  gcc (Ubuntu 4.4.3-4ubuntu5.1) 4.4.3

the test for "working GNU getopt function" returns 1, although I see
no compilation problems with emacsclient.c.