Bug 1259877 - Please provide static libf2c library
Summary: Please provide static libf2c library
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: f2c
Version: 22
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Carl Byington
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-09-03 17:11 UTC by Ankur Sinha (FranciscoD)
Modified: 2016-07-19 17:46 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-19 17:46:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ankur Sinha (FranciscoD) 2015-09-03 17:11:28 UTC
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.

Comment 1 Ankur Sinha (FranciscoD) 2015-09-03 17:14:27 UTC
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 17:46:31 UTC
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.