X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type :content-transfer-encoding; q=dns; s=default; b=lYc2wrxg9q6Hlskm f9HfHrWbJJuXRlccVzvzvpiHnQKUq7iCpOD4aTR/sn9DjuDuS6AnEdWoN7SWYVaS yxj10kgf/8wLsoO9e9RmoCHQMlj4lslk+45VpBC3oR9m9r+FUD1XnYnl9XTOvtvA 7qPxH2btQYo3TDFYJq6WijbgClw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type :content-transfer-encoding; s=default; bh=PWQ+Cx0T1oMaCrPqAIWwdg 78wXg=; b=pZMua4aLoRqEqVUoVLe6ac48pkHeMXigd01Pn9TulgsyRdqgY01j7M 0RgKSsr57naV3d9mj668KUlEhxKY1EV8lMPyMkOm6cDEXNPaFv4tv6l1+v8k2ytS Mh2Di861W+EMdAxHmFB6RD+DBkVGJa5EWo8CwUql+7dwF0eEIiVfQ= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.8 required=5.0 tests=AWL,BAYES_20,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-ig0-f175.google.com MIME-Version: 1.0 X-Received: by 10.50.27.102 with SMTP id s6mr3349993igg.23.1440517283865; Tue, 25 Aug 2015 08:41:23 -0700 (PDT) In-Reply-To: <55DC602C.20901@redhat.com> References: <55DC602C DOT 20901 AT redhat DOT com> Date: Tue, 25 Aug 2015 17:41:23 +0200 Message-ID: Subject: Re: vsnprintf error compiling From: =?UTF-8?Q?Kizito_Porta_Balany=C3=A0?= To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t7PFfdIa028696 Hello, I attach what I think that is relevant: configure:12469: ./conftest.exe configure:12469: $? = 0 configure:12470: result: yes configure:12483: result: configure:12487: checking vsnprintf is c99 conformant configure:12507: gcc -o conftest.exe -g -O2 conftest.c -lpthread >&5 /usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot open output file conftest.exe: Permission denied collect2: error: ld returned 1 exit status configure:12507: $? = 1 configure: program exited with status 1 configure: failed program was: | /* confdefs.h */ | #define PACKAGE_NAME "libmonit" | #define PACKAGE_TARNAME "libmonit" | #define PACKAGE_VERSION "1.0" | #define PACKAGE_STRING "libmonit 1.0" | #define PACKAGE_BUGREPORT "monit-dev AT tildeslash DOT com" | #define PACKAGE_URL "" | #define PACKAGE "libmonit" | #define VERSION "1.0" | #define STDC_HEADERS 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_STAT_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_MEMORY_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_INTTYPES_H 1 | #define HAVE_STDINT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_DLFCN_H 1 | #define LT_OBJDIR ".libs/" | #define HAVE_LIBPTHREAD 1 | #define STDC_HEADERS 1 | #define HAVE_CTYPE_H 1 | #define HAVE_ERRNO_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_PTHREAD_H 1 | #define HAVE_SETJMP_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDIO_H 1 | #define HAVE_STRING_H 1 | #define HAVE_STRING_H 1 | #define HAVE_STRINGS_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_SYS_DIRENT_H 1 | #define HAVE_POLL_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_IOCTL_H 1 | #define HAVE_IFADDRS_H 1 | #define HAVE_NETINET_IN_H 1 | #define HAVE_NET_IF_H 1 | #define HAVE_UINT32_T 1 | /* end confdefs.h. */ | #include | #include | int | main () | { | char t[1]; va_list ap; int n = vsnprintf(t, 1, "hello", ap); if(n == 5) return 0;return 1; | ; | return 0; | } configure:12511: error: in `/tmp/monit_compilation/monit-5.14/libmonit': configure:12513: error: vsnprintf does not conform to c99 See `config.log' for more details Any help is welcome. Thanks a lot for your time. 2015-08-25 14:31 GMT+02:00 Eric Blake : > On 08/25/2015 05:29 AM, Kizito Porta BalanyĆ  wrote: >> Hello, >> >> I'm trying to build the new version of monit (5.14) in cygwin, but I >> get the following error executing configure: >> >> autoreconf -i -f && automake -acf && ./configure >> >> checking vsnprintf is c99 conformant... configure: error: in >> `/tmp/monit-5.14/libmonit': >> configure: error: vsnprintf does not conform to c99 > > Show the relevant portion of config.log, that shows the program that > monit attempted to compile, and the compiler error. Most likely it is a > bug in monit's configure.ac, and not in cygwin. > >> >> Is cygwin GCC c99 conformant? I'm totally lost, perhaps what I say has >> no sense. > > Yes, cygwin's compilation of vsnprintf is supposed to be c99 compliant. > But without seeing why monit claims it is not, I can't state > definitively if that is the case, or if monit has turned up an actual bug. > > -- > Eric Blake eblake redhat com +1-919-301-3266 > Libvirt virtualization library http://libvirt.org > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple