Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 405381 - app-admin/syslog-ng-3.3.4 fails to start with ld.gold - /usr/lib64/syslog-ng/libsyslog-ng-crypto.so: undefined symbol: RAND_file_name
Summary: app-admin/syslog-ng-3.3.4 fails to start with ld.gold - /usr/lib64/syslog-ng/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mr. Bones. (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2012-02-23 07:52 UTC by Michael Palimaka (kensington)
Modified: 2012-03-05 00:51 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build log (build.log,278.40 KB, text/plain)
2012-02-23 07:52 UTC, Michael Palimaka (kensington)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Palimaka (kensington) gentoo-dev 2012-02-23 07:52:52 UTC
Created attachment 302947 [details]
build log

After being built with gold, app-admin/syslog-ng-3.3.4 fails to start:

Error opening plugin module; module='afsocket', error='/usr/lib64/syslog-ng/libsyslog-ng-crypto.so: undefined symbol: RAND_file_name'
Error parsing source, source plugin unix-stream not found in /etc/syslog-ng/syslog-ng.conf at line 17, column 5:

    unix-stream("/dev/log");
    ^^^^^^^^^^^

syslog-ng documentation: http://www.balabit.com/support/documentation/?product=syslog-ng
mailing list: https://lists.balabit.hu/mailman/listinfo/syslog-ng
 * Configuration error. Please fix your configfile (/etc/syslog-ng/syslog-ng.conf)                                                                                [ !! ]
 * ERROR: syslog-ng failed to start


Portage 2.1.10.48 (hardened/linux/amd64, gcc-4.5.3-asneeded, glibc-2.14.1-r2, 3.2.6-hardened-libre x86_64)
=================================================================
System uname: Linux-3.2.6-hardened-libre-x86_64-06-17-with-gentoo-2.1
Timestamp of tree: Wed, 22 Feb 2012 19:45:01 +0000
app-shells/bash:          4.2_p20
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.2.2
dev-util/cmake:           2.8.7-r3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.8.4
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.11.3
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.2 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r2
Repositories: gentoo sunrise kensington qt kde x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -ggdb"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe -ggdb"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs collision-protect distlocks ebuild-locks fixlafiles multilib-strict news parallel-fetch protect-owned sandbox sfperms split-elog split-log splitdebug strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.internode.on.net/pub/gentoo/ http://distfiles.gentoo.org/"
LANG="en_AU.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/sunrise /var/lib/layman/kensington /var/lib/layman/qt /var/lib/layman/kde /usr/local/portage"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="aac acl acpi alsa amd64 apache2 apng asf background bash-completion bazaar berkdb bzip2 cairo cleartype cli consolekit corefonts cracklib crashreporter crypt cups cxx dbus deblob dri dvd ebook exceptions fam ffmpeg flac fontconfig gdbm git glib gmp gold gpm handbook hardened iconv ipv6 ithreads jit jpeg justify kde kontact lastfm less libnotify mikmod mmx mng modules mp3 mp4 mpeg mta mudflap multilib ncurses networkmanager nls nptl nptlonly ogg opengl openmp optimized-qmake pam pax_kernel pcap pcre phonon player png policykit pppd private-headers qt3support qt4 readline rss semantic-desktop session sftp sha512 smbclient spell sse sse2 ssl ssse3 startup-notification suhosin svg symlink sysfs tcpd theora threads threadsafe tiff truetype udev unicode upnp uuid vhosts vorbis webm xft xorg xscreensaver xvfb zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="*" APACHE2_MODULES="dav alias auth_basic authn_default auth_digest authn_file authz_host authz_user autoindex cgi deflate dir filter headers include info log_config mime mime_magic negotiation proxy proxy_http rewrite speling status vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby19" USERLAND="GNU" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2012-02-23 21:30:05 UTC
Does it work if you add:

sed -i -e '/libsyslog_ng_crypto_la_LIBADD/s/$/ -lcrypto/' lib/Makefile.am || die

after the epatch in the ebuild?
Comment 2 7v5w7go9ub0o 2012-02-24 22:54:39 UTC
Don't know what ld.gold is; I'm (newbie) having a similar issue; the way I read it, some plugins required to interpret the config file are not found, or are not being built:

 * Starting syslog-ng ...
Error opening plugin module; module='affile', error='libsyslog-ng.so.0: cannot open shared object file: No such file or directory'
Error opening plugin module; module='afprog', error='libsyslog-ng.so.0: cannot open shared object file: No such file or directory'
Error opening plugin module; module='afsocket', error='libsyslog-ng.so.0: cannot open shared object file: No such file or directory'
Error opening plugin module; module='afuser', error='libsyslog-ng.so.0: cannot open shared object file: No such file or directory'
Error opening plugin module; module='basicfuncs', error='libsyslog-ng.so.0: cannot open shared object file: No such file or directory'
Error opening plugin module; module='csvparser', error='libsyslog-ng.so.0: cannot open shared object file: No such file or directory'
Error opening plugin module; module='dbparser', error='libsyslog-ng.so.0: cannot open shared object file: No such file or directory'
Error opening plugin module; module='syslogformat', error='libsyslog-ng.so.0: cannot open shared object file: No such file or directory'
Error parsing source, source plugin unix-stream not found in /etc/syslog-ng/syslog-ng.conf at line 16, column 14:

source src { unix-stream("/dev/log"); internal(); };
Comment 3 Michael Palimaka (kensington) gentoo-dev 2012-02-27 08:23:02 UTC
(In reply to comment #1)
> Does it work if you add:
> 
> sed -i -e '/libsyslog_ng_crypto_la_LIBADD/s/$/ -lcrypto/' lib/Makefile.am ||
> die
> 
> after the epatch in the ebuild?
This solves the 'RAND_file_name' error, but is replaced with 'SSL_library_init'.

When adding '-lssl' too, it works correctly.
Comment 4 Mr. Bones. (RETIRED) gentoo-dev 2012-03-04 22:19:15 UTC
ok, I added both libraries.  Try it out and reopen if it's still not working.
Comment 5 7v5w7go9ub0o 2012-03-05 00:51:31 UTC
My issue, though having similar startup error messages, is now resolved.

With this new version of syslog-ng, my chroot suddenly requires /usr/lib64/syslog-ng present in the jail. Had been working fine without those libraries for the last decade (I surmise that the chroot has been  redesigned and is now more secure).