Results 1 to 3 of 3

Thread: rpc programming issue

  1. #1

    Default rpc programming issue

    Compiling a program with with a rpc call, the following error:
    Code:
    g++ -g -I/usr/include/ntirpc -c vxi11_cmd.cc -o vxi11_cmd.o 
    In file included from /usr/include/ntirpc/rpc/rpc.h:47, 
                     from vxi11_user.h:31, 
                     from vxi11_cmd.cc:25:
    
    /usr/include/ntirpc/rpc/xdr.h:136:18:error: declaration of ‘vio_type xdr_vio::vio_type’ changes meaning of ‘vio_type’ [-fpermissive] 
      136 |         vio_type vio_type;      /* type of buffer */
    
    This error is thrown in a system file. Nothing included before (#include <rpc/rpc.h).

    Anybody knows, how to solve this problem?

    Original Program:
    https://github.com/applied-optics/vxi11

    Thanks,
    Johannes

  2. #2
    Join Date
    Aug 2010
    Location
    Chicago suburbs
    Posts
    16,011
    Blog Entries
    3

    Default Re: rpc programming issue

    Thread moved to "Programming/Scripting".
    openSUSE Leap 15.4; KDE Plasma 5.24.4;
    testing Tumbleweed.

  3. #3
    Join Date
    Sep 2012
    Posts
    7,837

    Default Re: rpc programming issue

    Quote Originally Posted by Jke61 View Post
    Anybody knows, how to solve this problem?
    Open bug report on project site. This is invalid in C++ (although some compilers do tolerate it). You may also try to add -fpermissive as suggested.

    http://www.cplusplus.com/forum/general/171799/
    https://stackoverflow.com/questions/...ning-of-symbol

Posting Permissions

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