[syslog-ng] sun streams in 1.9.6
John.Dickinson at nominet.org.uk
John.Dickinson at nominet.org.uk
Mon Nov 21 11:01:52 CET 2005
syslog-ng-bounces at lists.balabit.hu wrote on 15/11/2005 15:36:14:
> >
> > When I try to run it I get
> > STREAMS support not compiled in;
> > Segmentation Fault
>
> I've committed a fix for the detection, the code is there, however I
> haven't tried compiling it on Solaris for a long time now, so it might
> be possible it will not compile.
>
> The compilation log in case it fails would be appreciated.
Hi,
Sorry for the delay. Here is what I did
rm -rf syslog-ng-1.9.6
tar -xzf syslog-ng-1.9.6.tar.gz
cd syslog-ng-1.9.6
export PKG_CONFIG=/opt/pkgconfig/bin/pkg-config
export PKG_CONFIG_PATH=/opt/glib/lib/pkgconfig:/opt/eventlog/lib/pkgconfig
./configure --prefix=/opt/syslog-ng2 --with-glib=/opt/glib
--with-eventlog=/opt/eventlog --enable-sun-streams --enable-sun-door
--enable-dynamic-linking >& /tmp/syslog-1.9.configure.out
# Added the following to filter.c (as suggested in
https://lists.balabit.hu/pipermail/syslog-ng/2005-October/008060.html)
--------------------------------------------------
#define LOG_FACMASK 0x03f8 /* mask to extract facility part */
/* facility of pri */
#define LOG_FAC(p) (((p) & LOG_FACMASK) >> 3)
-----------------------------------------------------
make >& /tmp/syslog-1.9.make.out
make install
/opt/syslog-ng2/sbin/syslog-ng -f /etc/syslog-ng/syslog-ng.conf -s
STREAMS support not compiled in;
Segmentation Fault
There is no mention of HAVE_SUN_STREAMS anywhere in the Makefiles or
source apart from the #if in afstreams.c
grep -r HAVE_SUN_STREAMS *
src/afstreams.c:#if HAVE_SUN_STREAMS
this is the output of make:
make all-recursive
make[1]: Entering directory `/home2/jad/pkg/syslog-ng-1.9.6'
Making all in src
make[2]: Entering directory `/home2/jad/pkg/syslog-ng-1.9.6/src'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT misc.o -MD -MP -MF ".deps/misc.Tpo" \
-c -o misc.o `test -f 'misc.c' || echo './'`misc.c; \
then mv -f ".deps/misc.Tpo" ".deps/misc.Po"; \
else rm -f ".deps/misc.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT utils.o -MD -MP -MF ".deps/utils.Tpo" \
-c -o utils.o `test -f 'utils.c' || echo './'`utils.c; \
then mv -f ".deps/utils.Tpo" ".deps/utils.Po"; \
else rm -f ".deps/utils.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT messages.o -MD -MP -MF
".deps/messages.Tpo" \
-c -o messages.o `test -f 'messages.c' || echo './'`messages.c; \
then mv -f ".deps/messages.Tpo" ".deps/messages.Po"; \
else rm -f ".deps/messages.Tpo"; exit 1; \
fi
messages.c: In function `msg_send_internal_message':
messages.c:56: warning: int format, pid_t arg (arg 5)
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT gsockaddr.o -MD -MP -MF
".deps/gsockaddr.Tpo" \
-c -o gsockaddr.o `test -f 'gsockaddr.c' || echo './'`gsockaddr.c; \
then mv -f ".deps/gsockaddr.Tpo" ".deps/gsockaddr.Po"; \
else rm -f ".deps/gsockaddr.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT syslog-names.o -MD -MP -MF
".deps/syslog-names.Tpo" \
-c -o syslog-names.o `test -f 'syslog-names.c' || echo
'./'`syslog-names.c; \
then mv -f ".deps/syslog-names.Tpo" ".deps/syslog-names.Po"; \
else rm -f ".deps/syslog-names.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT macros.o -MD -MP -MF ".deps/macros.Tpo"
\
-c -o macros.o `test -f 'macros.c' || echo './'`macros.c; \
then mv -f ".deps/macros.Tpo" ".deps/macros.Po"; \
else rm -f ".deps/macros.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT logmsg.o -MD -MP -MF ".deps/logmsg.Tpo"
\
-c -o logmsg.o `test -f 'logmsg.c' || echo './'`logmsg.c; \
then mv -f ".deps/logmsg.Tpo" ".deps/logmsg.Po"; \
else rm -f ".deps/logmsg.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT cfg.o -MD -MP -MF ".deps/cfg.Tpo" \
-c -o cfg.o `test -f 'cfg.c' || echo './'`cfg.c; \
then mv -f ".deps/cfg.Tpo" ".deps/cfg.Po"; \
else rm -f ".deps/cfg.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT logpipe.o -MD -MP -MF
".deps/logpipe.Tpo" \
-c -o logpipe.o `test -f 'logpipe.c' || echo './'`logpipe.c; \
then mv -f ".deps/logpipe.Tpo" ".deps/logpipe.Po"; \
else rm -f ".deps/logpipe.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT driver.o -MD -MP -MF ".deps/driver.Tpo"
\
-c -o driver.o `test -f 'driver.c' || echo './'`driver.c; \
then mv -f ".deps/driver.Tpo" ".deps/driver.Po"; \
else rm -f ".deps/driver.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT sgroup.o -MD -MP -MF ".deps/sgroup.Tpo"
\
-c -o sgroup.o `test -f 'sgroup.c' || echo './'`sgroup.c; \
then mv -f ".deps/sgroup.Tpo" ".deps/sgroup.Po"; \
else rm -f ".deps/sgroup.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT dgroup.o -MD -MP -MF ".deps/dgroup.Tpo"
\
-c -o dgroup.o `test -f 'dgroup.c' || echo './'`dgroup.c; \
then mv -f ".deps/dgroup.Tpo" ".deps/dgroup.Po"; \
else rm -f ".deps/dgroup.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT center.o -MD -MP -MF ".deps/center.Tpo"
\
-c -o center.o `test -f 'center.c' || echo './'`center.c; \
then mv -f ".deps/center.Tpo" ".deps/center.Po"; \
else rm -f ".deps/center.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT filter.o -MD -MP -MF ".deps/filter.Tpo"
\
-c -o filter.o `test -f 'filter.c' || echo './'`filter.c; \
then mv -f ".deps/filter.Tpo" ".deps/filter.Po"; \
else rm -f ".deps/filter.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT logsource.o -MD -MP -MF
".deps/logsource.Tpo" \
-c -o logsource.o `test -f 'logsource.c' || echo './'`logsource.c; \
then mv -f ".deps/logsource.Tpo" ".deps/logsource.Po"; \
else rm -f ".deps/logsource.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT logreader.o -MD -MP -MF
".deps/logreader.Tpo" \
-c -o logreader.o `test -f 'logreader.c' || echo './'`logreader.c; \
then mv -f ".deps/logreader.Tpo" ".deps/logreader.Po"; \
else rm -f ".deps/logreader.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT logwriter.o -MD -MP -MF
".deps/logwriter.Tpo" \
-c -o logwriter.o `test -f 'logwriter.c' || echo './'`logwriter.c; \
then mv -f ".deps/logwriter.Tpo" ".deps/logwriter.Po"; \
else rm -f ".deps/logwriter.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT affile.o -MD -MP -MF ".deps/affile.Tpo"
\
-c -o affile.o `test -f 'affile.c' || echo './'`affile.c; \
then mv -f ".deps/affile.Tpo" ".deps/affile.Po"; \
else rm -f ".deps/affile.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT afunix.o -MD -MP -MF ".deps/afunix.Tpo"
\
-c -o afunix.o `test -f 'afunix.c' || echo './'`afunix.c; \
then mv -f ".deps/afunix.Tpo" ".deps/afunix.Po"; \
else rm -f ".deps/afunix.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT afinet.o -MD -MP -MF ".deps/afinet.Tpo"
\
-c -o afinet.o `test -f 'afinet.c' || echo './'`afinet.c; \
then mv -f ".deps/afinet.Tpo" ".deps/afinet.Po"; \
else rm -f ".deps/afinet.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT afsocket.o -MD -MP -MF
".deps/afsocket.Tpo" \
-c -o afsocket.o `test -f 'afsocket.c' || echo './'`afsocket.c; \
then mv -f ".deps/afsocket.Tpo" ".deps/afsocket.Po"; \
else rm -f ".deps/afsocket.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT afstreams.o -MD -MP -MF
".deps/afstreams.Tpo" \
-c -o afstreams.o `test -f 'afstreams.c' || echo './'`afstreams.c; \
then mv -f ".deps/afstreams.Tpo" ".deps/afstreams.Po"; \
else rm -f ".deps/afstreams.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT afuser.o -MD -MP -MF ".deps/afuser.Tpo"
\
-c -o afuser.o `test -f 'afuser.c' || echo './'`afuser.c; \
then mv -f ".deps/afuser.Tpo" ".deps/afuser.Po"; \
else rm -f ".deps/afuser.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT afprog.o -MD -MP -MF ".deps/afprog.Tpo"
\
-c -o afprog.o `test -f 'afprog.c' || echo './'`afprog.c; \
then mv -f ".deps/afprog.Tpo" ".deps/afprog.Po"; \
else rm -f ".deps/afprog.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT afinter.o -MD -MP -MF
".deps/afinter.Tpo" \
-c -o afinter.o `test -f 'afinter.c' || echo './'`afinter.c; \
then mv -f ".deps/afinter.Tpo" ".deps/afinter.Po"; \
else rm -f ".deps/afinter.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT cfg-lex.o -MD -MP -MF
".deps/cfg-lex.Tpo" \
-c -o cfg-lex.o `test -f 'cfg-lex.c' || echo './'`cfg-lex.c; \
then mv -f ".deps/cfg-lex.Tpo" ".deps/cfg-lex.Po"; \
else rm -f ".deps/cfg-lex.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT cfg-grammar.o -MD -MP -MF
".deps/cfg-grammar.Tpo" \
-c -o cfg-grammar.o `test -f 'cfg-grammar.c' || echo './'`cfg-grammar.c;
\
then mv -f ".deps/cfg-grammar.Tpo" ".deps/cfg-grammar.Po"; \
else rm -f ".deps/cfg-grammar.Tpo"; exit 1; \
fi
/home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/cfg-grammar.y: In
function `yyparse':
/home/bazsi/zwa/work/syslog-ng-2.0/syslog-ng/src/cfg-grammar.y:627:
warning: implicit declaration of function
`log_writer_options_set_template_escape'
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT fdwrite.o -MD -MP -MF
".deps/fdwrite.Tpo" \
-c -o fdwrite.o `test -f 'fdwrite.c' || echo './'`fdwrite.c; \
then mv -f ".deps/fdwrite.Tpo" ".deps/fdwrite.Po"; \
else rm -f ".deps/fdwrite.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT fdread.o -MD -MP -MF ".deps/fdread.Tpo"
\
-c -o fdread.o `test -f 'fdread.c' || echo './'`fdread.c; \
then mv -f ".deps/fdread.Tpo" ".deps/fdread.Po"; \
else rm -f ".deps/fdread.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT memtrace.o -MD -MP -MF
".deps/memtrace.Tpo" \
-c -o memtrace.o `test -f 'memtrace.c' || echo './'`memtrace.c; \
then mv -f ".deps/memtrace.Tpo" ".deps/memtrace.Po"; \
else rm -f ".deps/memtrace.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT templates.o -MD -MP -MF
".deps/templates.Tpo" \
-c -o templates.o `test -f 'templates.c' || echo './'`templates.c; \
then mv -f ".deps/templates.Tpo" ".deps/templates.Po"; \
else rm -f ".deps/templates.Tpo"; exit 1; \
fi
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT children.o -MD -MP -MF
".deps/children.Tpo" \
-c -o children.o `test -f 'children.c' || echo './'`children.c; \
then mv -f ".deps/children.Tpo" ".deps/children.Po"; \
else rm -f ".deps/children.Tpo"; exit 1; \
fi
rm -f libsyslog-ng.a
ar cru libsyslog-ng.a misc.o utils.o messages.o gsockaddr.o syslog-names.o
macros.o logmsg.o cfg.o logpipe.o driver.o sgroup.o dgroup.o center.o
filter.o logsource.o logreader.o logwriter.o affile.o afunix.o afinet.o
afsocket.o afstreams.o afuser.o afprog.o afinter.o cfg-lex.o cfg-grammar.o
fdwrite.o fdread.o memtrace.o templates.o children.o
ranlib libsyslog-ng.a
if gcc -DHAVE_CONFIG_H -I. -I. -I.. -I/opt/glib/include/glib-2.0
-I/opt/glib/lib/glib-2.0/include -I/opt/eventlog/include/eventlog
-D_GNU_SOURCE -g -O2 -Wall -g -MT main.o -MD -MP -MF ".deps/main.Tpo" \
-c -o main.o `test -f 'main.c' || echo './'`main.c; \
then mv -f ".deps/main.Tpo" ".deps/main.Po"; \
else rm -f ".deps/main.Tpo"; exit 1; \
fi
gcc -g -O2 -Wall -g -o syslog-ng main.o libsyslog-ng.a -lnsl -lsocket
-ldoor -ll -L/opt/glib/lib -lglib-2.0 -L/opt/eventlog/lib -levtlog
make[2]: Leaving directory `/home2/jad/pkg/syslog-ng-1.9.6/src'
Making all in tests
make[2]: Entering directory `/home2/jad/pkg/syslog-ng-1.9.6/tests'
Making all in unit
make[3]: Entering directory `/home2/jad/pkg/syslog-ng-1.9.6/tests/unit'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory `/home2/jad/pkg/syslog-ng-1.9.6/tests/unit'
Making all in functional
make[3]: Entering directory
`/home2/jad/pkg/syslog-ng-1.9.6/tests/functional'
make[3]: Nothing to be done for `all'.
make[3]: Leaving directory
`/home2/jad/pkg/syslog-ng-1.9.6/tests/functional'
make[3]: Entering directory `/home2/jad/pkg/syslog-ng-1.9.6/tests'
make[3]: Nothing to be done for `all-am'.
make[3]: Leaving directory `/home2/jad/pkg/syslog-ng-1.9.6/tests'
make[2]: Leaving directory `/home2/jad/pkg/syslog-ng-1.9.6/tests'
Making all in doc
make[2]: Entering directory `/home2/jad/pkg/syslog-ng-1.9.6/doc'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home2/jad/pkg/syslog-ng-1.9.6/doc'
Making all in contrib
make[2]: Entering directory `/home2/jad/pkg/syslog-ng-1.9.6/contrib'
make[2]: Nothing to be done for `all'.
make[2]: Leaving directory `/home2/jad/pkg/syslog-ng-1.9.6/contrib'
make[2]: Entering directory `/home2/jad/pkg/syslog-ng-1.9.6'
make[2]: Leaving directory `/home2/jad/pkg/syslog-ng-1.9.6'
make[1]: Leaving directory `/home2/jad/pkg/syslog-ng-1.9.6'
Let me know if you want the output of config.log
Thanks
John
More information about the syslog-ng
mailing list