Hi SU Pros
Just a suggestion:
Have you tried to install the Ubuntu NFS packages? XDR is part of remote procedure calls (rpc), which is part of NFS.
In Ubuntu 22.04 the main packages are nfs-common (client) and nfs-kernel-server (server) (sudo apt install nfs-common nfs-kernel-server). You don't necessarily need to enable or start the NFS services, if you don't want to use NFS, though.
In particular the xdr_float and xdr_vector functions are part of libtirpc.{a,so}, and the respective function prototypes are part of the xdr.h header file. I can confirm that they do exist in Ubuntu 22.04 (where I installed NFS).
I haven't built and used SU in a while, so the suggestion above is not tested.
I would also guess that the same problem would happen in other Linux distributions, if NFS (or at least RPC) is not installed.
You may get away installing only the libtirpc library packages (transport independent remote procedure calls), but I am not sure. NFS should install it as a dependency.
My two cents, Gus Correa
On Tue, Mar 14, 2023 at 4:47 PM Dominique Rousset < dominique.rousset@univ-pau.fr> wrote:
Hi This is an old problem with ubuntu. There is no xdr problem with debian and fedora.
So, one solution is to use ubuntu specific linking instruction (see Paul Fertser's message, that I transfered to the list), an other one is to compile SU with an other distro or to "ditch xdr" like Rob...
D.
Le 14 mars 2023 20:57:22 GMT+01:00, rob@xsgeo.com a écrit :
Hi,
I did have this problem earlier this year and wrestled with the codes for a while before I decided to ditch xdr support. Probably not the answer you were looking for … but it does work !!
Regards
Rob
*From:* Ramon Carbonell ramon.carbonell@csic.es *Sent:* Tuesday, 14 March, 2023 5:16 PM *To:* seisunix@mailman.seismic-unix.org *Subject:* [Seisunix] Compilation probles wis dist CWP-44.26
Dear All,
Has anybody struggled with compiling version 44.26 and having trouble when compiling with the xdr
I am getting messages like
src/su/lib/fgettr.c:148: undefined reference to `xdr_float'
src/su/lib/fputtr.c:123: undefined reference to `xdr_vector'
I am running Ubuntu 22.04 and somehow, although xdr.h is installed at rpc/xdr.h
I am not sure why the compiler does not locate it.
Anu suggestions.
--
Ramon
Ramon Carbonell
CSIC-GEO3BCN GeoSciences Barcelona (http://Geo3BCN.csic.es/) https://orcid.org/0000-0003-2019-1214
-- Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté. _______________________________________________ Seisunix mailing list -- seisunix@mailman.seismic-unix.org To unsubscribe send an email to seisunix-leave@mailman.seismic-unix.org