RE: [syslog-ng]Errors Compiling 1.5.19 with TCP_WRAPPERS
I can't success also. I got suggestion to use other feature of syslog-ng that can do access-list like as TCP_WRAPPER. Hope this help Pat. -----Original Message----- From: Victor [mailto:victord@paid.com] Sent: Thursday, August 22, 2002 10:15 To: Syslog-ng Subject: [syslog-ng]Errors Compiling 1.5.19 with TCP_WRAPPERS I am trying to compile with tcp_wrappers, but I get this error: gcc -O2 -march=i686 -pipe -Wall -I/root/syslog-ng/work/src/libol-0.3.3/src -D_GNU_SOURCE -o syslog-ng main.o sources.o center.o filters.o destinations.o log.o cfgfile.o cfg-grammar.o cfg-lex.o affile.o afsocket.o afunix.o afinet.o afinter.o afuser.o afstreams.o afprogram.o afremctrl.o nscache.o utils.o syslog-names.o -lfl /root/syslog-ng/work/src/libol-0.3.3/src/.libs/libol.a -lnsl afinet.o: In function `do_open_afinet_connection': afinet.o(.text+0x3c3): undefined reference to `request_init' afinet.o(.text+0x3cf): undefined reference to `sock_host' afinet.o(.text+0x3d8): undefined reference to `hosts_access' collect2: ld returned 1 exit status make[3]: *** [syslog-ng] Error 1 Shouldn't it have something like -lwrap on the line above? Also, I heard on the mailing list that there is a patch for 1.5.19? Is there a link to it? What's the proper patch command to apply it? Thanks _______________________________________________ syslog-ng maillist - syslog-ng@lists.balabit.hu https://lists.balabit.hu/mailman/listinfo/syslog-ng Frequently asked questions at http://www.campin.net/syslog-ng/faq.html
On Thu, Aug 22, 2002 at 11:02:17AM +0700, Sangbutsarakum, Patai wrote:
I can't success also. I got suggestion to use other feature of syslog-ng that can do access-list like as TCP_WRAPPER.
as it seems the configure test is still not right. it does work for me (on Debian woody), but as it seems there are some platforms where the tcp wrapper test doesn't detect a usable -lwrap. Can somebody with a platform like this check why this test fails? old_LDFLAGS=$LDFLAGS LDFLAGS=-lwrap AC_CACHE_CHECK(for hosts_access in -lwrap, blb_cv_c_lwrap, [AC_TRY_LINK(, [ } int allow_severity; int deny_severity; extern int hosts_access(void); int foo(void) { hosts_access(); ], blb_cv_c_lwrap=yes, blb_cv_c_lwrap=no)]) LDFLAGS=$old_LDFLAGS -- Bazsi PGP info: KeyID 9AF8D0A9 Fingerprint CD27 CFB0 802C 0944 9CFD 804E C82C 8EB1
On Thu, Aug 22, 2002 at 11:02:17AM +0700, Sangbutsarakum, Patai wrote:
I can't success also. I got suggestion to use other feature of syslog-ng that can do access-list like as TCP_WRAPPER.
as it seems the configure test is still not right.
it does work for me (on Debian woody), but as it seems there are some platforms where the tcp wrapper test doesn't detect a usable -lwrap.
Can somebody with a platform like this check why this test fails?
How would I test this? I am running CRUX linux. tcp_wrappers 7.6. If I put this in a shell script, it fails on AC_CACHE_CHECK -- Also, all software I've seen uses --with-tcp-wrappers[=PATH] ^^^^ in ./configure. Perhaps that should be updated too. -- SSHD is compiled with tcp_wrappers and works. Here is openssh check, maybe this will help: # Check whether user wants TCP wrappers support TCPW_MSG="no" # Check whether --with-tcp-wrappers or --without-tcp-wrappers was given. if test "${with_tcp_wrappers+set}" = set; then withval="$with_tcp_wrappers" if test "x$withval" != "xno" ; then saved_LIBS="$LIBS" saved_LDFLAGS="$LDFLAGS" saved_CPPFLAGS="$CPPFLAGS" if test -n "${withval}" -a "${withval}" != "yes"; then if test -d "${withval}/lib"; then if test -n "${need_dash_r}"; then LDFLAGS="-L${withval}/lib -R${withval}/lib ${LDFLAGS}" else LDFLAGS="-L${withval}/lib ${LDFLAGS}" fi else if test -n "${need_dash_r}"; then LDFLAGS="-L${withval} -R${withval} ${LDFLAGS}" else LDFLAGS="-L${withval} ${LDFLAGS}" fi fi if test -d "${withval}/include"; then CPPFLAGS="-I${withval}/include ${CPPFLAGS}" else CPPFLAGS="-I${withval} ${CPPFLAGS}" fi fi LIBWRAP="-lwrap" LIBS="$LIBWRAP $LIBS" echo "$as_me:$LINENO: checking for libwrap" >&5 echo $ECHO_N "checking for libwrap... $ECHO_C" >&6 cat >conftest.$ac_ext <<_ACEOF #line $LINENO "configure" #include "confdefs.h" #include <tcpd.h> int deny_severity = 0, allow_severity = 0; #ifdef F77_DUMMY_MAIN # ifdef __cplusplus extern "C" # endif int F77_DUMMY_MAIN() { return 1; } #endif int main () { hosts_access(0); ; return 0; } _ACEOF rm -f conftest.$ac_objext conftest$ac_exeext if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 (eval $ac_link) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); } && { ac_try='test -s conftest$ac_exeext' { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 (eval $ac_try) 2>&5 ac_status=$? echo "$as_me:$LINENO: \$? = $ac_status" >&5 (exit $ac_status); }; }; then echo "$as_me:$LINENO: result: yes" >&5 echo "${ECHO_T}yes" >&6 cat >>confdefs.h <<\_ACEOF #define LIBWRAP 1 _ACEOF TCPW_MSG="yes" else echo "$as_me: failed program was:" >&5 cat conftest.$ac_ext >&5 { { echo "$as_me:$LINENO: error: *** libwrap missing" >&5 echo "$as_me: error: *** libwrap missing" >&2;} { (exit 1); exit 1; }; } fi rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext LIBS="$saved_LIBS" fi fi;
I just downloaded syslog-ng-1.5.20 to see if it builds on NetBSD with TCP wrappers. I'm happy to report that syslog-ng compiled properly this time (thanks Baszi!), but I did hit this problem compiling tests/test_nscache: tests/ [1] $ make gcc -g -O2 -Wall -I/usr/local/src/libol-0.3.3/src -D_GNU_SOURCE -o test_nscache test_nscache.o ../nscache.o -lwrap -lfl /usr/local/src/libol-0.3.3/src/.libs/libol.a /usr/lib/libwrap.so: undefined reference to `allow_severity' /usr/lib/libwrap.so: undefined reference to `deny_severity' collect2: ld returned 1 exit status *** Error code 1 I edited this line in tests/Makefile: LIBS = -lwrap -lfl /devel/build/libol-0.3.3/src/.libs/libol.a and removed "-lwrap", since tests_nscache doesn't use tcp wrappers. That fixed the problem. -- Ed
participants (4)
-
Balazs Scheidler
-
Ed Ravin
-
Sangbutsarakum, Patai
-
Victor