gnebehay/OpenTLD — Issue #3: osx support?
Author: Sophrinix
Created: 2011-11-28 01:23:53+00:00
State: open

when I type make I get the following error:

➜ OpenTLD git:(master) ✗ make
--
-- -------------------------------------------------------------------------------
-- CMAKE_SOURCE_DIR = /Users/sophrinix/Projects/cppOpenTld/OpenTLD
-- CMAKE_INSTALL_PREFIX = /usr/local
-- CMAKE_BUILD_TYPE = Release
-- CMAKE_BINARY_DIR = /Users/sophrinix/Projects/cppOpenTld/OpenTLD
-- Change a value with: cmake -D=
-- -------------------------------------------------------------------------------
--
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/sophrinix/Projects/cppOpenTld/OpenTLD
[ 3%] Building C object src/CMakeFiles/config.dir/config/grammar.c.o
[ 6%] Building C object src/CMakeFiles/config.dir/config/libconfig.c.o
/Users/sophrinix/Projects/cppOpenTld/OpenTLD/src/config/libconfig.c: In function ‘__config_locale_override’:
/Users/sophrinix/Projects/cppOpenTld/OpenTLD/src/config/libconfig.c:90: error: ‘locale_t’ undeclared (first use in this function)
/Users/sophrinix/Projects/cppOpenTld/OpenTLD/src/config/libconfig.c:90: error: (Each undeclared identifier is reported only once
/Users/sophrinix/Projects/cppOpenTld/OpenTLD/src/config/libconfig.c:90: error: for each function it appears in.)
/Users/sophrinix/Projects/cppOpenTld/OpenTLD/src/config/libconfig.c:90: error: expected ‘;’ before ‘loc’
/Users/sophrinix/Projects/cppOpenTld/OpenTLD/src/config/libconfig.c:91: error: ‘loc’ undeclared (first use in this function)
/Users/sophrinix/Projects/cppOpenTld/OpenTLD/src/config/libconfig.c:121:2: warning: #warning "No way to modify calling thread's locale!"
make[2]: *** [src/CMakeFiles/config.dir/config/libconfig.c.o] Error 1
make[1]: *** [src/CMakeFiles/config.dir/all] Error 2
make: *** [all] Error 2

What am I doing wrong/ how can I get this to work on osx (snow leopard 64 bit mode)