I'm trying to compile MaxScale on FreeBSD 11 and follow these guidelines: https://mariadb.com/kb/en/mariadb-e...21-building-mariadb-maxscale-from-source-code
I've found a number of reference to similar problems with other applications, but none of the suggestions work for me. How can I remove the "libdl" requirement (which doesn't seem to be needed according to /usr/bin/ld: cannot find -ldl
Thanks.
Code:
However, I get a libdl error
# cmake ../MaxScale -DBUILD_TESTS=Y
-- CMake version: 3.8.2
-- The C compiler identification is Clang 3.8.0
-- The CXX compiler identification is Clang 3.8.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/CC
-- Check for working CXX compiler: /usr/bin/CC -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Looking for include file arpa/inet.h
-- Looking for include file arpa/inet.h - found
-- Looking for include file crypt.h
-- Looking for include file crypt.h - not found
-- Looking for include file ctype.h
-- Looking for include file ctype.h - found
-- Looking for include file dirent.h
-- Looking for include file dirent.h - found
-- Looking for include file dlfcn.h
-- Looking for include file dlfcn.h - found
-- Looking for include file errno.h
-- Looking for include file errno.h - found
-- Looking for include file execinfo.h
-- Looking for include file execinfo.h - found
-- Looking for include file fcntl.h
-- Looking for include file fcntl.h - found
-- Looking for include file ftw.h
-- Looking for include file ftw.h - found
-- Looking for include file getopt.h
-- Looking for include file getopt.h - found
-- Looking for include file ini.h
-- Looking for include file ini.h - not found
-- Looking for include file math.h
-- Looking for include file math.h - found
-- Looking for include file netdb.h
-- Looking for include file netdb.h - found
-- Looking for include file netinet/in.h
-- Looking for include file netinet/in.h - found
-- Looking for include file openssl/aes.h
-- Looking for include file openssl/aes.h - found
-- Looking for include file openssl/sha.h
-- Looking for include file openssl/sha.h - found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for include file pwd.h
-- Looking for include file pwd.h - found
-- Looking for include file regex.h
-- Looking for include file regex.h - found
-- Looking for include file signal.h
-- Looking for include file signal.h - found
-- Looking for include file stdarg.h
-- Looking for include file stdarg.h - found
-- Looking for include file stdbool.h
-- Looking for include file stdbool.h - found
-- Looking for include file stdint.h
-- Looking for include file stdint.h - found
-- Looking for include file stdio.h
-- Looking for include file stdio.h - found
-- Looking for include file stdlib.h
-- Looking for include file stdlib.h - found
-- Looking for include file string.h
-- Looking for include file string.h - found
-- Looking for include file strings.h
-- Looking for include file strings.h - found
-- Looking for include file sys/epoll.h
-- Looking for include file sys/epoll.h - not found
-- Looking for include file sys/ioctl.h
-- Looking for include file sys/ioctl.h - found
-- Looking for include file syslog.h
-- Looking for include file syslog.h - found
-- Looking for include file sys/param.h
-- Looking for include file sys/param.h - found
-- Looking for include file sys/socket.h
-- Looking for include file sys/socket.h - found
-- Looking for include file sys/stat.h
-- Looking for include file sys/stat.h - found
-- Looking for include file sys/time.h
-- Looking for include file sys/time.h - found
-- Looking for include file sys/types.h
-- Looking for include file sys/types.h - found
-- Looking for include file sys/un.h
-- Looking for include file sys/un.h - found
-- Looking for include file time.h
-- Looking for include file time.h - found
-- Looking for include file unistd.h
-- Looking for include file unistd.h - found
CMake Error at cmake/CheckPlatform.cmake:74 (message):
Could not find libdl
Call Stack (most recent call first):
CMakeLists.txt:31 (include)
-- Configuring incomplete, errors occurred!
See also "/maxscale/build/CMakeFiles/CMakeOutput.log".
See also "/maxscale/build/CMakeFiles/CMakeError.log".
I've found a number of reference to similar problems with other applications, but none of the suggestions work for me. How can I remove the "libdl" requirement (which doesn't seem to be needed according to /usr/bin/ld: cannot find -ldl
Thanks.