Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
syslog-ng-3.6.2 fails during compile phase [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Mon Jan 05, 2015 10:37 pm    Post subject: syslog-ng-3.6.2 fails during compile phase [SOLVED] Reply with quote

Hello all,

For some reason, I can't seem to compile syslog-ng-3.6.2. The last messages during the compile phase are:

Code:

libtool: link: ( cd "modules/syslogformat/.libs" && rm -f "libsyslogformat.la" && ln -s "../libsyslogformat.la" "libsyslogformat.la" )
libtool: link: ( cd "modules/affile/.libs" && rm -f "libaffile.la" && ln -s "../libaffile.la" "libaffile.la" )
libtool: link: ( cd "modules/system-source/.libs" && rm -f "libsystem-source.la" && ln -s "../libsystem-source.la" "libsystem-source.la" )
libtool: link: ( cd "modules/confgen/.libs" && rm -f "libconfgen.la" && ln -s "../libconfgen.la" "libconfgen.la" )
libtool: link: ( cd "modules/afprog/.libs" && rm -f "libafprog.la" && ln -s "../libafprog.la" "libafprog.la" )
libtool: link: ( cd "modules/afuser/.libs" && rm -f "libafuser.la" && ln -s "../libafuser.la" "libafuser.la" )
libtool: link: ( cd "modules/csvparser/.libs" && rm -f "libcsvparser.la" && ln -s "../libcsvparser.la" "libcsvparser.la" )
libtool: link: ( cd "modules/basicfuncs/.libs" && rm -f "libbasicfuncs.la" && ln -s "../libbasicfuncs.la" "libbasicfuncs.la" )
libtool: link: ( cd "modules/linux-kmsg-format/.libs" && rm -f "liblinux-kmsg-format.la" && ln -s "../liblinux-kmsg-format.la" "liblinux-kmsg-format.la" )
libtool: link: ( cd "lib/.libs" && rm -f "libsyslog-ng-crypto.la" && ln -s "../libsyslog-ng-crypto.la" "libsyslog-ng-crypto.la" )
libtool: link: ( cd "modules/afsocket/.libs" && rm -f "libafsocket-notls.la" && ln -s "../libafsocket-notls.la" "libafsocket-notls.la" )
libtool: link: ( cd "modules/afstomp/.libs" && rm -f "libafstomp.la" && ln -s "../libafstomp.la" "libafstomp.la" )
libtool: link: ( cd "modules/pseudofile/.libs" && rm -f "libpseudofile.la" && ln -s "../libpseudofile.la" "libpseudofile.la" )
libtool: link: ( cd "modules/graphite/.libs" && rm -f "libgraphite.la" && ln -s "../libgraphite.la" "libgraphite.la" )
Makefile:9846: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
Makefile:4042: recipe for target 'all' failed
make: *** [all] Error 2


It was compiled with the following options:

Code:

# emerge -avuDN world

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild     U  ] app-admin/syslog-ng-3.6.2 [3.6.1] USE="ssl tcpd -amqp -caps -dbi -geoip -ipv6 -json -mongodb -pacct -redis -smtp -spoof-source -systemd" 0 KiB


and here is the output of emerge --info:

Code:

Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.4, glibc-2.20-r1, 3.2.6-gentoo x86_64)
=================================================================
System uname: Linux-3.2.6-gentoo-x86_64-AMD_Opteron-tm-_Processor_4284-with-gentoo-2.2
KiB Mem:    32926044 total,    925768 free
KiB Swap:     262140 total,    245636 free
Timestamp of tree: Mon, 05 Jan 2015 21:45:02 +0000
sh bash 4.3_p33
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.4
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo http://lug.mtu.edu/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j17"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv jpeg mmx modules multilib mysql ncurses nls nptl openmp pam pcre php png readline session sse sse2 ssl tcpd unicode xml zlib" ABI_X86="64" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, USE_PYTHON


Any ideas?

Cheers,
Nathan Zachary
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---


Last edited by NathanZachary on Tue Feb 24, 2015 5:08 pm; edited 1 time in total
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Tue Jan 06, 2015 4:33 am    Post subject: Reply with quote

Can you pastebin a full compile log, or at least get some more context above what you posted?

Also worth trying, turn off all the use flags you can on the package and see if it changes anything.
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Tue Jan 06, 2015 5:52 pm    Post subject: Reply with quote

Thanks for the reply, BradN. Here's the full build log:

http://pastebin.com/ztaDwjCV

and here's some additional information:

Code:

emerge --info '=app-admin/syslog-ng-3.6.2::gentoo'
Portage 2.2.15 (python 2.7.9-final-0, default/linux/amd64/13.0, gcc-4.8.4, glibc-2.20-r1, 3.2.6-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.2.6-gentoo-x86_64-AMD_Opteron-tm-_Processor_4284-with-gentoo-2.2
KiB Mem:    32926044 total,    640092 free
KiB Swap:     262140 total,    245492 free
Timestamp of tree: Tue, 06 Jan 2015 16:45:01 +0000
sh bash 4.3_p33
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33
dev-lang/perl:            5.20.1-r4
dev-lang/python:          2.7.9-r1, 3.3.5-r1, 3.4.2
dev-util/cmake:           3.0.2
dev-util/pkgconfig:       0.28-r2
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.13.6
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.69
sys-devel/automake:       1.14.1
sys-devel/binutils:       2.24-r3
sys-devel/gcc:            4.8.4
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.4
sys-devel/make:           4.1-r1
sys-kernel/linux-headers: 3.18 (virtual/os-headers)
sys-libs/glibc:           2.20-r1
Repositories: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs config-protect-if-modified distlocks ebuild-locks fail-clean fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://mirror.usu.edu/mirrors/gentoo http://www.gtlib.gatech.edu/pub/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo http://lug.mtu.edu/gentoo"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,--as-needed"
MAKEOPTS="-j17"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-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=""
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="acl amd64 apache2 berkdb bzip2 cli cracklib crypt cxx dri fortran gdbm iconv jpeg mmx modules multilib mysql ncurses nls nptl openmp pam pcre php png readline session sse sse2 ssl tcpd unicode xml zlib" ABI_X86="64" 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="prefork" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" 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, USE_PYTHON


and

Code:

emerge -pqv '=app-admin/syslog-ng-3.6.2::gentoo'
[ebuild     U ] app-admin/syslog-ng-3.6.2 [3.6.1] USE="ssl tcpd -amqp -caps -dbi -geoip -ipv6 -json -mongodb -pacct -redis -smtp -spoof-source -systemd"


Cheers,
Nathan Zachary
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
BradN
Advocate
Advocate


Joined: 19 Apr 2002
Posts: 2391
Location: Wisconsin (USA)

PostPosted: Sat Jan 10, 2015 12:10 am    Post subject: Reply with quote

Here is the part that failed:

Code:
libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -shared  -fPIC -DPIC  modules/confgen/.libs/modules_confgen_libconfgen_la-confgen-plugin.o   -Wl,-rpath -Wl,/var/tmp/portage/app-admin/syslog-ng-3.6.2/work/syslog-ng-3.6.2/lib/.libs ./lib/.libs/libsyslog-ng.so  -march=native -O2 -pthread -Wl,--as-needed   -pthread -Wl,-soname -Wl,libconfgen.so -o modules/confgen/.libs/libconfgen.so
libtool: link: cannot find the library `./lib/libsyslog-ng-crypto.la' or unhandled argument `./lib/libsyslog-ng-crypto.la'
Makefile:5899: recipe for target 'syslog-ng-ctl/syslog-ng-ctl' failed


I suspect if you turn off ssl use flag for this package it may build.
Back to top
View user's profile Send private message
DoPlJoe
n00b
n00b


Joined: 04 Feb 2013
Posts: 6

PostPosted: Sat Jan 24, 2015 12:20 am    Post subject: Reply with quote

BradN wrote:
Here is the part that failed:

Code:
libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -shared  -fPIC -DPIC  modules/confgen/.libs/modules_confgen_libconfgen_la-confgen-plugin.o   -Wl,-rpath -Wl,/var/tmp/portage/app-admin/syslog-ng-3.6.2/work/syslog-ng-3.6.2/lib/.libs ./lib/.libs/libsyslog-ng.so  -march=native -O2 -pthread -Wl,--as-needed   -pthread -Wl,-soname -Wl,libconfgen.so -o modules/confgen/.libs/libconfgen.so
libtool: link: cannot find the library `./lib/libsyslog-ng-crypto.la' or unhandled argument `./lib/libsyslog-ng-crypto.la'
Makefile:5899: recipe for target 'syslog-ng-ctl/syslog-ng-ctl' failed


I suspect if you turn off ssl use flag for this package it may build.


I had the exact same problem and emerging with USE="-ssl" did allow the compile to finish successfully.

However since older versions of syslog-ng compile with no issues, I assume this is a bug. I was unable to find a bug-report, was one filed for this already and if so, could someone provide me with a link.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Sat Jan 24, 2015 2:00 am    Post subject: Reply with quote

BradN wrote:
Code:
libtool: link: x86_64-pc-linux-gnu-gcc -std=gnu99 -shared  -fPIC -DPIC  modules/confgen/.libs/modules_confgen_libconfgen_la-confgen-plugin.o   -Wl,-rpath -Wl,/var/tmp/portage/app-admin/syslog-ng-3.6.2/work/syslog-ng-3.6.2/lib/.libs ./lib/.libs/libsyslog-ng.so  -march=native -O2 -pthread -Wl,--as-needed   -pthread -Wl,-soname -Wl,libconfgen.so -o modules/confgen/.libs/libconfgen.so
libtool: link: cannot find the library `./lib/libsyslog-ng-crypto.la' or unhandled argument `./lib/libsyslog-ng-crypto.la'
Makefile:5899: recipe for target 'syslog-ng-ctl/syslog-ng-ctl' failed

Nathan ... looking at the path '*/lib/.libs' and then 'cannot find the library ./lib/*' that looks to me like something in the build system probably intends to set './lib' but provides '/.lib'. Anyhow, given MAKEOPTS="-j17" have you tried a build with '-j1'?

best ... khay
Back to top
View user's profile Send private message
HTS
Guru
Guru


Joined: 20 Feb 2006
Posts: 410
Location: Bristol, UK

PostPosted: Mon Feb 09, 2015 2:36 pm    Post subject: Reply with quote

Same problem here with MAKEOPTS="-j24"

Changing to MAKEOPTS="-j1" seems to fix the issue...
_________________
Plasma desktop on Core i7 8086K OC @ 5GHz, 64GB DDR4, 2 x M.2 Samsung 970 PRO 1TB SSDs
Back to top
View user's profile Send private message
NathanZachary
Moderator
Moderator


Joined: 30 Jan 2007
Posts: 2605

PostPosted: Tue Feb 24, 2015 5:08 pm    Post subject: Reply with quote

Interestingly, using MAKEOPTS="-j1" worked for me as well. Very strange, but I'll take it. Thank you for the advice!

Cheers,
Nathan Zachary
_________________
“Truth, like infinity, is to be forever approached but never reached.” --Jean Ayres (1972)
---avatar cropped from =AimanStudio---
Back to top
View user's profile Send private message
jagdpanther
l33t
l33t


Joined: 22 Nov 2003
Posts: 729

PostPosted: Sat Mar 14, 2015 1:30 pm    Post subject: Reply with quote

I just had the same issue as the original poster. Turning off parallel compile (ie. MAKEOPTS="-j1" emerge syslog-ng) 'solved' this for me also. Thanks for the tip.
Back to top
View user's profile Send private message
Chainsaw
Retired Dev
Retired Dev


Joined: 25 Jul 2003
Posts: 49
Location: Peterborough, Cambridgeshire, UK

PostPosted: Mon Mar 23, 2015 1:00 pm    Post subject: Reply with quote

I have attached a patch and ebuild diff to the bug. If anyone could test, that would be most appreciated.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum