Bug 1259877 - Please provide static libf2c library
Please provide static libf2c library
Status: CLOSED EOL
Product: Fedora
Classification: Fedora
Component: f2c (Show other bugs)
22
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Carl Byington
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-09-03 13:11 EDT by Ankur Sinha (FranciscoD)
Modified: 2016-07-19 13:46 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-19 13:46:31 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Ankur Sinha (FranciscoD) 2015-09-03 13:11:28 EDT
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@github.com: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.
Comment 1 Ankur Sinha (FranciscoD) 2015-09-03 13:14:27 EDT
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 :(
Comment 2 Fedora End Of Life 2016-07-19 13:46:31 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.