Results 1 to 2 of 2

Thread: Problems with eXternal Data Representation (XDR) library

  1. #1

    Default Problems with eXternal Data Representation (XDR) library

    Since one of the latest distribution updates, the following problem shows up:
    Code:
    abonfi@hp712:~/lib/fxdr_2.1> uname -a
    Linux hp712 4.15.11-1-default #1 SMP PREEMPT Mon Mar 19 19:55:59 UTC 2018 (a1db525) x86_64 x86_64 x86_64 GNU/Linux
    abonfi@hp712:~/lib/fxdr_2.1> gfortran  -o test test.F -L. -lfxdr 
    ./libfxdr.a(cxdrint.o): In function `cxdrint_':
    cxdrint.c:(.text+0x50): undefined reference to `xdr_int'
    ./libfxdr.a(cxdrreal.o): In function `cxdrreal_':
    cxdrreal.c:(.text+0x50): undefined reference to `xdr_float'
    ./libfxdr.a(cxdrrmat.o): In function `cxdrrmat_':
    cxdrrmat.c:(.text+0x12a): undefined reference to `xdr_float'
    cxdrrmat.c:(.text+0x138): undefined reference to `xdr_array'
    cxdrrmat.c:(.text+0x20d): undefined reference to `xdr_float'
    cxdrrmat.c:(.text+0x21b): undefined reference to `xdr_array'
    ./libfxdr.a(cxdrdmat.o): In function `cxdrdmat_':
    cxdrdmat.c:(.text+0x12f): undefined reference to `xdr_double'
    cxdrdmat.c:(.text+0x13d): undefined reference to `xdr_array'
    cxdrdmat.c:(.text+0x20e): undefined reference to `xdr_double'
    cxdrdmat.c:(.text+0x21c): undefined reference to `xdr_array'
    ./libfxdr.a(cxdrimat.o): In function `cxdrimat_':
    cxdrimat.c:(.text+0x12f): undefined reference to `xdr_int'
    cxdrimat.c:(.text+0x13d): undefined reference to `xdr_array'
    cxdrimat.c:(.text+0x20e): undefined reference to `xdr_int'
    cxdrimat.c:(.text+0x21c): undefined reference to `xdr_array'
    ./libfxdr.a(cxdrstring.o): In function `cxdrstring_':
    cxdrstring.c:(.text+0x5b): undefined reference to `xdr_bytes'
    ./libfxdr.a(cxdrinit.o): In function `cxdrinit_':
    cxdrinit.c:(.text+0x374): undefined reference to `xdrstdio_create'
    ./libfxdr.a(cxdrdouble.o): In function `cxdrdouble_':
    cxdrdouble.c:(.text+0x50): undefined reference to `xdr_double'
    collect2: error: ld returned 1 exit status
    Any suggestion?
    Thanks.
    Aldo

  2. #2

    Default Re: Problems with eXternal Data Representation (XDR) library

    The answer is:
    Code:
    gfortran  -o test test.F -L. -lfxdr -ltirpc

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •