Hello, Sorry for the slow reply. I just tested the latest git, and I still get: libtool: link: gcc -std=gnu99 -dynamiclib -o .libs/libsyslog-ng.0.dylib .libs/misc.o .libs/utils.o .libs/messages.o .libs/syslog-names.o .libs/cfg.o .libs/filter.o .libs/logmsg.o .libs/logstamp.o .libs/msg-format.o .libs/nvtable.o .libs/logpipe.o .libs/logsource.o .libs/driver.o .libs/sgroup.o .libs/dgroup.o .libs/center.o .libs/templates.o .libs/logreader.o .libs/logwriter.o .libs/afinter.o .libs/children.o .libs/stats.o .libs/gsockaddr.o .libs/gsocket.o .libs/logtransport.o .libs/logproto.o .libs/memtrace.o .libs/persist-state.o .libs/dnscache.o .libs/serialize.o .libs/apphook.o .libs/timeutils.o .libs/tags.o .libs/alarms.o .libs/logparser.o .libs/logprocess.o .libs/logmpx.o .libs/logrewrite.o .libs/logmatcher.o .libs/gprocess.o .libs/globals.o .libs/control.o .libs/compat.o .libs/logqueue.o .libs/cfg-lexer.o .libs/cfg-lex.o .libs/cfg-parser.o .libs/cfg-grammar.o .libs/plugin.o .libs/filter-expr-grammar.o .libs/filter-expr-parser.o .libs/block-ref-grammar.o .libs/block-ref-parser.o .libs/pragma-grammar.o .libs/pragma-parser.o .libs/parser-expr-grammar.o .libs/parser-expr-parser.o .libs/rewrite-expr-grammar.o .libs/rewrite-expr-parser.o -L/opt/local/lib /opt/local/lib/libgmodule-2.0.dylib /opt/local/lib/libglib-2.0.dylib /opt/local/lib/libintl.dylib /opt/local/lib/libiconv.dylib -lc /opt/local/lib/libevtlog.dylib -lresolv /opt/local/lib/libpcre.dylib -ldl -O2 -framework Carbon -install_name /usr/local/lib/libsyslog-ng.0.dylib -compatibility_version 1 -current_version 1.0 -Wl,-single_module Undefined symbols: "_environ", referenced from: _g_process_set_argv_space in gprocess.o _g_process_set_argv_space in gprocess.o _g_process_set_argv_space in gprocess.o _g_process_set_argv_space in gprocess.o ld: symbol(s) not found collect2: ld returned 1 exit status make[3]: *** [libsyslog-ng.la] Error 1 make[2]: *** [all] Error 2 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 bash-3.2# Looking at the generated config.h: /* Specifies whether the environ global variable exists */ #define HAVE_ENVIRON 1 When I deleted the above lines, it compiles and works fine. So configure seems to provide false information... Bye, CzP On 10/31/2011 05:06 PM, Balazs Scheidler wrote:
Hi,
that patch is not suitable for inclusion as that would break support for other platforms.
I've committed this instead:
commit 13abb05aeeab5e56f73cf83352d0b83df6597faa Author: Balazs Scheidler <bazsi@balabit.hu> Date: Mon Oct 31 17:06:14 2011 +0100
detect if "environ" variable is present
MacOSX doesn't have an "environ" global, compile the setproctitle code conditionally. We could use _NSGetEnviron(), but the whole point of setting the proctitle is not that important, and I'm not completely sure that it actually works.
Changing the process title involves a lot of possibly unportable magic.
Reported-By: Peter Czanik <czanik@balabit.hu> Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
On Mon, 2011-10-31 at 09:40 +0100, Peter Czanik wrote:
On 10/22/2011 08:10 AM, Balazs Scheidler wrote:
Hi,
I wanted to publish a last maintenance release from the 3.2 branch before moving on to work on 3.4.
I've backported the relevant patches, tests have ran (both on my development computer and a separate build environment), but I'd like to ask anyone running 3.2.x to test it in more production-like environments. To compile on OS X, one patch should be added, which is available at the bottom of this homebrew script: https://raw.github.com/mxcl/homebrew/master/Library/Formula/syslog-ng.rb Bye,
-- Peter Czanik (CzP) <czanik@balabit.hu> BalaBit IT Security / syslog-ng upstream http://czanik.blogs.balabit.com/