Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 228021 - net-im/jabberd-1.6.1.1 fails to compile with MAKEOPTS="-j5" and fails to install
Summary: net-im/jabberd-1.6.1.1 fails to compile with MAKEOPTS="-j5" and fails to install
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Krzysztof Pawlik (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-18 09:43 UTC by Emil Wojak
Modified: 2008-06-20 19:35 UTC (History)
1 user (show)

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


Attachments
net-im/jabberd-1.6.1.1 build.log of emerge with MAKEOPTS="-j5" (jabberd-1.6.1.1-build.log,42.94 KB, text/plain)
2008-06-18 16:11 UTC, Emil Wojak
Details
net-im/jabberd-1.6.1.1 build.log of emerge with MAKEOPTS="" (jabberd-1.6.1.1-sequencial-build.log,120.76 KB, text/plain)
2008-06-18 16:16 UTC, Emil Wojak
Details
Fixes the issues (commit-b8d156a,998 bytes, patch)
2008-06-18 16:37 UTC, Thomas Anderson (tanderson) (RETIRED)
Details | Diff
Fixes the second issue (commit-7d4cc66,1.62 KB, patch)
2008-06-18 17:27 UTC, Thomas Anderson (tanderson) (RETIRED)
Details | Diff
Full sandbox patch (jabberd-1.6.1.1-sandbox.patch,609 bytes, text/plain)
2008-06-19 10:25 UTC, Thomas Anderson (tanderson) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emil Wojak 2008-06-18 09:43:44 UTC
When I emerge it with MAKEOPTS="-j5" it fails leaving the following error messages:

 x86_64-pc-linux-gnu-gcc -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib -march=opteron -O2 -pipe -MT subj
ectAltName_asn1_tab.lo -MD -MP -MF .deps/subjectAltName_asn1_tab.Tpo -c subjectAltName_asn1_tab.c  -fPIC -DPIC -o .libs/subject
AltName_asn1_tab.o
 x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib -march=opteron -O2 -pipe -MT mio_
raw.lo -MD -MP -MF .deps/mio_raw.Tpo -c mio_raw.cc  -fPIC -DPIC -o .libs/mio_raw.o
 x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib -march=opteron -O2 -pipe -MT mio_
xml.lo -MD -MP -MF .deps/mio_xml.Tpo -c mio_xml.cc  -fPIC -DPIC -o .libs/mio_xml.o
if x86_64-pc-linux-gnu-g++ -DLOCALEDIR=\"/usr/share/locale\" -DHAVE_CONFIG_H -I. -I. -I.. -Ilib    -march=opteron -O2 -pipe -MT
 jabberd.o -MD -MP -MF ".deps/jabberd.Tpo" -c -o jabberd.o jabberd.cc; \
        then mv -f ".deps/jabberd.Tpo" ".deps/jabberd.Po"; else rm -f ".deps/jabberd.Tpo"; exit 1; fi
make[3]: *** No rule to make target `../jabberd/libjabberd.la', needed by `jabberd'.  Stop.
make[3]: *** Waiting for unfinished jobs....
mio_tls.cc: In function `int mio_ssl_starttls(mio_st*, int, const char*)':
mio_tls.cc:1375: warning: cast to pointer from integer of different size
subjectAltName_asn1_tab.c:42: warning: `subjectAltName_asn1_tab' initialized and declared `extern'
make[3]: Leaving directory `/var/tmp/portage/net-im/jabberd-1.6.1.1/work/jabberd14-1.6.1.1/jabberd'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-im/jabberd-1.6.1.1/work/jabberd14-1.6.1.1/jabberd'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-im/jabberd-1.6.1.1/work/jabberd14-1.6.1.1'
make: *** [all] Error 2
 *
 * ERROR: net-im/jabberd-1.6.1.1 failed.


So I emerged it with MAKEOPTS="" and the compile phase completed successfully, but then an error occured during the installation phase:
cp: cannot stat `/usr/portage/net-im/jabberd/files/jabberd-1.6.1.1.init': No such file or directory

And indeed that file is missing.
Helpful was either copying/linking jabberd-1.4.4.init to jabberd-1.6.1.1.init, or patching the ebuild to use the older init.
Comment 1 Krzysztof Pawlik (RETIRED) gentoo-dev 2008-06-18 12:25:14 UTC
I've fixed the init.d script issue, Thomas: any idea about MAKEOPTS related failure?
Comment 2 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-18 15:28:02 UTC
I can only reproduce this error when I comment out the epatch line that fixes parallel make issues(jabberd-1.6.1.1-parallel-make.patch). Emil, when you merge do you see this line?: 

 * Applying jabberd-1.6.1.1-parallel-make.patch ...                      [ ok ]

If you don't, then you're missing the patch that fixes this issue.
Comment 3 Emil Wojak 2008-06-18 15:43:27 UTC
(In reply to comment #2)
>  * Applying jabberd-1.6.1.1-parallel-make.patch ...                      [ ok ]

Yes, this patch is applied and it doesn't fix the issue in my case :(

Do you want me to attach the build log?
Comment 4 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-18 15:44:48 UTC
Yes Please :)
Comment 5 Emil Wojak 2008-06-18 16:11:56 UTC
Created attachment 157455 [details]
net-im/jabberd-1.6.1.1 build.log of emerge with MAKEOPTS="-j5"

OK, I know this was a stupid question ;)

And here's emerge --info output:

Portage 2.1.4.4 (hardened/amd64, gcc-3.4.6, glibc-2.6.1-r0, 2.6.18-xen x86_64)
=================================================================
System uname: 2.6.18-xen x86_64 Dual-Core AMD Opteron(tm) Processor 2212 HE
Timestamp of tree: Wed, 18 Jun 2008 04:00:01 +0000
app-shells/bash:     3.2_p33
dev-lang/python:     2.4.4-r13
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.5, 1.7.9-r1, 1.10.1
sys-devel/binutils:  2.18-r1
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-march=opteron -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer parallel-fetch sandbox sfperms strict unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo http://gentoo.mirrors.tds.net/gentoo"
LANG="pl_PL.UTF-8"
LC_ALL="pl_PL"
LINGUAS="pl en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude-from=/etc/portage/excluded_categories"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl aio amd64 apache2 bash-completion bashlogger berkdb bind-mysql bzip2 caps chroot cli cracklib crypt cscope ctype dba dovecot-sasl dynamicplugin enscript expat extensions flash flexresp2 gd geoip gsm hardened hardenedphp iconv idn imap inline ipv6 jabber justify libg++ logrotate maildir mbox midi multiuser mysql mysqli ncurses nls nntp nptl nptlonly objc odbc openmp pam pam_chroot pam_timestamp pcre perfprofiling perl pg-hier pic posix postgres prelude pwdb python react readline sasl session sftplogging sguil sidebar sieve slang snortsam sockets socks5 spell sse2 ssl subversion suexec svnserve symlink sysvipc test threads tidy timestats unicode urandom utf8 vda vhosts vim-syntax xattr xml xorg 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="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status substitute unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="apm ark chips cirrus cyrix dummy fbdev glint i128 i810 mach64 mga neomagic nv r128 radeon rendition s3 s3virge savage siliconmotion sis sisusb tdfx tga trident tseng v4l vesa vga vmware voodoo"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTDIR_OVERLAY

In a moment I'll attach build.log from an emerge with MAKEOPTS=""
Comment 6 Emil Wojak 2008-06-18 16:16:15 UTC
Created attachment 157457 [details]
net-im/jabberd-1.6.1.1 build.log of emerge with MAKEOPTS=""

Here's the promissed build.log from emerge with MAKEOPTS=""
Comment 7 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-18 16:37:34 UTC
Created attachment 157461 [details, diff]
Fixes the issues

See my git commit patch, it explains what's wrong.
Comment 8 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-18 16:50:44 UTC
Emil, This will be fixed whenever Krzysiek Pawlik has time to commit it. For now, you can apply my patch to the ebuild in /usr/portage/net-im/jabberd/jabberd-1.6.1.1.ebuild, and everything should work.
Comment 9 Emil Wojak 2008-06-18 17:15:49 UTC
Thanks! After I had applied your patch manually, jabberd compiled, however there were some problems in the way. Looks like sandbox is complaining:

make  install-data-hook
make[3]: Entering directory `/var/tmp/portage/net-im/jabberd-1.6.1.1/work/jabberd14-1.6.1.1/po'
for f in de.po fr.po hu.po it.po nl.po; do \
            test -z "/usr/share/locale/${f%.po}/LC_MESSAGES" || mkdir -p -- "/usr/share/locale/${f%.po}/LC_MESSAGES"; \
             msgfmt -o "/usr/share/locale/${f%.po}/LC_MESSAGES/jabberd14.mo" $f; \
             done
ACCESS DENIED  open_wr:   /usr/share/locale/de/LC_MESSAGES/jabberd14.mo
msgfmt: error while opening "/usr/share/locale/de/LC_MESSAGES/jabberd14.mo" for writing: Permission denied
ACCESS DENIED  open_wr:   /usr/share/locale/fr/LC_MESSAGES/jabberd14.mo
msgfmt: error while opening "/usr/share/locale/fr/LC_MESSAGES/jabberd14.mo" for writing: Permission denied
ACCESS DENIED  open_wr:   /usr/share/locale/hu/LC_MESSAGES/jabberd14.mo
msgfmt: error while opening "/usr/share/locale/hu/LC_MESSAGES/jabberd14.mo" for writing: Permission denied
ACCESS DENIED  open_wr:   /usr/share/locale/it/LC_MESSAGES/jabberd14.mo
msgfmt: error while opening "/usr/share/locale/it/LC_MESSAGES/jabberd14.mo" for writing: Permission denied
ACCESS DENIED  open_wr:   /usr/share/locale/nl/LC_MESSAGES/jabberd14.mo
msgfmt: error while opening "/usr/share/locale/nl/LC_MESSAGES/jabberd14.mo" for writing: Permission denied
make[3]: [install-data-hook] Error 1 (ignored)
make[3]: Leaving directory `/var/tmp/portage/net-im/jabberd-1.6.1.1/work/jabberd14-1.6.1.1/po'
Comment 10 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-18 17:20:09 UTC
Krzysiek, hold off on the commit until I fix this next one, I know what's wrong...
Comment 11 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-18 17:27:38 UTC
Created attachment 157471 [details, diff]
Fixes the second issue

That's what I get for patching Makefile.in..... :(
Comment 12 Emil Wojak 2008-06-18 18:14:00 UTC
OK, now everything seems to work. Thanks for you effort :)
Comment 13 Krzysztof Pawlik (RETIRED) gentoo-dev 2008-06-19 06:31:39 UTC
(In reply to comment #11)
> That's what I get for patching Makefile.in..... :(

Thomas: attach the complete, new version of patch. Also: when attachment becomes obsolete please mark it as such.
Comment 14 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-19 10:25:26 UTC
Created attachment 157563 [details]
Full sandbox patch
Comment 15 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-19 10:27:51 UTC
commit-b8d156a is the patch for the ebuild, you don't really want me to post the entire ebuild here do you?

The other non-obsoleted patch is the new patch, and replaces jabberd-1.6.1.1-sandbox.patch in CVS.
Comment 16 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2008-06-20 19:35:03 UTC
Fixed in CVS, Thanks for reporting!