[jira] [Commented] (XERCESC-2110) Build failure on FreeBSD with Autoconf

2017-08-06 Thread Scott Cantor (JIRA)

[ 
https://issues.apache.org/jira/browse/XERCESC-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16115869#comment-16115869
 ] 

Scott Cantor commented on XERCESC-2110:
---

I'll let you commit the change since you have to test the other one anyway. One 
note is that I don't have an alternative for gmtime (and I never ran into a 
case where it wasn't available). If you add a check for that, you would have to 
change the XMLDateTime code to check for that macro.

> Build failure on FreeBSD with Autoconf
> --
>
> Key: XERCESC-2110
> URL: https://issues.apache.org/jira/browse/XERCESC-2110
> Project: Xerces-C++
>  Issue Type: Bug
>  Components: Build
>Affects Versions: 3.2.0
> Environment: FreeBSD 11.1 with clang 4.0.0
>Reporter: Roger Leigh
>Assignee: Roger Leigh
>
> Looks like illegal arithmetic with time_t?
> {{{
> make  all-am
>   CXX  xercesc/util/XMLDateTime.lo
> ../../xerces-c-3.2.0/src/xercesc/util/XMLDateTime.cpp:571:27: error: invalid 
> operands to binary expression ('time_t' (aka 'long') and 'char *(*)(int, 
> int)')
> return mktime() - timezone;
>~~ ^ 
> 1 error generated.
> }}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[jira] [Commented] (XERCESC-2110) Build failure on FreeBSD with Autoconf

2017-08-06 Thread Scott Cantor (JIRA)

[ 
https://issues.apache.org/jira/browse/XERCESC-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16115857#comment-16115857
 ] 

Scott Cantor commented on XERCESC-2110:
---

I added checks for timegm and gmtime_r IIRC. I didn't know I had to add them in 
two places, it's only in one spot with autoconf.

> Build failure on FreeBSD with Autoconf
> --
>
> Key: XERCESC-2110
> URL: https://issues.apache.org/jira/browse/XERCESC-2110
> Project: Xerces-C++
>  Issue Type: Bug
>  Components: Build
>Affects Versions: 3.2.0
> Environment: FreeBSD 11.1 with clang 4.0.0
>Reporter: Roger Leigh
>
> Looks like illegal arithmetic with time_t?
> {{{
> make  all-am
>   CXX  xercesc/util/XMLDateTime.lo
> ../../xerces-c-3.2.0/src/xercesc/util/XMLDateTime.cpp:571:27: error: invalid 
> operands to binary expression ('time_t' (aka 'long') and 'char *(*)(int, 
> int)')
> return mktime() - timezone;
>~~ ^ 
> 1 error generated.
> }}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[jira] [Commented] (XERCESC-2110) Build failure on FreeBSD with Autoconf

2017-08-05 Thread Roger Leigh (JIRA)

[ 
https://issues.apache.org/jira/browse/XERCESC-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16115330#comment-16115330
 ] 

Roger Leigh commented on XERCESC-2110:
--

Potential fix here: https://github.com/rleigh-codelibre/xerces-c/commits/timegm

> Build failure on FreeBSD with Autoconf
> --
>
> Key: XERCESC-2110
> URL: https://issues.apache.org/jira/browse/XERCESC-2110
> Project: Xerces-C++
>  Issue Type: Bug
>  Components: Build
>Affects Versions: 3.2.0
> Environment: FreeBSD 11.1 with clang 4.0.0
>Reporter: Roger Leigh
>
> Looks like illegal arithmetic with time_t?
> {{{
> make  all-am
>   CXX  xercesc/util/XMLDateTime.lo
> ../../xerces-c-3.2.0/src/xercesc/util/XMLDateTime.cpp:571:27: error: invalid 
> operands to binary expression ('time_t' (aka 'long') and 'char *(*)(int, 
> int)')
> return mktime() - timezone;
>~~ ^ 
> 1 error generated.
> }}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org



[jira] [Commented] (XERCESC-2110) Build failure on FreeBSD with Autoconf

2017-08-05 Thread Roger Leigh (JIRA)

[ 
https://issues.apache.org/jira/browse/XERCESC-2110?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16115321#comment-16115321
 ] 

Roger Leigh commented on XERCESC-2110:
--

This is due to HAVE_TIMEGM being missing from the config.h.cmake.in header.  
Are there any other potentially missing values?

> Build failure on FreeBSD with Autoconf
> --
>
> Key: XERCESC-2110
> URL: https://issues.apache.org/jira/browse/XERCESC-2110
> Project: Xerces-C++
>  Issue Type: Bug
>  Components: Build
>Affects Versions: 3.2.0
> Environment: FreeBSD 11.1 with clang 4.0.0
>Reporter: Roger Leigh
>
> Looks like illegal arithmetic with time_t?
> {{{
> make  all-am
>   CXX  xercesc/util/XMLDateTime.lo
> ../../xerces-c-3.2.0/src/xercesc/util/XMLDateTime.cpp:571:27: error: invalid 
> operands to binary expression ('time_t' (aka 'long') and 'char *(*)(int, 
> int)')
> return mktime() - timezone;
>~~ ^ 
> 1 error generated.
> }}}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: c-dev-unsubscr...@xerces.apache.org
For additional commands, e-mail: c-dev-h...@xerces.apache.org