Package Details: f2c 20200916-1

Git Clone URL: https://aur.archlinux.org/f2c.git (read-only, click to copy)
Package Base: f2c
Description: Fortran to C code translator
Upstream URL: https://www.netlib.org/f2c
Keywords: transpiler
Licenses: custom
Submitter: None
Maintainer: a.kudelin
Last Packager: a.kudelin
Votes: 58
Popularity: 1.13
First Submitted: 2009-10-11 19:13
Last Updated: 2020-09-28 15:41

Latest Comments

1 2 3 4 5 6 ... Next › Last »

xiretza commented on 2020-09-29 16:26

Could you rename the source to something that contains both $pkgname and $pkgver (in accordance with the fourth point in https://wiki.archlinux.org/index.php/Arch_package_guidelines#Package_sources)? Something like:

source=("$pkgname-$pkgver.tar.gz::$url/src.tgz"
        "libf2c-$pkgver.zip::$url/libf2c.zip")

Anything else will just cause even more checksum troubles.

jgus commented on 2020-09-27 19:49

I'm also seeing a sha265 mismatch. Clearing the cache doesn't help. Looks like the package needs to be updated to match the modified source?

timmyl17 commented on 2020-09-24 16:51

I'm getting a sha256 mismatch on src.tgz. When I download directly from the website and run

sha256sum src.tgz

I get d4847456aa91c74e5e61e2097780ca6ac3b20869fae8864bfa8dcc66f6721d35

a.kudelin commented on 2020-07-22 20:26

Developers don't distinguish between versions, so you have to remove old files before running makepkg.

snostorm commented on 2020-07-22 10:34

Just FYI I was getting this Error but manual download of src.tgz worked???

~/Development/Arch-SRCpackages/f2c]makepkg -si ==> Making package: f2c 20200425-2 (Wed 22 Jul 2020 11:25:44 AM BST) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Retrieving sources... -> Found src.tgz -> Found libf2c.zip ==> Validating source files with sha256sums... src.tgz ... FAILED libf2c.zip ... Passed

bartus commented on 2020-05-26 19:41

Add manual page for f2c

git am < <(curl -s http://ix.io/2nr2)

DasMoeh commented on 2019-12-23 16:09

Thank you! I'll try that.

a.kudelin commented on 2019-12-22 15:15

The best solution I found is to create a dummy .c file, call it test.c, for example.

$ cat test.c
#include "f2c.h"

int MAIN__(void) { return 0; }

Linking it along with your main.cpp gives the desired result:

$ ld -o program main.o test.o -llevmar

Another solution is to remove all MAIN__ instances from main.c file of libf2c, adding following line to prepare() section of PKGBUILD: sed -i "/MAIN__/d" libf2c/main.c, but I actually don't know if such a dirty hack can break something...

DasMoeh commented on 2019-12-22 03:10

My code is not (yet) open source but maybe this small example will help:

$cat main.cpp

int main ( int argc, char *argv[] ) { return(0); }

$g++ main.cpp -llevmar

/usr/bin/ld: /usr/lib/libf2c.so: undefined reference to `MAIN__'

$ g++ main.cpp -llapack

$

What am i missing?

a.kudelin commented on 2019-12-21 15:41

Could you give a link if we're talking about some sort of open source project? In the case of your own code, consider addition of int main(), it's mandatory for C/C++.
UPD. The above statement is wrong, because libf2c requires MAIN__ function, not main.