This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: vsnprintf error compiling
- From: Kizito Porta Balanyà <kfeina at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 25 Aug 2015 17:41:23 +0200
- Subject: Re: vsnprintf error compiling
- Authentication-results: sourceware.org; auth=none
- References: <CAO2ddnZ-kj0ZukKopMaTzt8kHzLQWqMRLCTi7d8_z2+6tiq2vw at mail dot gmail dot com> <55DC602C dot 20901 at redhat dot com>
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@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 <stdarg.h>
| #include <stdio.h>
| 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 <eblake@redhat.com>:
> 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