You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by "Devan Goodwin (JIRA)" <ji...@apache.org> on 2008/07/21 13:53:31 UTC
[jira] Created: (THRIFT-91) Compile Issues (INT_MAX undefined)
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
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.
[jira] Resolved: (THRIFT-91) Compile Issues (INT_MAX undefined)
Posted by "David Reiss (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
David Reiss resolved THRIFT-91.
-------------------------------
Resolution: Fixed
> 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.
[jira] Commented: (THRIFT-91) Compile Issues (INT_MAX undefined)
Posted by "David Reiss (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (THRIFT-91) Compile Issues (INT_MAX undefined)
Posted by "Devan Goodwin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/THRIFT-91?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Devan Goodwin updated THRIFT-91:
--------------------------------
Attachment: thrift-20080718-intmaxfix.patch
Not certain this is the correct fix, I'm not great with C++ or autotools, but submitting just the same.
> 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.