===== [V7] ISSUE:"Shared object "libstdc++.so.6" not found, required by "NfsFbdX64" error when starting up the AhsayCBS NFS service on FreeBSD 10 =====
Article ID: 5274
Reviewed: 2017-08-29

Product Version:
AhsayCBS: 7.9.0.0 to 7.x
OS: FreeBSD 10.x

ATTENTION 1st January, 2022: v7 officially End-of-Life [details] ===== Problem Description ===== After installing AhsayCBS on FreeBSD 10, the AhsayCBS NFS service shows following error "Shared object "libstdc++.so.6" not found, required by "NfsFbdX64" :

# sh install.sh Log Time: Fri Aug 25 17:54:53 HKT 2017 Verifying current user privilege ... Current user has enough privilege to "install". Start configuration on BSD distribution Platform (FreeBSD) Installing [ NFS Service (Ahsay Systems Corporation) ] [ NFS Service (Ahsay Systems Corporation) ] Service Script created at /usr/local/cbs/nfs/bin/cbsnfs Install Service for BSD type OS Copying script cbsnfs to /usr/local/etc/rc.d You may start this service by: sh "/usr/local/etc/rc.d/cbsnfs" start & Remember to add an entry: cbsnfs_enable="YES" to /etc/rc.conf [ NFS Service (Ahsay Systems Corporation) ] setup completed! Startup [ NFS Service (Ahsay Systems Corporation) ] Starting NFS Service (Ahsay Systems Corporation) Started [ NFS Service (Ahsay Systems Corporation) ] root@ahsaycbs:/usr/local/cbs/nfs/bin # sh query.sh Service Name: cbsnfs Service Display Name: NFS Service (Ahsay Systems Corporation) Service Description: NFS Service (Ahsay Systems Corporation) Service Path: /usr/local/cbs/nfs/bin/startup.sh Service Status: Running Shared object "libstdc++.so.6" not found, required by "NfsFbdX64" NFS Version: NFS Status: Unknown NFS Mount Point: -1 NFS Running Session: -1 #
Example:
The error is also show when running the AhsayCBS NFS query.sh or test.sh scripts:
# sh query.sh Service Name: cbsnfs Service Display Name: NFS Service (Ahsay Systems Corporation) Service Description: NFS Service (Ahsay Systems Corporation) Service Path: /usr/local/cbs/nfs/bin/startup.sh Service Status: Running Shared object "libstdc++.so.6" not found, required by "NfsFbdX64" NFS Version: NFS Status: Unknown NFS Mount Point: -1 NFS Running Session: -1 #
===== Cause ===== The AhsayCBS NFS service on FreeBSD 10.x requires installation of GNU C Library (also known as glibc or libc6). The GNU C Library is not installed on FreeBSD 10.x by default.

===== Resolution ===== To install the GNU C Library port:
  1. Login to the AhsayCBS server as root.
  2. cd /usr/ports/misc/compat9x
  3. make install distclean
===== Keywords ===== glibc, GNU C, NFS service, FreeBSD 10, libc6