pastebin - collaborative debugging tool
nrubsig.kpaste.net RSS


buildlibnfs.ksh - build libnfs for Cygwin 3.6.x
Posted by Anonymous on Fri 22nd Mar 2024 15:05
raw | new post

  1. #!/bin/ksh93
  2.  
  3. #
  4. # buildlibnfs.ksh - build libnfs for Cygwin 3.6.x
  5. #
  6. # Written by roland.mainz@nrubsig.org
  7. #
  8.  
  9. set -o xtrace
  10. set -o errexit
  11.  
  12. #
  13. # get sources and patch them
  14. #
  15. git clone https://github.com/sahlberg/libnfs.git
  16. # fix "nfs_v4.c:436:29: error: array subscript has type 'char' [-Werror=char-subscripts]"
  17. sed -i -E 's/if \(isdigit\(\*buf\)\) \{/if (isdigit((int)*buf)) {/' libnfs/lib/nfs_v4.c
  18.  
  19. # workaround for ms-nfs41-client
  20. git config --global --add safe.directory "$PWD/libnfs"
  21.  
  22. cd libnfs
  23.  
  24. #
  25. # configure
  26. #
  27. autoupdate
  28. ln -s /usr/share/libtool/build-aux/ltmain.sh .
  29. autoreconf || true
  30. automake --add-missing
  31. autoreconf
  32. ./configure --without-libkrb5 --enable-utils
  33.  
  34. #
  35. # build
  36. #
  37. make -j8 all
  38.  
  39. print '# done.'
  40.  
  41. # EOF.

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at