Description of problem: I'm trying to build xppaut which needs to link with f2c at build time. However, I run into what seems to be a rather common issue: /usr/lib/gcc/x86_64-redhat-linux/5.1.1/../../../../lib64/libf2c.so: undefined reference to `MAIN__' Googling suggests that the solution is to link with a static library libf2c.a instead of the shared object, however the fedora package does not provide the static library. Would it please be possible to provide a static library too? http://byeworld.blogspot.co.uk/2009/01/libf2cso-undefined-reference-to-main.html Version-Release number of selected component (if applicable): f2c-libs-20110801-7.fc22.x86_64 f2c-20110801-7.fc22.x86_64 How reproducible: Always Steps to Reproduce: 1. git clone git:sanjayankur31/xppaut.git 2. cd xppaut 3. mkdir build; cd build; cmake ../; make Actual results: [ 99%] Building C object src/CMakeFiles/xppaut.dir/histogram.c.o [100%] Linking C executable xppaut /usr/lib/gcc/x86_64-redhat-linux/5.1.1/../../../../lib64/libf2c.so: undefined reference to `MAIN__' collect2: error: ld returned 1 exit status src/CMakeFiles/xppaut.dir/build.make:2651: recipe for target 'src/xppaut' failed make[2]: *** [src/xppaut] Error 1 CMakeFiles/Makefile2:85: recipe for target 'src/CMakeFiles/xppaut.dir/all' failed make[1]: *** [src/CMakeFiles/xppaut.dir/all] Error 2 Makefile:83: recipe for target 'all' failed Expected results: Should be able to build with the libf2c library Additional info: I haven't been able to find any other methods of fixing this, but if there is, I'll be happy to try it out.
The alternative seems to be to bundle the f2c libraries - include the sources and build them with xppaut. I'm not sure if this will pass a review, though :(
Fedora 22 changed to end-of-life (EOL) status on 2016-07-19. Fedora 22 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed.