shijin1991
New member
Hello, when building WRFV 3.9.1.1 on CentOS 8, I hit the same issue of the location of `rpc` directory reported in https://forum.mmm.ucar.edu/phpBB3/viewtopic.php?t=61. I installed libtirpc-devel and have /usr/include/tirpc/rpc available. Then I applied https://github.com/wrf-model/WRF/pull/1072's patch to WRFV-3.9.1.1, but I still get errors when compiling as
landread.c:130:8: error: unknown type name 'XDR'
landread.c:410:11: error: 'XDR' undeclared (first use in this function)
landread.c:410:16: error: expected expression before ')' token
landread.c:411:29: error: 'XDR_DECODE' undeclared (first use in this function)
, which looks strange to me because I checked both XDR and XDR_DECODE are defined in my /usr/include/tirpc/rpc/xdr.h file. Could you provide any ideas for this issue? I attached the configure.wrf and share/landread.c here as well.
landread.c:130:8: error: unknown type name 'XDR'
landread.c:410:11: error: 'XDR' undeclared (first use in this function)
landread.c:410:16: error: expected expression before ')' token
landread.c:411:29: error: 'XDR_DECODE' undeclared (first use in this function)
, which looks strange to me because I checked both XDR and XDR_DECODE are defined in my /usr/include/tirpc/rpc/xdr.h file. Could you provide any ideas for this issue? I attached the configure.wrf and share/landread.c here as well.