public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* vsnprintf error compiling
@ 2015-08-25 11:29 Kizito Porta Balanyà
  2015-08-25 12:31 ` Eric Blake
  0 siblings, 1 reply; 6+ messages in thread
From: Kizito Porta Balanyà @ 2015-08-25 11:29 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: vsnprintf error compiling
  2015-08-25 11:29 vsnprintf error compiling Kizito Porta Balanyà
@ 2015-08-25 12:31 ` Eric Blake
  2015-08-25 15:41   ` Kizito Porta Balanyà
  0 siblings, 1 reply; 6+ messages in thread
From: Eric Blake @ 2015-08-25 12:31 UTC (permalink / raw)
  To: cygwin; +Cc: kfeina

[-- Attachment #1: Type: text/plain, Size: 1011 bytes --]

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: vsnprintf error compiling
  2015-08-25 12:31 ` Eric Blake
@ 2015-08-25 15:41   ` Kizito Porta Balanyà
  2015-08-25 16:00     ` Marco Atzeri
  0 siblings, 1 reply; 6+ messages in thread
From: Kizito Porta Balanyà @ 2015-08-25 15:41 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: vsnprintf error compiling
  2015-08-25 15:41   ` Kizito Porta Balanyà
@ 2015-08-25 16:00     ` Marco Atzeri
  2015-08-25 16:25       ` cyg Simple
  0 siblings, 1 reply; 6+ messages in thread
From: Marco Atzeri @ 2015-08-25 16:00 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: vsnprintf error compiling
  2015-08-25 16:00     ` Marco Atzeri
@ 2015-08-25 16:25       ` cyg Simple
  2015-08-25 16:56         ` BGINFO4X
  0 siblings, 1 reply; 6+ messages in thread
From: cyg Simple @ 2015-08-25 16:25 UTC (permalink / raw)
  To: cygwin

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: vsnprintf error compiling
  2015-08-25 16:25       ` cyg Simple
@ 2015-08-25 16:56         ` BGINFO4X
  0 siblings, 0 replies; 6+ messages in thread
From: BGINFO4X @ 2015-08-25 16:56 UTC (permalink / raw)
  To: cygwin

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 <cygsimple@gmail.com>:
> 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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-08-25 16:56 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-25 11:29 vsnprintf error compiling Kizito Porta Balanyà
2015-08-25 12:31 ` Eric Blake
2015-08-25 15:41   ` Kizito Porta Balanyà
2015-08-25 16:00     ` Marco Atzeri
2015-08-25 16:25       ` cyg Simple
2015-08-25 16:56         ` BGINFO4X

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).