]> jspc29.x-matter.uni-frankfurt.de Git - trbnettools.git/commitdiff
Switch from sunrpc (formerly part of glibc) to libtirpc
authorPhilipp Klaus <philipp.l.klaus@web.de>
Fri, 7 Sep 2018 13:20:30 +0000 (15:20 +0200)
committerPhilipp Klaus <klaus@physik.uni-frankfurt.de>
Tue, 23 Oct 2018 16:47:45 +0000 (18:47 +0200)
This commit provides a fix for the removal of interfaces
related to Sun RPC from glibc. See
<https://fedoraproject.org/wiki/Changes/SunRPCRemoval>

Warning: This commit hast not been thoroughly tested yet.

Now required for compilation:
 - on OpenSUSE: libtirpc-devel rpcgen
 - on Arch Linux: libtirpc rpcsvc-proto

libtrbnet/Makefile
trbnetd/Makefile
trbnetd/server/Makefile

index be9f18d971d38cadccc11ad4c0b9a30c6d6f2690..ac23e548e3e2e30fc7d8478f47bffe6f09f634e5 100644 (file)
@@ -21,13 +21,13 @@ else
        endif
 endif
 
-INCDIR = -I.
+INCDIR = -I. -I/usr/include/tirpc
 CPPFLAGS += #-DTRB_DEBUGGER  #-DHEXMODE 
 
 CFLAGS = -pipe -g -Wall  -Winline -O3 -fPIC -finline-functions -finline-limit=600000
 
 LD = $(CC)
-LDFLAGS = -lm
+LDFLAGS = -lm -ltirpc
 LIBDIR =
 LOADLIBES =
 
index 16b606fb549b5293cb954908ce6ec70742a58d89..01b0f767242382e25815052f7c020e8bbcde1365 100644 (file)
@@ -11,7 +11,7 @@ else
 CPPFLAGS =
 endif
 
-INCDIR = -I. 
+INCDIR = -I. -I/usr/include/tirpc
 
 CC = gcc
 CFLAGS = -pipe -g  -Wall -O3 -fPIC
@@ -24,7 +24,7 @@ LD = $(CC)
 
 LDFLAGS = 
 LIBDIR = 
-LOADLIBES = -lm
+LOADLIBES = -lm -ltirpc
 
 # ------------ TARGETS -------------------------------------------------
 
index 8f2f0ffebe8e03c4e39026344d634924ace53186..1772dffe886c0537bfee5ce55ba03cfc49d16fed 100644 (file)
@@ -21,7 +21,7 @@ else
        endif
 endif
 
-INCDIR = -I../../libtrbnet
+INCDIR = -I../../libtrbnet -I/usr/include/tirpc
 
 CFLAGS = -pipe -g -Wall  -Winline -O3 -fPIC -finline-functions -finline-limit=600000
 
@@ -31,7 +31,7 @@ CXXFLAGS = -pipe -g -Wall
 LD = $(CC)
 #LD = $(CXX)
 
-LDFLAGS = 
+LDFLAGS = -ltirpc
 LIBDIR = -L../../libtrbnet
 LOADLIBES = -Wl,-Bstatic -ltrbnet -Wl,-Bdynamic -lm