how to compile on Mac OS X
Directions would be nice.
I'm currently stuck at linking (output below).
Should I be using autogen.sh
? Changing libtoolize to glibtoolize in autogen.sh gets me to a configure failure. I'm not sure what argument it wants (second block of output below).
$ brew install httpd openssl
$ export LDFLAGS="-L/usr/local/opt/openssl/lib -L/usr/local/lib -L/usr/local/opt/expat/lib"
$ export CFLAGS="-I/usr/local/opt/openssl/include/ -I/usr/local/include -I/usr/local/opt/expat/include"
$ export CPPFLAGS="-I/usr/local/opt/openssl/include/ -I/usr/local/include -I/usr/local/opt/expat/include"
# double check that the following path exists
$ APRCONFIG=/usr/local/Cellar/apr/1.7.0/libexec/bin/apr-1-config ./configure
$ make
Making all in src
Making all in common
/Applications/Xcode.app/Contents/Developer/usr/bin/make all-am
make[3]: Nothing to be done for `all-am'.
Making all in core
make[2]: Nothing to be done for `all'.
Making all in modules
Making all in input
Making all in file
/bin/sh ../../../../libtool --tag=CC --mode=link gcc -I/usr/local/opt/openssl/include/ -I/usr/local/include -I/usr/local/opt/expat/include -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -DDARWIN_10 -pipe -W -Wall -Wshadow -Wno-address -Wcast-qual -Wbad-function-cast -Wsign-compare -Wconversion -funsigned-char -Werror-implicit-function-declaration -Wswitch-default -fstrict-aliasing -Wpointer-arith -Wcast-align -Wwrite-strings -Wmissing-noreturn -Wmissing-format-attribute -Wformat -Wextra -Werror=format-security -rdynamic -ggdb3 -module -no-undefined -avoid-version -L/usr/local/opt/openssl/lib -L/usr/local/lib -L/usr/local/opt/expat/lib -o im_file.la -rpath /usr/local/libexec/nxlog/modules/input im_file.lo im_file_funcproc_cb.lo expr-im_file-funcproc.lo -L/usr/local/opt/apr/libexec/lib -lapr-1 -lpthread
libtool: link: gcc -o .libs/im_file.so -bundle .libs/im_file.o .libs/im_file_funcproc_cb.o .libs/expr-im_file-funcproc.o -L/usr/local/opt/openssl/lib -L/usr/local/lib -L/usr/local/opt/expat/lib -L/usr/local/opt/apr/libexec/lib -lapr-1 -lpthread
ld: warning: directory not found for option '-L/usr/local/opt/expat/lib'
Undefined symbols for architecture x86_64:
"__nx_conf_error", referenced from:
_im_file_config in im_file.o
"__nx_panic", referenced from:
_im_file_config in im_file.o
_im_file_event in im_file.o
_im_file_eval_filename in im_file.o
_im_file_glob_dir in im_file.o
_im_file_input_open in im_file.o
_im_file_fill_buffer in im_file.o
_im_file_check_file in im_file.o
...
"_nx_assertion_failed", referenced from:
_im_file_config in im_file.o
_im_file_start in im_file.o
_im_file_stop in im_file.o
_im_file_pause in im_file.o
_im_file_resume in im_file.o
_im_file_event in im_file.o
_im_file_add_poll_event in im_file.o
...
"_nx_cfg_get_boolean", referenced from:
_im_file_config in im_file.o
"_nx_config_cache_get_int", referenced from:
_im_file_add_file in im_file.o
"_nx_config_cache_remove", referenced from:
_im_file_input_open in im_file.o
_im_file_check_file in im_file.o
"_nx_config_cache_set_int", referenced from:
_im_file_stop in im_file.o
_im_file_read in im_file.o
_im_file_check_file in im_file.o
"_nx_event_add", referenced from:
_im_file_add_poll_event in im_file.o
_im_file_add_dircheck_event in im_file.o
"_nx_event_free", referenced from:
_im_file_stop in im_file.o
_im_file_pause in im_file.o
_im_file_resume in im_file.o
_im_file_dircheck_event_cb in im_file.o
"_nx_event_new", referenced from:
_im_file_add_poll_event in im_file.o
_im_file_add_dircheck_event in im_file.o
"_nx_event_remove", referenced from:
_im_file_stop in im_file.o
_im_file_pause in im_file.o
_im_file_resume in im_file.o
_im_file_dircheck_event_cb in im_file.o
"_nx_exception_init", referenced from:
_im_file_config in im_file.o
_im_file_eval_filename in im_file.o
_im_file_glob_dir in im_file.o
_im_file_input_open in im_file.o
_im_file_fill_buffer in im_file.o
_im_file_check_file in im_file.o
_nx_expr_func__im_file_file_name in im_file_funcproc_cb.o
...
"_nx_exception_rethrow", referenced from:
_im_file_check_new in im_file.o
_im_file_glob_dir in im_file.o
"_nx_expr_evaluate", referenced from:
_im_file_eval_filename in im_file.o
"_nx_expr_parse", referenced from:
_im_file_config in im_file.o
"_nx_get_exception_context", referenced from:
_im_file_config in im_file.o
_im_file_check_new in im_file.o
_im_file_eval_filename in im_file.o
_im_file_glob_dir in im_file.o
_im_file_input_open in im_file.o
_im_file_fill_buffer in im_file.o
_im_file_check_file in im_file.o
...
"_nx_log", referenced from:
_im_file_stop in im_file.o
_im_file_check_new in im_file.o
_im_file_glob_dir in im_file.o
_im_file_add_file in im_file.o
_im_file_input_close in im_file.o
_im_file_input_open in im_file.o
_im_file_read in im_file.o
...
"_nx_log_aprerror", referenced from:
_im_file_glob_dir in im_file.o
_im_file_input_get_filepos in im_file.o
_im_file_fill_buffer in im_file.o
"_nx_log_exception", referenced from:
_im_file_config in im_file.o
_im_file_eval_filename in im_file.o
_im_file_glob_dir in im_file.o
_im_file_input_open in im_file.o
_im_file_fill_buffer in im_file.o
_im_file_check_file in im_file.o
_nx_expr_func__im_file_file_name in im_file_funcproc_cb.o
...
"_nx_module_add_logdata_input", referenced from:
_im_file_input_close in im_file.o
_im_file_read in im_file.o
"_nx_module_common_keyword", referenced from:
_im_file_config in im_file.o
"_nx_module_get_status", referenced from:
_im_file_read in im_file.o
"_nx_module_input_data_set", referenced from:
_im_file_input_open in im_file.o
"_nx_module_input_func_lookup", referenced from:
_im_file_config in im_file.o
"_nx_module_input_name_get", referenced from:
_nx_expr_func__im_file_file_name in im_file_funcproc_cb.o
"_nx_module_input_new", referenced from:
_im_file_input_open in im_file.o
"_nx_pool_create_core", referenced from:
_im_file_stop in im_file.o
_im_file_check_new in im_file.o
_im_file_add_file in im_file.o
_im_file_check_rename in im_file.o
_im_file_input_open in im_file.o
_im_file_check_files in im_file.o
"_nx_string_create", referenced from:
_nx_expr_func__im_file_file_name in im_file_funcproc_cb.o
"_nx_value_kill", referenced from:
_im_file_eval_filename in im_file.o
"_nx_value_type_to_string", referenced from:
_im_file_config in im_file.o
_im_file_eval_filename in im_file.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[4]: *** [im_file.la] Error 1
make[3]: *** [all-recursive] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all-recursive] Error 1
$
➜ nxlog-ce-2.10.7 ./autogen.sh
+ glibtoolize --copy --automake --force
+ aclocal -I .
aclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:2: warning: AC_INIT: not a literal: -n 2.10.7
+ autoheader
configure.in:2: warning: AC_INIT: not a literal: -n 2.10.7
+ autoconf
configure.in:2: warning: AC_INIT: not a literal: -n 2.10.7
+ automake --include-deps --add-missing --copy --foreign --no-force
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:2: warning: AC_INIT: not a literal: -n 2.10.7
configure.in:18: installing './compile'
configure.in:14: installing './missing'
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
automake: warning: autoconf input should be named 'configure.ac', not 'configure.in'
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
src/common/Makefile.am: installing './depcomp'
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
configure.in:345: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
++ which dpkg-buildflags
+ test x '!=' x
+ ./configure
./configure: line 4: .: filename argument required
.: usage: . filename [arguments]
➜ nxlog-ce-2.10.7