When attempting to perform make on RHEL4 x86_64 for syslog-ng 2.0.0 I recieve the following errors. I have managed to find a previous post in July which mentions patching the source, however the attachment has been 'scrubbed' from the message. Anyone able to point me toward what I need to be doing to resolve these errors below? libsyslog-ng.a(misc.o)(.text+0x3d1): In function `resolve_hostname': /var/tmp/syslog-ng-2.0.0/src/misc.c:178: undefined reference to `g_assert_warning' libsyslog-ng.a(logmsg.o)(.text+0x97): In function `log_stamp_format': /var/tmp/syslog-ng-2.0.0/src/logmsg.c:111: undefined reference to `g_assert_warning' libsyslog-ng.a(logmsg.o)(.text+0x37e): In function `log_msg_ref': /var/tmp/syslog-ng-2.0.0/src/logmsg.c:489: undefined reference to `g_assert_warning' libsyslog-ng.a(logmsg.o)(.text+0x41f): In function `log_msg_unref': /var/tmp/syslog-ng-2.0.0/src/logmsg.c:503: undefined reference to `g_assert_warning' libsyslog-ng.a(logmsg.o)(.text+0xd8b): In function `log_msg_ack_block_end': /var/tmp/syslog-ng-2.0.0/src/logmsg.c:623: undefined reference to `g_return_if_fail_warning' libsyslog-ng.a(logpipe.o)(.text+0x58): In function `log_pipe_ref': /var/tmp/syslog-ng-2.0.0/src/logpipe.c:38: undefined reference to `g_assert_warning' libsyslog-ng.a(logpipe.o)(.text+0xa9): In function `log_pipe_unref': /var/tmp/syslog-ng-2.0.0/src/logpipe.c:47: undefined reference to `g_assert_warning' libsyslog-ng.a(center.o)(.text+0x9f): In function `log_endpoint_free': /var/tmp/syslog-ng-2.0.0/src/center.c:90: undefined reference to `g_assert_warning' libsyslog-ng.a(center.o)(.text+0x18d): In function `log_connection_new': /var/tmp/syslog-ng-2.0.0/src/center.c:132: undefined reference to `g_assert_warning' libsyslog-ng.a(templates.o)(.text+0x358): In function `log_template_ref': /var/tmp/syslog-ng-2.0.0/src/templates.c:169: undefined reference to `g_assert_warning' libsyslog-ng.a(templates.o)(.text+0x3bd):/var/tmp/syslog-ng-2.0.0/src/templates.c:180: more undefined references to `g_assert_warning' follow collect2: ld returned 1 exit status make[2]: *** [syslog-ng] Error 1 make[2]: Leaving directory `/var/tmp/syslog-ng-2.0.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/syslog-ng-2.0.0' make: *** [all] Error 2
On Mon, 2006-12-11 at 14:20 +1100, James Young wrote:
When attempting to perform make on RHEL4 x86_64 for syslog-ng 2.0.0 I recieve the following errors. I have managed to find a previous post in July which mentions patching the source, however the attachment has been 'scrubbed' from the message.
Anyone able to point me toward what I need to be doing to resolve these errors below?
Hmm.. those references should be resolved from glib, can you post your configure output and link parameters? What glib version are you using?
libsyslog-ng.a(misc.o)(.text+0x3d1): In function `resolve_hostname': /var/tmp/syslog-ng-2.0.0/src/misc.c:178: undefined reference to `g_assert_warning'
-- Bazsi
Hi Bazsi, Output of configure below. When I originally built on a i386 system I had an similar problem and I removed the GLIB2 which I had compiled myself and used the RedHat supplied one instead.. checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for gawk... gawk checking whether make sets $(MAKE)... yes checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ANSI C... none needed checking for style of include used by make... GNU checking dependency style of gcc... gcc3 checking for gcc option to accept ANSI C... none needed checking for bison... bison -y checking for flex... flex checking for yywrap in -lfl... yes checking lex output file root... lex.yy checking whether yytext is a pointer... yes checking whether make sets $(MAKE)... (cached) yes checking for ranlib... ranlib checking how to enable static linking for certain libraries... GNU or Solaris checking how to run the C preprocessor... gcc -E checking for egrep... grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking dmalloc.h usability... no checking dmalloc.h presence... no checking for dmalloc.h... no checking for strings.h... (cached) yes checking openssl/ssl.h usability... yes checking openssl/ssl.h presence... yes checking for openssl/ssl.h... yes checking getopt.h usability... yes checking getopt.h presence... yes checking for getopt.h... yes checking stropts.h usability... yes checking stropts.h presence... yes checking for stropts.h... yes checking sys/strlog.h usability... no checking sys/strlog.h presence... no checking for sys/strlog.h... no checking door.h usability... no checking door.h presence... no checking for door.h... no checking whether struct tm is in sys/time.h or time.h... time.h checking for struct tm.tm_gmtoff... yes checking for I_CONSLOG... no checking for O_LARGEFILE... yes checking for door_create in -ldoor... no checking for socket in -lsocket... no checking for nanosleep in -lrt... yes checking for gethostbyname in -lnsl... yes checking for regexec in -lregex... no checking for strdup... yes checking for strtol... yes checking for inet_aton... yes checking for inet_ntoa... yes checking for getopt_long... yes checking for getaddrinfo... yes checking whether to enable Sun STREAMS support... no checking whether to enable Sun door support... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for GLIB... yes checking for EVTLOG... yes checking for static GLib libraries... yes configure: creating ./config.status config.status: creating dist.conf config.status: creating Makefile config.status: creating syslog-ng.spec.bb config.status: creating src/Makefile config.status: creating doc/Makefile config.status: creating doc/docvars.xml config.status: creating contrib/Makefile config.status: creating tests/Makefile config.status: creating solbuild/Makefile config.status: creating tests/unit/Makefile config.status: creating tests/functional/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing depfiles commands
Hi Bazsi, Managed to work out the problem, removal of my compiled version of glib2 was incomplete and remants still existed in /usr/loca/lib etc. have managed to compile and install eventlog/syslog-ng using the default glib2 version supplied with redhat. Cheers On 12/11/06, Balazs Scheidler <bazsi@balabit.hu> wrote:
On Mon, 2006-12-11 at 14:20 +1100, James Young wrote:
When attempting to perform make on RHEL4 x86_64 for syslog-ng 2.0.0 I recieve the following errors. I have managed to find a previous post in July which mentions patching the source, however the attachment has been 'scrubbed' from the message.
Anyone able to point me toward what I need to be doing to resolve these errors below?
Hmm.. those references should be resolved from glib, can you post your configure output and link parameters? What glib version are you using?
libsyslog-ng.a(misc.o)(.text+0x3d1): In function `resolve_hostname': /var/tmp/syslog-ng-2.0.0/src/misc.c:178: undefined reference to `g_assert_warning'
-- Bazsi
_______________________________________________ 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
I have found it very useful to compile syslog-ng from SRC RPMs I grab off rpm.pbone.net. I had installed prior to build: rpm-build-4.3.3-18_nonptl, glib2-2.4.7-1, gcc-3.4.6-3, bison-1.875c-2, flex-2.5.4a-33 wget ftp://ftp.pbone.net/mirror/ftp.silfreed.net/repo/rhel/4/i386/silfreednet/SRPMS/eventlog-0.2.5-1.src.rpm rpm -i eventlog-0.2.5-1.src.rpm wget ftp://ftp.pbone.net/mirror/ftp.silfreed.net/repo/rhel/4/i386/silfreednet/SRPMS/syslog-ng-2.0.0-1.src.rpm rpm -i syslog-ng-2.0.0-1.src.rpm rpmbuild -bb /usr/src/redhat/SPECS/eventlog.spec rpm -i /usr/src/redhat/RPMS/x86_64/eventlog-0.2.5-1.x86_64.rpm /usr/src/redhat/RPMS/x86_64/eventlog-devel-0.2.5-1.x86_64.rpmrpmbuild -bb /usr/src/redhat/SPECS/syslog-ng.spec rpm -i /usr/src/redhat/RPMS/x86_64/syslog-ng-2.0.0-1.x86_64.rpm /usr/src/redhat/RPMS/x86_64/syslog-ng-vim-2.0.0-1.x86_64.rpm I've also found that the default configuration of SELinux with RHEL4 is fairly restrictive, preventing logging outside of /var/log or logging outside the file system that hosts /var/log, preventing /proc/kmsg from being read, or allowing syslog to console. If you must run SELinux, you might want to run: # Allow logging to console /usr/sbin/setsebool -P allow_syslog_to_console 1 # Allow logging to files/directories outside of /var/log /usr/sbin/setsebool -P syslogd_disable_trans 1 # Allow access to reading /proc/kmsg /usr/sbin/setsebool -P use_syslogng 1 Hope this helps some. -John On 12/10/2006 10:20 PM James Young said the following:
When attempting to perform make on RHEL4 x86_64 for syslog-ng 2.0.0 I recieve the following errors. I have managed to find a previous post in July which mentions patching the source, however the attachment has been 'scrubbed' from the message.
Anyone able to point me toward what I need to be doing to resolve these errors below?
libsyslog-ng.a(misc.o)(.text+0x3d1): In function `resolve_hostname': /var/tmp/syslog-ng-2.0.0/src/misc.c:178: undefined reference to `g_assert_warning' libsyslog-ng.a(logmsg.o)(.text+0x97): In function `log_stamp_format': /var/tmp/syslog-ng-2.0.0/src/logmsg.c:111: undefined reference to `g_assert_warning' libsyslog-ng.a(logmsg.o)(.text+0x37e): In function `log_msg_ref': /var/tmp/syslog-ng-2.0.0/src/logmsg.c:489: undefined reference to `g_assert_warning' libsyslog-ng.a(logmsg.o)(.text+0x41f): In function `log_msg_unref': /var/tmp/syslog-ng-2.0.0/src/logmsg.c:503: undefined reference to `g_assert_warning' libsyslog-ng.a(logmsg.o)(.text+0xd8b): In function `log_msg_ack_block_end': /var/tmp/syslog-ng-2.0.0/src/logmsg.c:623: undefined reference to `g_return_if_fail_warning' libsyslog-ng.a(logpipe.o)(.text+0x58): In function `log_pipe_ref': /var/tmp/syslog-ng-2.0.0/src/logpipe.c:38: undefined reference to `g_assert_warning' libsyslog-ng.a(logpipe.o)(.text+0xa9): In function `log_pipe_unref': /var/tmp/syslog-ng-2.0.0/src/logpipe.c:47: undefined reference to `g_assert_warning' libsyslog-ng.a(center.o)(.text+0x9f): In function `log_endpoint_free': /var/tmp/syslog-ng-2.0.0/src/center.c:90: undefined reference to `g_assert_warning' libsyslog-ng.a(center.o)(.text+0x18d): In function `log_connection_new': /var/tmp/syslog-ng-2.0.0/src/center.c:132: undefined reference to `g_assert_warning' libsyslog-ng.a(templates.o)(.text+0x358): In function `log_template_ref': /var/tmp/syslog-ng-2.0.0/src/templates.c:169: undefined reference to `g_assert_warning' libsyslog-ng.a(templates.o)(.text+0x3bd):/var/tmp/syslog- ng-2.0.0/src/templates.c:180: more undefined references to `g_assert_warning' follow collect2: ld returned 1 exit status make[2]: *** [syslog-ng] Error 1 make[2]: Leaving directory `/var/tmp/syslog-ng-2.0.0/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/syslog-ng-2.0.0' make: *** [all] Error 2
-- John Reddy jreddy@bnl.gov (631) 344-3284 Technology Architect ITD Unix Services Brookhaven National Labs
participants (3)
-
Balazs Scheidler
-
James Young
-
John Reddy