I just upgraded to syslog-ng Solaris 10 on a Sun server. When I went to test my syslog-ng.conf file I am getting the following error: ld.so.1: syslog-ng: fatal: relocation error: file /.alt.Solaris10/usr/local/sbin/syslog-ng: symbol g_malloc_n: referenced symbol not found It looks as though something is missing from a library or maybe a path is not set correctly. Here are the packages I installed: libiconv-1.13.1-sol10-sparc-local glib-2.25.13-sol10-sparc-local libintl-3.4.0-sol10-sparc-local libgcc-3.4.6-sol10-sparc-local pcre-8.10-sol10-sparc-local eventlog-0.2.12-sol10-sparc-local libpcap-1.1.1-sol10-sparc-local tcpdump-4.1.1-sol10-sparc-local syslogng-3.1.2-sol10-sparc-local I had originally installed gcc-3.4.6-sol10-sparc-local too, but then uninstalled all packages and then reinstalled everything except gcc-3.4.6-sol10-sparc-local. The instructions says one or the other. Anyone have any ideas on how to fix this? Thanks
On Fri, Jan 07, 2011 at 10:01:30AM -0500, Zeek Anow wrote:
I just upgraded to syslog-ng Solaris 10 on a Sun server. When I went to test my syslog-ng.conf file I am getting the following error:
ld.so.1: syslog-ng: fatal: relocation error: file /.alt.Solaris10/usr/local/sbin/syslog-ng: symbol g_malloc_n: referenced symbol not found
It looks as though something is missing from a library or maybe a path is not set correctly. Here are the packages I installed:
libiconv-1.13.1-sol10-sparc-local glib-2.25.13-sol10-sparc-local libintl-3.4.0-sol10-sparc-local libgcc-3.4.6-sol10-sparc-local pcre-8.10-sol10-sparc-local eventlog-0.2.12-sol10-sparc-local libpcap-1.1.1-sol10-sparc-local tcpdump-4.1.1-sol10-sparc-local syslogng-3.1.2-sol10-sparc-local
I had originally installed gcc-3.4.6-sol10-sparc-local too, but then uninstalled all packages and then reinstalled everything except gcc-3.4.6-sol10-sparc-local. The instructions says one or the other.
Anyone have any ideas on how to fix this?
Thanks
When I ran into these issues I had a fiew different causes, but I was using Linux, however these could apply in either case. 1) libdbi's build breaks your CFLAGS and this caused it to generate a corrupt output .so file 2) PKG_CONFIG_PATH was not right 3) some ./configure options related to libraries were not right The g_* symbols are usually in glib, so start your investigation there. Validating that the content of config.log makes sense is good. Make sure there are no other copies of libs sitting around, this hit me because my company compiles to a prefix and the linker got some screwed up old system libs in place of the prefix libs. Have a look at the symbols in the libs with nm, test the link with ldd, watch execution with truss / dtrace / dtruss / etc. HTH, Matthew.
Thanks Matthew!! Appreciate the info. In the past, the person who normally installs syslog-ng would just download it from sunfreeware.com and update all the libraries and and install it without any compiling. It always worked right out of the box except for the config file:)) I will look for the documentation and start reading. I normally do that anyway but was under a pretty strict timeline. Thanks again!! On Fri, Jan 7, 2011 at 2:35 PM, Matthew Hall <mhall@mhcomputing.net> wrote:
On Fri, Jan 07, 2011 at 10:01:30AM -0500, Zeek Anow wrote:
I just upgraded to syslog-ng Solaris 10 on a Sun server. When I went to test my syslog-ng.conf file I am getting the following error:
ld.so.1: syslog-ng: fatal: relocation error: file /.alt.Solaris10/usr/local/sbin/syslog-ng: symbol g_malloc_n: referenced symbol not found
It looks as though something is missing from a library or maybe a path is not set correctly. Here are the packages I installed:
libiconv-1.13.1-sol10-sparc-local glib-2.25.13-sol10-sparc-local libintl-3.4.0-sol10-sparc-local libgcc-3.4.6-sol10-sparc-local pcre-8.10-sol10-sparc-local eventlog-0.2.12-sol10-sparc-local libpcap-1.1.1-sol10-sparc-local tcpdump-4.1.1-sol10-sparc-local syslogng-3.1.2-sol10-sparc-local
I had originally installed gcc-3.4.6-sol10-sparc-local too, but then uninstalled all packages and then reinstalled everything except gcc-3.4.6-sol10-sparc-local. The instructions says one or the other.
Anyone have any ideas on how to fix this?
Thanks
When I ran into these issues I had a fiew different causes, but I was using Linux, however these could apply in either case.
1) libdbi's build breaks your CFLAGS and this caused it to generate a corrupt output .so file 2) PKG_CONFIG_PATH was not right 3) some ./configure options related to libraries were not right
The g_* symbols are usually in glib, so start your investigation there.
Validating that the content of config.log makes sense is good.
Make sure there are no other copies of libs sitting around, this hit me because my company compiles to a prefix and the linker got some screwed up old system libs in place of the prefix libs.
Have a look at the symbols in the libs with nm, test the link with ldd, watch execution with truss / dtrace / dtruss / etc.
HTH, Matthew.
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
On Sat, Jan 08, 2011 at 09:15:41AM -0500, Fred Connolly wrote:
Thanks Matthew!! Appreciate the info.
In the past, the person who normally installs syslog-ng would just download it from sunfreeware.com and update all the libraries and and install it without any compiling. It always worked right out of the box except for the config file:))
I will look for the documentation and start reading. I normally do that anyway but was under a pretty strict timeline.
Thanks again!!
I am surprised the version from sunfreeware is not working right. Or were you compiling it from source this time instead to get a newer version? Anyhow, if you are compiling from source you might as well use 3.2 because you get bugfixes, event correlation, and more configuration flexibility. Matthew.
I was surprised too. I took version Syslog-ng 3.1.2, which is the only version on Sunfreeware. Then downloaded and installed all of the latest libraries etc from Sunfreeware and double/tripled checked them to ensure I didn't miss anything. I've never compiled anything from Sunfreeware because I never had to:)) Everything always worked perfectly the first time. I will get a second set of eyes to verify everything next week. There is always a chance I missed something. Hate it when that happens:)) Thanks again for your replies.. On Sat, Jan 8, 2011 at 1:13 PM, Matthew Hall <mhall@mhcomputing.net> wrote:
On Sat, Jan 08, 2011 at 09:15:41AM -0500, Fred Connolly wrote:
Thanks Matthew!! Appreciate the info.
In the past, the person who normally installs syslog-ng would just download it from sunfreeware.com and update all the libraries and and install it without any compiling. It always worked right out of the box except for the config file:))
I will look for the documentation and start reading. I normally do that anyway but was under a pretty strict timeline.
Thanks again!!
I am surprised the version from sunfreeware is not working right.
Or were you compiling it from source this time instead to get a newer version?
Anyhow, if you are compiling from source you might as well use 3.2 because you get bugfixes, event correlation, and more configuration flexibility.
Matthew.
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
On Fri, 2011-01-07 at 10:01 -0500, Zeek Anow wrote:
I just upgraded to syslog-ng Solaris 10 on a Sun server. When I went to test my syslog-ng.conf file I am getting the following error:
ld.so.1: syslog-ng: fatal: relocation error: file /.alt.Solaris10/usr/local/sbin/syslog-ng: symbol g_malloc_n: referenced symbol not found
this seems to indicate that syslog-ng is being linked against an old version of glib at runtime. but glib 2.25 should be ok, are you absolutely sure that syslog-ng is using the one installed by the sunfreeware package?
It looks as though something is missing from a library or maybe a path is not set correctly. Here are the packages I installed:
libiconv-1.13.1-sol10-sparc-local glib-2.25.13-sol10-sparc-local libintl-3.4.0-sol10-sparc-local libgcc-3.4.6-sol10-sparc-local pcre-8.10-sol10-sparc-local eventlog-0.2.12-sol10-sparc-local libpcap-1.1.1-sol10-sparc-local tcpdump-4.1.1-sol10-sparc-local syslogng-3.1.2-sol10-sparc-local
I had originally installed gcc-3.4.6-sol10-sparc-local too, but then uninstalled all packages and then reinstalled everything except gcc-3.4.6-sol10-sparc-local. The instructions says one or the other.
Anyone have any ideas on how to fix this?
Thanks
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
-- Bazsi
No, I am not 100% sure. I uninstalled the previous version and installed the latest. I have not yet found out how to check that. Thanks for the reply!! On Thu, Jan 13, 2011 at 6:16 AM, Balazs Scheidler <bazsi@balabit.hu> wrote:
On Fri, 2011-01-07 at 10:01 -0500, Zeek Anow wrote:
I just upgraded to syslog-ng Solaris 10 on a Sun server. When I went to test my syslog-ng.conf file I am getting the following error:
ld.so.1: syslog-ng: fatal: relocation error: file /.alt.Solaris10/usr/local/sbin/syslog-ng: symbol g_malloc_n: referenced symbol not found
this seems to indicate that syslog-ng is being linked against an old version of glib at runtime. but glib 2.25 should be ok, are you absolutely sure that syslog-ng is using the one installed by the sunfreeware package?
It looks as though something is missing from a library or maybe a path is not set correctly. Here are the packages I installed:
libiconv-1.13.1-sol10-sparc-local glib-2.25.13-sol10-sparc-local libintl-3.4.0-sol10-sparc-local libgcc-3.4.6-sol10-sparc-local pcre-8.10-sol10-sparc-local eventlog-0.2.12-sol10-sparc-local libpcap-1.1.1-sol10-sparc-local tcpdump-4.1.1-sol10-sparc-local syslogng-3.1.2-sol10-sparc-local
I had originally installed gcc-3.4.6-sol10-sparc-local too, but then uninstalled all packages and then reinstalled everything except gcc-3.4.6-sol10-sparc-local. The instructions says one or the other.
Anyone have any ideas on how to fix this?
Thanks
______________________________________________________________________________
Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
-- Bazsi
______________________________________________________________________________ Member info: https://lists.balabit.hu/mailman/listinfo/syslog-ng Documentation: http://www.balabit.com/support/documentation/?product=syslog-ng FAQ: http://www.campin.net/syslog-ng/faq.html
On Thu, 2011-01-13 at 23:16 -0500, Fred Connolly wrote:
No, I am not 100% sure. I uninstalled the previous version and installed the latest. I have not yet found out how to check that.
ldd on the sysog-ng binary? -- Bazsi
participants (4)
-
Balazs Scheidler
-
Fred Connolly
-
Matthew Hall
-
Zeek Anow