<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
Chanchal Verma wrote:
<blockquote
cite="mid:OFFFF6E543.F4E91F6D-ON65257538.00487839-65257538.004946DE@csc.com"
type="cite"><br>
<font face="sans-serif" size="2">Hi,</font>
<br>
<br>
<font face="sans-serif" size="2">I am facing problem while builing
syslog-ng-2.1.3
on RHEL3 operating system. Configuration goes fine but it shows error
while
doing 'make'. Here is details of configuration option:</font>
<br>
<br>
<font face="sans-serif" size="2">champ@localhost syslog-ng-2.1.3]#
./configure
--enable-static-linking --prefix=/opt/soe/local/syslog-ng-2.1.3
EVTLOG_CFLAGS="-I/opt/soe/local/syslog-ng-2.1.3/eventlog/include/eventlog"
EVTLOG_LIBS="-L/opt/soe/local/syslog-ng-2.1.3/eventlog/lib"</font>
<br>
<font face="sans-serif" size="2"></font><br>
<font face="sans-serif" size="2">While doing 'make' following error
encountered:</font>
<br>
<br>
<font face="sans-serif" size="2">champ@localhost
syslog-ng-2.1.3]#make
(I have pasted last few lines of error message)</font>
<br>
<font face="sans-serif" size="2">.</font>
<br>
<font face="sans-serif" size="2">.</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(afinet.o)(.text+0x78a):/home/soetest1/syslog-ng-2.1.3/src/afinet.c:342:
undefined reference to `evt_tag_str'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(afinet.o)(.text+0xae7):
In function `afinet_dd_queue':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/afinet.c:522:
undefined reference to `evt_tag_str'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(stats.o)(.text+0xd3):
In function `stats_register_counter':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/stats.c:97:
undefined reference to `evt_tag_str'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(stats.o)(.text+0x1aa):/home/soetest1/syslog-ng-2.1.3/src/stats.c:140:
more undefined references to `evt_tag_str' follow</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(stats.o)(.text+0x3a8):
In function `stats_generate_log':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/stats.c:230:
undefined reference to `evt_tag_printf'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(stats.o)(.text+0x3b2):/home/soetest1/syslog-ng-2.1.3/src/stats.c:230:
undefined reference to `evt_rec_add_tag'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(fdwrite.o)(.text+0xad):
In function `fd_write_write_method':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/fdwrite.c:49:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(fdwrite.o)(.text+0xbe):/home/soetest1/syslog-ng-2.1.3/src/fdwrite.c:49:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(fdwrite.o)(.text+0x16e):
In function `fd_write_free_method':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/fdwrite.c:80:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(fdread.o)(.text+0x9d):
In function `fd_do_read':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/fdread.c:49:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(fdread.o)(.text+0xae):/home/soetest1/syslog-ng-2.1.3/src/fdread.c:49:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(fdread.o)(.text+0x1be):/home/soetest1/syslog-ng-2.1.3/src/fdread.c:103:
more undefined references to `evt_tag_int' follow</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(dnscache.o)(.text+0x2db):
In function `dns_cache_check_hosts':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/dnscache.c:221:
undefined reference to `evt_tag_errno'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(dnscache.o)(.text+0x2f0):/home/soetest1/syslog-ng-2.1.3/src/dnscache.c:221:
undefined reference to `evt_tag_str'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(apphook.o)(.text+0x47):
In function `register_application_hook':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/apphook.c:38:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(apphook.o)(.text+0x5c):/home/soetest1/syslog-ng-2.1.3/src/apphook.c:38:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(apphook.o)(.text+0x114):
In function `run_application_hook':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/apphook.c:56:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(serialize.o)(.text+0x43):
In function `serialize_archive_read_bytes':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/serialize.c:33:
undefined reference to `evt_tag_str'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(serialize.o)(.text+0xcb):
In function `serialize_archive_write_bytes':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/serialize.c:49:
undefined reference to `evt_tag_str'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(logreader.o)(.text+0xce):
In function `log_reader_fd_check':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/logreader.c:104:
undefined reference to `evt_tag_errno'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(logreader.o)(.text+0x19a):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:112:
undefined reference to `evt_tag_errno'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(logreader.o)(.text+0x30d):
In function `log_reader_handle_line':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/logreader.c:195:
undefined reference to `evt_tag_printf'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(logreader.o)(.text+0x6cf):
In function `log_reader_fetch_log':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/logreader.c:450:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(logreader.o)(.text+0x6e6):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:450:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(logreader.o)(.text+0x6f7):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:450:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(logreader.o)(.text+0x774):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:440:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(logreader.o)(.text+0x7c2):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:425:
undefined reference to `evt_tag_errno'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(logreader.o)(.text+0x7d3):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:425:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(logreader.o)(.text+0x8a5):
In function `log_reader_init':</font>
<br>
<font face="sans-serif" size="2">/home/soetest1/syslog-ng-2.1.3/src/logreader.c:479:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">libsyslog-ng.a(logreader.o)(.text+0x8ba):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:479:
undefined reference to `evt_tag_int'</font>
<br>
<font face="sans-serif" size="2">/usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libwrap.a(hosts_access.o)(.text+0x862):
In function `host_match':</font>
<br>
<font face="sans-serif" size="2">: undefined reference to
`yp_get_default_domain'</font>
<br>
<font face="sans-serif" size="2">collect2: ld returned 1 exit status</font>
<br>
<font face="sans-serif" size="2">make[2]: *** [syslog-ng] Error 1</font>
<br>
<font face="sans-serif" size="2">make[2]: Leaving directory
`/home/soetest1/syslog-ng-2.1.3/src'</font>
<br>
<font face="sans-serif" size="2">make[1]: *** [all-recursive] Error 1</font>
<br>
<font face="sans-serif" size="2">make[1]: Leaving directory
`/home/soetest1/syslog-ng-2.1.3'</font>
<br>
<font face="sans-serif" size="2">make: *** [all] Error 2</font>
<br>
<br>
<font face="sans-serif" size="2"></font><br>
</blockquote>
It's linking problem. You specify on command line only path to eventlog
headers, so problem is that linker can't find eventlog library to link
to.<br>
Try to add path to it at configure time. Or, maybe, your's eventlog
library is too old.<br>
<br>
<div class="moz-signature">-- <br>
<tt>Kostyantyn Gushtin
<br>
Software engineer</tt><br>
<img src="cid:part1.02030807.06060802@n-ix.com.ua" alt="N-iX LLC"><br>
<tt>Solutions for Your success<br>
<a href="http://www.n-ix.com">http://www.n-ix.com</a></tt>
</div>
</body>
</html>