Geda* Will Not Compile On Fedora 32
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gEDA |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Hi. If nobody knows, Fedora has orphanated Geda*, because some problems with maintainer. Hence, we have to compile majority of these tools, if one needs gEDA working again. It is possible to install, via dnf, only pcb[-rnd] and gerb*. Under Fedora 31, compiling succeeds; via ´32, it bails.
./configure does the trick, but when make[ing], occurs a bunch of warnings and these, finally, are treated as errors.
An excerpt:
-------
gschem_page_view.c: In function ‘gschem_
gschem_
596 | gschem_
| ^~~~~~~
597 | screen_left,
| ~~~~~~~~~~~~
598 | screen_top,
| ~~~~~~~~~~~
599 | screen_right,
| ~~~~~~~~~~~~~
600 | screen_bottom);
| ~~~~~~~~~~~~~~
gschem_
gschem_
gschem_
cc1: some warnings being treated as errors
make[4]: *** [Makefile:1561: gschem-
make[4]: Saindo do diretório '/home/
make[3]: *** [Makefile:736: all] Erro 2
make[3]: Saindo do diretório '/home/
make[2]: *** [Makefile:473: all-recursive] Erro 1
make[2]: Saindo do diretório '/home/
make[1]: *** [Makefile:548: all-recursive] Erro 1
-------
Aborts! I tried under gcc and clang. No help.
-------
gcc version 10.1.1
GNU Make 4.3
Any clue?
Hi,
thank you for reporting this. Indeed, I did not know; is there anything I can do to help you get gEDA/gaf back into Fedora?
The errors appear to be correct. There is a case (view != NULL, view->page == NULL) where screen_* are indeed uninitialized. I don't know why this compiles on Debian and Fedore 31, but not on Fedora 32; I guess the checks have become stricter in more recent compiler versions.
You can circumvent the problem by removing `$Werror_ maybe_uninitial ized_IF_ SUPPORTED' from configure.ac. However, ideally, the underlying problems should be fixed. In order to do that, could you please send me the full compiler output?
Roland