Bug 6513 - compat-gcc, needed for libg2c.so.0 to run weather software from NOAA
Summary: compat-gcc, needed for libg2c.so.0 to run weather software from NOAA
Status: RESOLVED OLD
Alias: None
Product: Mageia
Classification: Unclassified
Component: New RPM package request (show other bugs)
Version: Cauldron
Hardware: All Linux
Priority: Normal enhancement
Target Milestone: ---
Assignee: Mageia Bug Squad
QA Contact:
URL: http://rpm.pbone.net/index.php3/stat/...
Whiteboard: X
Keywords: NEEDINFO
Depends on:
Blocks:
 
Reported: 2012-06-19 21:50 CEST by Gene Alexander
Modified: 2016-07-22 22:45 CEST (History)
4 users (show)

See Also:
Source RPM: compat-gcc-34-3.4.6-22.fc15.src.rpm
CVE:
Status comment:


Attachments

Description Gene Alexander 2012-06-19 21:50:03 CEST
We are building a high-end Linux workstation with Mageia 2 for a client needing to run NOAA real time weather modeling software in Alaska, USA. The only library missing on Mageia 2 for this software to work is libg2c.so.0 which is found in Fedora 15 and 16. Please add this to Mageia As Soon As Possible. I will test it as soon as I see notice on this bug that it is in Cauldron. Thank you.
Gene Alexander 2012-06-19 21:51:20 CEST

Hardware: i586 => All

Comment 1 Manuel Hiebel 2012-06-20 00:40:34 CEST
It is also in the libg2c0 package in mdv 2009, but as it come from an old SRPM of GCC not sure we will import it anyway in mga (I'am not a packager)

Maybe you should ask the company to use updated libs.
Comment 2 Gene Alexander 2012-06-20 03:40:23 CEST
Well, I doubt I can get the software rewritten by the developers just to avoid that one missing library in Mageia. For the record, I have zero clue where one would find an updated replacement for that library anyway. If you do, and let me know about it, I will try writing them about that. This is third party software from here:

 http://strc.comet.ucar.edu/software/newrems/

I got the latest version which was released in April 2012. I am just installing it for the end-user in Alaska who needs the system ready and shipped before their snow melts and summer tourism for camping and hiking starts. According to the Perl installer for the software, it needs the libg2c.so.0 to run the "NAWIPS/GEMPAK routines". Whatever those are. I have no control over or contact with the developers of these modeling tools.

I convinced the end-user to go with Mageia on this build. If it will not run the software they need they will probably have me switch the build to Fedora. Since the library is in Fedora 16, it is probably in Fedora 17 as well. I *really* wanted to highlight Mageia on my company article site (blog.eracc.com) for this build. I will be writing about this workstation no matter which distribution goes on it and posting the URL to LXer, etcetera. I would prefer the distribution be Mageia.
Marja Van Waes 2012-06-30 21:55:44 CEST

CC: (none) => marja11
Summary: Need compat-gcc RPM for libg2c.so.0 to run weather software from NOAA => compat-gcc, needed for libg2c.so.0 to run weather software from NOAA
Whiteboard: (none) => X
Severity: normal => enhancement

Comment 3 Gene Alexander 2012-07-01 17:02:17 CEST
FYI, we still need this but had to ship the PC in question. The end-user, trusting my advice that you will add this, will install the library himself once it is available.
Remco Rijnders 2012-11-25 07:25:12 CET

CC: (none) => remco

Comment 4 Marja Van Waes 2012-11-25 11:19:07 CET
@ Gene

Someone else who needed a bug report to be solved, started 
https://wiki.mageia.org/en/Paid_projects

There is still some discussion about the page, though, it is apparently easy to misunderstand the intention of it.
Comment 5 Romain d'Alverny 2012-11-25 12:45:03 CET
Gene, it's been a long time; is this issue still open for you?

CC: (none) => rdalverny

Comment 6 Gene Alexander 2012-11-25 19:57:27 CET
Marja, I will notify my client about that page. I am not sure what he will want to do after that. He may opt to open a paid project or I may get a request to switch his workstation to a different distribution that includes the library. It is not my decision to make at this point.

Romain, as far as I know the library is still missing. A 'urpmf libg2c.so' does not find it. The software from the US NOAA/NWS Science and Training Resource Center still uses that library. The client accepted the Mageia install from us some months ago now with the provision that the library may be available after I opened a request for it with Mageia. So, this report is still valid as far as I know.
Comment 7 Romain d'Alverny 2012-11-26 18:41:27 CET
Gene, yes, it's missing. I wanted to know if in the meantime you had found a solution.

libg2c is shipped with g77, which was used with gcc 3.x series. g77  has been replaced with gfortran with gcc 4.x series, and libg2c is not used anymore.

So 2 solutions at least on Mageia:

 #1. Find/make a gcc-g77 RPM and install it (as a dependency if you packaged the software) along above software. If you can't do it, I am not sure if gcc-g77 would be backported to M2, but that may be an option for a bounty I guess.

 #2. Better: have/push the upstream software editor to rebuild their software with a more recent toolchain (gcc 4 & gfortran); that's a more practical, long term change.
Comment 8 John Tellefson 2013-04-11 05:45:44 CEST
Here's some information on this missing file, since nobody seems to have found it already. First, some notes on libg2c as a version of libf2c with the name modified to avoid software conflicts. This also has a link to the g77 (Fortran 77 compiler) source file at the top of the webpage.
http://fossies.org/linux/misc/old/g77-0.5.23.tar.gz:a/g77-0.5.23/f/runtime/f2c.h

Here's the page http://www.netlib.org/f2c/index.html where you can get the source libf2c.zip and the f2c.h files. I'm not seeing the f2c source zipfile, just a bunch of individual files in the src subfolder. I've compiled it, but am not sure where I got the f2c tar.gz sourcefile. My copy is dated 10-8-2006.

By building from source, you aren't limited to any particular Linux distribution, and the configure script if present should adjust the build process to your system. Libf2c doesn't use configure, just a makefile. Most source packages will install development libraries as well as runtime libraries. It's best to read the readme and install files before building. Also, if there's a configure script, run configure --help to get extra info on what can be done in the configure and build process, and what else may be needed.

If you have gcc 4.6.3 and you really need a gcc 4.7 to do something, you might consider building a new gcc. This isn't trivial because recent gcc needs some development libraries, etc that you would also need to install or build. But it's not terribly hard, not beyond the skills of a hobbyist (me).

In the libf2c source files, apparently all reference to libf2c has been changed to libg2c. Make this edit as needed, follow the make instructions and you should end up with the libg2c.a that you want. The header file f2c.h and any libf2c references in it should also be edited to libg2c.

Now here's the system administrator stuff. I've done these steps several years ago and am a bit rusty at just what I did to get libf2c, f2c and fort77 built and installed. Fort77 is a script that feeds a fortran source file to f2c to compile it. 

Read the f2c makefile as there's a section in the makefile for building something extra to work with a C++ compiler.

There should be a "make check" target that can be run after building to test your build. 

Then just install the files as root using the makefile install command.

CC: (none) => jrt

Comment 9 Marja Van Waes 2016-07-03 06:09:15 CEST
Hi,

(Asking in several package requests at the same time:)

BugSquad has too few active members to take proper care of package requests, so we need to ask you to check some things yourself.

Please check in http://madb.mageia.org/ whether this package was already imported in cauldron, or whether there's another package with the same functionality that you can use.

If so, then please close this bug report, or, if the package isn't available in Mageia 5, change this report into a backport request.

If it is not available in cauldron, and there is no alternative that you can use, then please confirm that you still need this software.

Thanks,
Marja

Keywords: (none) => NEEDINFO

Comment 10 Marja Van Waes 2016-07-22 22:45:57 CEST
No reply, so closing as OLD

Feel free to reopen if this package is still needed

Status: NEW => RESOLVED
Resolution: (none) => OLD


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