Search code examples
gccfedoraglibcsunrpc

Error with package: glibc-header in FEDORA 30


I am using fedora 30. In order to install Madagascar (a seismic package), there is a ./configure code, which one test a several requirements.

there is an error with glibc-headers:

Needed package: glibc-headers
Fatal missing dependency

in config.log file I had checked the error:

gcc -o .sconf_temp/conftest_2.o -c -O2 -x c -std=gnu99 -Wall -pedantic .sconf_temp/conftest_2.c

.sconf_temp/conftest_2.c:2:14: fatal error: rpc/types.h: No such file or directory

where conftest_2.c is:

    #include <rpc/types.h>
    #include <rpc/xdr.h>
    int main(int argc,char* argv[]) {
    return 0;
    }

in order to find types.h I did:

find /usr/include -name types.h with the next results:

usr/include/linux/sched/types.h
/usr/include/linux/iio/types.h
/usr/include/linux/types.h
/usr/include/asm-generic/types.h
/usr/include/webp/types.h
/usr/include/asm/types.h
/usr/include/sys/types.h
/usr/include/bits/types.h
/usr/include/c++/9/parallel/types.h
/usr/include/openmpi-x86_64/openshmem/oshmem/types.h

I have already installed glibc-headers as follows:

sudo dnf -y install glibc-headers
Package glibc-headers-2.29-15.fc30.x86_64 is already installed.

How I can fix this problem ?


Solution

  • Fedora transitions to libtirpc for its Sun RPC implementation. You need to install libtirpc-devel, compile with -I/usr/include/tirpc (see pkg-config --cflags libtirpc) and link with -ltirpc (see pkg-config --libs libtirpc).