[Bug 109] New: building on Cygwin fails in modules/dbparser
https://bugzilla.balabit.com/show_bug.cgi?id=109 Summary: building on Cygwin fails in modules/dbparser Product: syslog-ng Version: 3.2.x Platform: PC OS/Version: Other Status: NEW Severity: blocker Priority: unspecified Component: syslog-ng AssignedTo: bazsi@balabit.hu ReportedBy: vinschen@redhat.com Type of the Report: regression Estimated Hours: 0.0 Created an attachment (id=35) --> (https://bugzilla.balabit.com/attachment.cgi?id=35) Patch to fix build problem in modules/dbparser I just tested the new implementation from git, and gcc fails to build libsyslog-ng-patterndb.dll.a since a lot of function calls are missing: libtool: link: gcc -std=gnu99 -shared .libs/radix.o .libs/patterndb.o .libs/t imerwheel.o .libs/patternize.o -lssl -lcrypto -lz -lrt /usr/lib/libgmodule-2.0.dll.a -L/usr/lib /usr/lib/libglib-2.0.dll.a /usr/lib/libintl.dll.a /usr/lib/libiconv.dll.a /usr/lib/libevtlog.dll.a -lresolv /usr/lib/libpcre.dll.a -O2 -Wl,--export-all-symbols -o .libs/cygsyslog-ng-patterndb-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libsyslog-ng-patterndb.dll.a Creating library file: .libs/libsyslog-ng-patterndb.dll.a .libs/radix.o: In function `r_new_pnode': modules/dbparser/radix.c:374: undefined reference to `_log_msg_get_value_handl e' modules/dbparser/radix.c:618: undefined reference to `_msg_limit_internal_mess age' modules/dbparser/radix.c:618: undefined reference to `_log_msg_get_value_name' modules/dbparser/radix.c:618: undefined reference to `_msg_event_create' modules/dbparser/radix.c:629: undefined reference to `_msg_limit_internal_mess age' modules/dbparser/radix.c:567: undefined reference to `_msg_event_create' modules/dbparser/radix.c:674: undefined reference to `_msg_limit_internal_mess age' modules/dbparser/radix.c:674: undefined reference to `_msg_event_create' etc. The reason is that the dependency to libsyslog is missing. Would you mind to apply the attached patch? It fixes the build problem and the resulting pdbtool appears to work fine. Thanks, Corinna -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
https://bugzilla.balabit.com/show_bug.cgi?id=109 Balazs Scheidler <bazsi@balabit.hu> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution| |FIXED Status|NEW |RESOLVED --- Comment #1 from Balazs Scheidler <bazsi@balabit.hu> 2011-02-22 15:27:38 --- Thanks for reporting this problem and sorry for not coming back to you sooner. I've responded to one of your earlier emails regarding this problem and come up with a possible solution. If that helps, this ticket can be closed. For a reference here's the patch that should fix this issue in a different way: commit a3c2ab7e095f7638b3fa0ecf452c8a68025c6a07 Author: Balazs Scheidler <bazsi@balabit.hu> Date: Tue Feb 22 15:10:43 2011 +0100 dbparser: don't create a separate shared library for libsyslog-ng-patterndb Use a static library instead, linked into both the db-parser() plugin and the pdbtool binary. This solves the linking issues on Cygwin and doesn't publish an internal shared library from syslog-ng. Reported-By: Corinna Vinschen <vinschen@redhat.com> Signed-off-by: Balazs Scheidler <bazsi@balabit.hu> -- Configure bugmail: https://bugzilla.balabit.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
bugzilla@bugzilla.balabit.com