Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 103644 - sci-mathematics/gturing-0.1.1 - error while compiling
Summary: sci-mathematics/gturing-0.1.1 - error while compiling
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-24 17:43 UTC by Alberto Santini
Modified: 2005-08-26 06:09 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alberto Santini 2005-08-24 17:43:54 UTC
Running "emerge gturing" will result in this error:

gturing.c:865: error: `LC_ALL' undeclared (first use in this function)
gturing.c:865: error: (Each undeclared identifier is reported only once
gturing.c:865: error: for each function it appears in.)

The error is caused by a missing inclusion in gturing.c file. i wrote the 
following patch to solve the problem:

gturing.c.diff:
*****************************

28a29
> #include <locale.h>

*****************************

happy turing ;)


Reproducible: Always
Steps to Reproduce:
1. emerge gturing

Actual Results:  
emerge gives this error:

gturing.c:865: error: `LC_ALL' undeclared (first use in this function)
gturing.c:865: error: (Each undeclared identifier is reported only once
gturing.c:865: error: for each function it appears in.)
[...]
make[3]: *** [gturing.o] Error 1
make[3]: *** Waiting for unfinished jobs....
[...]
make[3]: Leaving directory `/var/tmp/portage/gturing-0.1.1/work/gturing-0.1.1/
src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/gturing-0.1.1/work/gturing-0.1.1/
src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/gturing-0.1.1/work/gturing-0.1.1'
make: *** [all-recursive-am] Error 2

!!! ERROR: sci-mathematics/gturing-0.1.1 failed.
!!! Function src_compile, Line 18, Exitcode 2
!!! (no error message)
!!! If you need support, post the topmost build error, NOT this status message.



Expected Results:  
The program should have merged succesfully

gcc version: 3.4.4
Comment 1 Olivier Fisette (RETIRED) gentoo-dev 2005-08-25 17:22:10 UTC
Thanks for reporting. However, I commited a patch a few days ago to fix this.   
Either my patch is not working on your system, or your Portage tree is out of   
sync. Please run "emerge --sync" and try again (as I think this bug has   
already been fixed) and provide feedback. Thanks.  
Comment 2 Alberto Santini 2005-08-26 06:09:07 UTC
well.. i ran emerge --sync and emerge gturing and it worked flawlessly... good 
work ;)