Hello, I recently installed 5.3 on my mail/imap/http server. As I've used syslog-ng for years, as part of the customization process I edit /etc/rc and change "syslog" to "syslog_ng". There has been a problem in the past with syslog-ng not finding libraries in /usr/local/lib because at the point in rc where syslog is started "ldconfig" has not yet run.
In 5.2 (and possibly in previous versions) this was solved by setting up the "rc_pre" hook to run "/sbin/ldconfig -m /usr/local/lib". This worked on 5.2. This seems to be the "official" solution, as the syslog_ng start script now contains the rc_pre hook. On 5.3 this fails, because "/var/run/ld.so.hints" does not exist, and "ldconfig -m <path>" cannot "merge" anything into it. I realize that I will be cursed and derided for editing /etc/rc, and one solution would be to simply turn off syslog by adding "syslogd_flags=NO" to rc.conf.local, and adding "syslog_ng" to rc.conf.local's pkg_scripts list. This solution does not appeal to me because there is a fair chunk of code in /etc/rc between the start of syslog and where the pkg_scripts are run, for which no messages will be logged. I do not like the idea of losing log messages, particularly those generated when services start. My current solution is to call syslog-ng prefixed by "LD_LIBRARY_PATH=/usr/local/lib". I am happy with this, but someone might fancy getting the "official" solution to work again. cheers, Rob Urban

