vsnprintf error compiling

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

vsnprintf error compiling

Kizito Porta Balanyà
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

Is cygwin GCC c99 conformant? I'm totally lost, perhaps what I say has
no sense.

Any help is welcome.

Thanks a lot for your time.

Regards.

--
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

Reply | Threaded
Open this post in threaded view
|

Re: vsnprintf error compiling

Eric Blake (cygwin)-2
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


signature.asc (617 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: vsnprintf error compiling

Kizito Porta Balanyà
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 "[hidden email]"
| #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 <[hidden email]>:

> 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

Reply | Threaded
Open this post in threaded view
|

Re: vsnprintf error compiling

marco atzeri-4
On 25/08/2015 17:41, Kizito Porta Balanyà wrote:

> 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

this looks suspicious. Antivirus interference ?
Or wrong permission in the tree.



Regards
Marco



--
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

Reply | Threaded
Open this post in threaded view
|

Re: vsnprintf error compiling

cyg Simple
On 8/25/2015 12:00 PM, Marco Atzeri wrote:

> On 25/08/2015 17:41, Kizito Porta Balanyà wrote:
>> 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
>
> this looks suspicious. Antivirus interference ?
> Or wrong permission in the tree.

I suspect Antivirus having the newly created file open.  Configure is
faster than the AV and creates, uses, removes the same file names over
and over again.  You might be able to configure the AV to ignore your
working environment.

--
cyg Simple

--
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

Reply | Threaded
Open this post in threaded view
|

Re: vsnprintf error compiling

BGINFO4X
Yes, you are right. Antivirus was causing the problem.

Sorry for the inconvenience.

Thanks a lot for your time.

2015-08-25 18:25 GMT+02:00 cyg Simple <[hidden email]>:

> On 8/25/2015 12:00 PM, Marco Atzeri wrote:
>> On 25/08/2015 17:41, Kizito Porta Balanyà wrote:
>>> 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
>>
>> this looks suspicious. Antivirus interference ?
>> Or wrong permission in the tree.
>
> I suspect Antivirus having the newly created file open.  Configure is
> faster than the AV and creates, uses, removes the same file names over
> and over again.  You might be able to configure the AV to ignore your
> working environment.
>
> --
> cyg Simple
>
> --
> 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
>

--
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