[syslog-ng] Error encountered while building syslog-ng-2.1.3 on RHEL3
Kostyantyn Gushtin
kgushtin at n-ix.com.ua
Thu Jan 8 14:28:42 CET 2009
Chanchal Verma wrote:
>
> Hi,
>
> 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:
>
> champ at 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"
>
> While doing 'make' following error encountered:
>
> champ at localhost syslog-ng-2.1.3]#make (I have pasted last few lines
> of error message)
> .
> .
> libsyslog-ng.a(afinet.o)(.text+0x78a):/home/soetest1/syslog-ng-2.1.3/src/afinet.c:342:
> undefined reference to `evt_tag_str'
> libsyslog-ng.a(afinet.o)(.text+0xae7): In function `afinet_dd_queue':
> /home/soetest1/syslog-ng-2.1.3/src/afinet.c:522: undefined reference
> to `evt_tag_str'
> libsyslog-ng.a(stats.o)(.text+0xd3): In function
> `stats_register_counter':
> /home/soetest1/syslog-ng-2.1.3/src/stats.c:97: undefined reference to
> `evt_tag_str'
> 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
> libsyslog-ng.a(stats.o)(.text+0x3a8): In function `stats_generate_log':
> /home/soetest1/syslog-ng-2.1.3/src/stats.c:230: undefined reference to
> `evt_tag_printf'
> 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'
> libsyslog-ng.a(fdwrite.o)(.text+0xad): In function
> `fd_write_write_method':
> /home/soetest1/syslog-ng-2.1.3/src/fdwrite.c:49: undefined reference
> to `evt_tag_int'
> libsyslog-ng.a(fdwrite.o)(.text+0xbe):/home/soetest1/syslog-ng-2.1.3/src/fdwrite.c:49:
> undefined reference to `evt_tag_int'
> libsyslog-ng.a(fdwrite.o)(.text+0x16e): In function
> `fd_write_free_method':
> /home/soetest1/syslog-ng-2.1.3/src/fdwrite.c:80: undefined reference
> to `evt_tag_int'
> libsyslog-ng.a(fdread.o)(.text+0x9d): In function `fd_do_read':
> /home/soetest1/syslog-ng-2.1.3/src/fdread.c:49: undefined reference to
> `evt_tag_int'
> libsyslog-ng.a(fdread.o)(.text+0xae):/home/soetest1/syslog-ng-2.1.3/src/fdread.c:49:
> undefined reference to `evt_tag_int'
> 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
> libsyslog-ng.a(dnscache.o)(.text+0x2db): In function
> `dns_cache_check_hosts':
> /home/soetest1/syslog-ng-2.1.3/src/dnscache.c:221: undefined reference
> to `evt_tag_errno'
> libsyslog-ng.a(dnscache.o)(.text+0x2f0):/home/soetest1/syslog-ng-2.1.3/src/dnscache.c:221:
> undefined reference to `evt_tag_str'
> libsyslog-ng.a(apphook.o)(.text+0x47): In function
> `register_application_hook':
> /home/soetest1/syslog-ng-2.1.3/src/apphook.c:38: undefined reference
> to `evt_tag_int'
> libsyslog-ng.a(apphook.o)(.text+0x5c):/home/soetest1/syslog-ng-2.1.3/src/apphook.c:38:
> undefined reference to `evt_tag_int'
> libsyslog-ng.a(apphook.o)(.text+0x114): In function
> `run_application_hook':
> /home/soetest1/syslog-ng-2.1.3/src/apphook.c:56: undefined reference
> to `evt_tag_int'
> libsyslog-ng.a(serialize.o)(.text+0x43): In function
> `serialize_archive_read_bytes':
> /home/soetest1/syslog-ng-2.1.3/src/serialize.c:33: undefined reference
> to `evt_tag_str'
> libsyslog-ng.a(serialize.o)(.text+0xcb): In function
> `serialize_archive_write_bytes':
> /home/soetest1/syslog-ng-2.1.3/src/serialize.c:49: undefined reference
> to `evt_tag_str'
> libsyslog-ng.a(logreader.o)(.text+0xce): In function
> `log_reader_fd_check':
> /home/soetest1/syslog-ng-2.1.3/src/logreader.c:104: undefined
> reference to `evt_tag_errno'
> libsyslog-ng.a(logreader.o)(.text+0x19a):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:112:
> undefined reference to `evt_tag_errno'
> libsyslog-ng.a(logreader.o)(.text+0x30d): In function
> `log_reader_handle_line':
> /home/soetest1/syslog-ng-2.1.3/src/logreader.c:195: undefined
> reference to `evt_tag_printf'
> libsyslog-ng.a(logreader.o)(.text+0x6cf): In function
> `log_reader_fetch_log':
> /home/soetest1/syslog-ng-2.1.3/src/logreader.c:450: undefined
> reference to `evt_tag_int'
> libsyslog-ng.a(logreader.o)(.text+0x6e6):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:450:
> undefined reference to `evt_tag_int'
> libsyslog-ng.a(logreader.o)(.text+0x6f7):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:450:
> undefined reference to `evt_tag_int'
> libsyslog-ng.a(logreader.o)(.text+0x774):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:440:
> undefined reference to `evt_tag_int'
> libsyslog-ng.a(logreader.o)(.text+0x7c2):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:425:
> undefined reference to `evt_tag_errno'
> libsyslog-ng.a(logreader.o)(.text+0x7d3):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:425:
> undefined reference to `evt_tag_int'
> libsyslog-ng.a(logreader.o)(.text+0x8a5): In function `log_reader_init':
> /home/soetest1/syslog-ng-2.1.3/src/logreader.c:479: undefined
> reference to `evt_tag_int'
> libsyslog-ng.a(logreader.o)(.text+0x8ba):/home/soetest1/syslog-ng-2.1.3/src/logreader.c:479:
> undefined reference to `evt_tag_int'
> /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/../../../libwrap.a(hosts_access.o)(.text+0x862):
> In function `host_match':
> : undefined reference to `yp_get_default_domain'
> collect2: ld returned 1 exit status
> make[2]: *** [syslog-ng] Error 1
> make[2]: Leaving directory `/home/soetest1/syslog-ng-2.1.3/src'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/home/soetest1/syslog-ng-2.1.3'
> make: *** [all] Error 2
>
>
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.
Try to add path to it at configure time. Or, maybe, your's eventlog
library is too old.
--
Kostyantyn Gushtin
Software engineer
N-iX LLC
Solutions for Your success
http://www.n-ix.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.balabit.hu/pipermail/syslog-ng/attachments/20090108/40d45a72/attachment-0001.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: n-ix_small.gif
Type: image/gif
Size: 695 bytes
Desc: not available
Url : http://lists.balabit.hu/pipermail/syslog-ng/attachments/20090108/40d45a72/attachment-0001.gif
More information about the syslog-ng
mailing list