I'm just trying to figure it out, why Fedora has not the static library libm.a
, and if it is a fact, which i should use?
As mentioned here in StackOverflow i can simply install the pkg from yum
, but is acceptable to think that Fedora have a replacement as default lib instead.No?
edited
I'm trying to compile this:
#include <stdio.h>
#include <stdlib.h>
void fred(int arg)
{
printf("fred: you passed %d\n", arg);
}
and the output is this:
$ gcc -o fred fred.c /usr/lib64/libm.so
/usr/lib/gcc/x86_64-redhat-linux/6.2.1/../../../../lib64/crt1.o: En la función `_start':
(.text+0x20): referencia a `main' sin definir
collect2: error: ld devolvió el estado de salida 1
Test ggc with lm
and /usr/lib/libm.a
and /usr/lib64/libm.a
I've done all mencioned here and other posts, yum install glibc-static
and checked for /usr/lib64/libm.so
edit
repoquery --whatprovides /usr/lib64/libm.a
:
failure: repodata/repomd.xml from fedora-cisco-openh264: [Errno 256] No more mirrors to try.
https://codecs.fedoraproject.org/openh264/24/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml signature could not be verified for fedora-cisco-openh264
thanks.