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.
I've fixed the init.d script issue, Thomas: any idea about MAKEOPTS related failure?
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.
(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?
Yes Please :)
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=""
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=""
Created attachment 157461 [details, diff] Fixes the issues See my git commit patch, it explains what's wrong.
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.
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'
Krzysiek, hold off on the commit until I fix this next one, I know what's wrong...
Created attachment 157471 [details, diff] Fixes the second issue That's what I get for patching Makefile.in..... :(
OK, now everything seems to work. Thanks for you effort :)
(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.
Created attachment 157563 [details] Full sandbox patch
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.
Fixed in CVS, Thanks for reporting!