Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 86457 - Ion fails to compile because of errors in ISO C.
Summary: Ion fails to compile because of errors in ISO C.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tom Payne (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-23 19:58 UTC by Francisco José Cañizares Santofimia
Modified: 2005-07-10 08:20 UTC (History)
1 user (show)

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


Attachments
New patch for ion (including old patch, of course). (ion-20020207-gentoo.diff,8.22 KB, patch)
2005-03-23 19:59 UTC, Francisco José Cañizares Santofimia
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Francisco José Cañizares Santofimia 2005-03-23 19:58:49 UTC
Ion fails to compile because of errors in ISO C in the files under src/: 
clientwin.c
function.c
main.c
modules.c
pointer.c

Reproducible: Always
Steps to Reproduce:
1.Emerge info.
2.
3.

Actual Results:  
Fails to compile.

Expected Results:  
IT should compile.
Comment 1 Francisco José Cañizares Santofimia 2005-03-23 19:59:49 UTC
Created attachment 54304 [details, diff]
New patch for ion (including old patch, of course).
Comment 2 Tom Payne (RETIRED) gentoo-dev 2005-07-10 02:59:38 UTC
Er, your patch simply seems to comment out all the offending lines of code!
Those lines are rather important, and removing them would surely break ion!

The correct fix in this case is likely to be turn off the -pedantic flag to the
compiler.

I haven't seen these errors before, please post them here.

Thanks,

Tom
Comment 3 Francisco José Cañizares Santofimia 2005-07-10 06:53:32 UTC
Yes, I know that my patch simply comments out the "problematic" lines, but here
is the output of compiling ion without the patch:
gcc -g -O2 -W -Wimplicit -Wreturn-type -Wswitch -Wcomment -Wtrigraphs -Wformat
-Wchar-subscripts -Wparentheses -pedantic-errors -Wuninitialized
-DETCDIR=\"/etc/X11\" -I../libtu/include -I/usr/X11R6/include    -c clientwin.c
-o clientwin.o
clientwin.c: In function `manage_clientwin':
clientwin.c:345: error: ISO C forbids conversion of object pointer to function
pointer type
clientwin.c:345: error: ISO C forbids conversion of object pointer to function
pointer type
make: *** [clientwin.o] Error 1
make[1]: *** [clientwin.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/ion-20020207-r1/work/ion-20020207/src'
make: *** [subdirs] Error 2
Comment 4 Tom Payne (RETIRED) gentoo-dev 2005-07-10 08:17:15 UTC
OK, the correct fix is to delete -pedantic-errors from the compiler flags.
Comment 5 Tom Payne (RETIRED) gentoo-dev 2005-07-10 08:20:03 UTC
Now in CVS.