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.
Created attachment 54304 [details, diff] New patch for ion (including old patch, of course).
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
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
OK, the correct fix is to delete -pedantic-errors from the compiler flags.
Now in CVS.