From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 111920 invoked by alias); 25 Aug 2015 15:41:28 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 111905 invoked by uid 89); 25 Aug 2015 15:41:27 -0000 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 Received: from mail-ig0-f175.google.com (HELO mail-ig0-f175.google.com) (209.85.213.175) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Tue, 25 Aug 2015 15:41:26 +0000 Received: by igui7 with SMTP id i7so14579788igu.1 for ; Tue, 25 Aug 2015 08:41:24 -0700 (PDT) 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) Received: by 10.79.110.66 with HTTP; Tue, 25 Aug 2015 08:41:23 -0700 (PDT) In-Reply-To: <55DC602C.20901@redhat.com> References: <55DC602C.20901@redhat.com> Date: Tue, 25 Aug 2015 15:41:00 -0000 Message-ID: Subject: Re: vsnprintf error compiling From: =?UTF-8?Q?Kizito_Porta_Balany=C3=A0?= To: cygwin@cygwin.com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-SW-Source: 2015-08/txt/msg00429.txt.bz2 Hello, I attach what I think that is relevant: configure:12469: ./conftest.exe configure:12469: $? =3D 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: $? =3D 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@tildeslash.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 =3D vsnprintf(t, 1, "hello", ap); if(n =3D=3D 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=C3=A0 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