--- src/test/CMakeLists.txt
+++ src/test/CMakeLists.txt
@@ -515,6 +515,8 @@ if(HAVE_BLKID)
     )
 endif(HAVE_BLKID)

+if(NOT FREEBSD)
+
 # ceph_test_admin_socket_output

 add_executable(ceph_test_admin_socket_output
@@ -534,6 +536,7 @@ endif()
 install(TARGETS
   ceph_test_admin_socket_output
   DESTINATION ${CMAKE_INSTALL_BINDIR})
+endif()

 #make check starts here

