You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "David Reiss (JIRA)" <ji...@apache.org> on 2008/07/21 21:01:34 UTC

[jira] Commented: (THRIFT-91) Compile Issues (INT_MAX undefined)

    [ https://issues.apache.org/jira/browse/THRIFT-91?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615368#action_12615368 ] 

David Reiss commented on THRIFT-91:
-----------------------------------

I'll try to grab an fc9 environment so I can test this out.

> Compile Issues (INT_MAX undefined)
> ----------------------------------
>
>                 Key: THRIFT-91
>                 URL: https://issues.apache.org/jira/browse/THRIFT-91
>             Project: Thrift
>          Issue Type: Bug
>          Components: Compiler (C++)
>    Affects Versions: 0.1
>         Environment: Fedora 9, x86_64
>            Reporter: Devan Goodwin
>            Priority: Minor
>             Fix For: 0.1
>
>         Attachments: thrift-20080718-intmaxfix.patch
>
>
> Ran into this error compiling latest trunk source on my system:
> g++ -DHAVE_CONFIG_H -I. -I../..    -Wall -I./src -I/usr/include -g -O2 -MT thrift-thrifty.o -MD -MP -MF .deps/thrift-thrifty.Tpo -c -o thrift-thrifty.o `test -f 'thrifty.cc' || echo './'`thrifty.cc
> thrifty.yy: In function 'int yyparse()':
> thrifty.yy:502: error: 'INT_MAX' was not declared in this scope
> make[3]: *** [thrift-thrifty.o] Error 1
> make[3]: Leaving directory `/home/dev/src/thrift/compiler/cpp'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home/dev/src/thrift/compiler/cpp'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/dev/src/thrift'
> make: *** [all] Error 2
> Checked in with #thrift on freenode and was informed it was likely just a missing include for <limits.h>. This indeed fixes the problem, so attaching patch to this effect.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.