Article 6FNXT Unable to compile xinetd on Slackware 15.0

Unable to compile xinetd on Slackware 15.0

by
HytronBG
from LinuxQuestions.org on (#6FNXT)
I have been using xinetd (Version 2.3.15 is the last one available) for years and now that I have upgraded from Linux Slackware 14.2 to 15.0 it fails to compile:

gcc -g -O2 -I../libs/include -c -o reconfig.o reconfig.c
reconfig.c:30:11: fatal error: rpc/rpc.h: No such file or directory
30 | #include <rpc/rpc.h>
| ^~~~~~~~~~~
compilation terminated.

Doing some research it appears that rpc.h was moved from:

/usr/include/rpc/rpc.h <- Old Slackware 14.2

which was part of glibc-2.17 to the new package which is now called libtirpc-1.3.2 and is located here:

/usr/include/tirpc/rpc/rpc.h <- Slackware 15.0

So I included the:

CFLAGS=-I/usr/include/tirpc

to my ./configure script and now I am able to compile but the linking fails with the following error:

/usr/bin/ld: reconfig.o: undefined reference to symbol 'pmap_unset@@TIRPC_0.3.0'
/usr/bin/ld: /lib64/libtirpc.so.3: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status

Is someone able to help me fix this issue?

TIA!!!
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments