Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296913 - app-arch/p7zip-4.65 builds .so files on Darwin, fails with USE="rar"
Summary: app-arch/p7zip-4.65 builds .so files on Darwin, fails with USE="rar"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: All OS X
: High normal (vote)
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-14 17:26 UTC by Stuart Shelton
Modified: 2009-12-18 12:02 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Shelton 2009-12-14 17:26:29 UTC
When built without USE flags, p7zip succeeds but notes:

 * QA Notice: Found .so dynamic libraries on Darwin:
 *     opt/gentoo/usr/lib/p7zip/7z.so

... prior to installation.

However, with USE="rar" the build process fails with:

c++ -O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe -DENV_MACOSX -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNDEBUG -D_REENTRANT -DENV_UNIX  -DEXTERNAL_CODECS -DCOMPRESS_MT -DCOMPRESS_BZIP2_MT -DCOMPRESS_MF_MT -bundle -o ../../../../bin/7z.so  wine_date_and_time.o myGetTickCount.o CRC.o IntToString.o MyMap.o MyString.o MyWindows.o MyXml.o StringConvert.o StringToInt.o MyVector.o UTFConvert.o Wildcard.o  FileDir.o FileFind.o FileIO.o PropVariant.o PropVariantUtils.o Synchronization.o System.o Time.o  InBuffer.o InOutTempBuffer.o CreateCoder.o FilterCoder.o LimitedStreams.o LockedStream.o MethodId.o MethodProps.o MemBlocks.o OffsetStream.o OutBuffer.o OutMemStream.o ProgressMt.o ProgressUtils.o StreamBinder.o StreamObjects.o StreamUtils.o VirtThread.o  ArchiveExports.o DllExports2.o ArjHandler.o DebHandler.o DmgHandler.o ElfHandler.o MachoHandler.o MubHandler.o PeHandler.o RpmHandler.o XarHandler.o ZHandler.o  CoderMixer2.o CoderMixer2MT.o CrossThreadProgress.o DummyOutStream.o FindSignature.o InStreamWithCRC.o ItemNameUtils.o MultiStream.o OutStreamWithCRC.o OutStreamWithSha1.o HandlerOut.o ParseProperties.o  7zCompressionMode.o 7zDecode.o 7zEncode.o 7zExtract.o 7zFolderInStream.o 7zFolderOutStream.o 7zHandler.o 7zHandlerOut.o 7zHeader.o 7zIn.o 7zOut.o 7zProperties.o 7zSpecStream.o 7zUpdate.o 7zRegister.o  BZip2Handler.o BZip2HandlerOut.o BZip2Update.o bz2Register.o  CabBlockInStream.o CabHandler.o CabHeader.o CabIn.o CabRegister.o  ChmHandler.o ChmHeader.o ChmIn.o ChmRegister.o  ComHandler.o ComIn.o ComRegister.o  CpioHandler.o CpioHeader.o CpioIn.o CpioRegister.o  GZipHandler.o GZipHandlerOut.o GZipHeader.o GZipIn.o GZipOut.o GZipUpdate.o GZipRegister.o  HfsHandler.o HfsIn.o HfsRegister.o  IsoHandler.o IsoHeader.o IsoIn.o IsoRegister.o  LzhCRC.o LzhHandler.o LzhIn.o LzhOutStreamWithCRC.o LzhRegister.o  LzmaArcRegister.o LzmaFiltersDecode.o LzmaHandler.o LzmaIn.o  NsisDecode.o NsisHandler.o NsisIn.o NsisRegister.o  RarHandler.o RarHeader.o RarIn.o RarItem.o RarVolumeInStream.o RarRegister.o  SplitHandler.o SplitRegister.o  TarHandler.o TarHandlerOut.o TarHeader.o TarIn.o TarOut.o TarUpdate.o TarRegister.o  UdfHandler.o UdfIn.o UdfRegister.o  WimHandler.o WimIn.o WimRegister.o  ZipAddCommon.o ZipHandler.o ZipHandlerOut.o ZipHeader.o ZipIn.o ZipItem.o ZipOut.o ZipUpdate.o ZipRegister.o  CodecExports.o ArjDecoder1.o ArjDecoder2.o Bcj2Coder.o Bcj2Register.o BcjCoder.o BcjRegister.o BitlDecoder.o BranchCoder.o BranchMisc.o BranchRegister.o ByteSwap.o ByteSwapRegister.o BZip2Crc.o BZip2Decoder.o BZip2Encoder.o BZip2Register.o CopyCoder.o CopyRegister.o Deflate64Register.o DeflateDecoder.o DeflateEncoder.o DeflateNsisRegister.o DeflateRegister.o ImplodeDecoder.o ImplodeHuffmanDecoder.o LzhDecoder.o LzmaDecoder.o LzmaEncoder.o LzmaRegister.o LzOutWindow.o Lzx86Converter.o LzxDecoder.o PpmdDecoder.o PpmdEncoder.o PpmdRegister.o QuantumDecoder.o ShrinkDecoder.o ZlibDecoder.o ZDecoder.o  7zAes.o 7zAesRegister.o HmacSha1.o MyAes.o Pbkdf2HmacSha1.o RandGen.o Rar20Crypto.o RarAes.o Sha1.o WzAes.o ZipCrypto.o ZipStrong.o  Bra.o Bra86.o BraIA64.o BwtSort.o HuffEnc.o LzFind.o LzFindMt.o LzmaDec.o LzmaEnc.o Sort.o Threads.o Aes.o Sha256.o  7zCrc.o  
c++: RarHandler.o: No such file or directory
c++: RarHeader.o: No such file or directory
c++: RarIn.o: No such file or directory
c++: RarItem.o: No such file or directory
c++: RarVolumeInStream.o: No such file or directory
c++: RarRegister.o: No such file or directory
c++: Rar20Crypto.o: No such file or directory
c++: RarAes.o: No such file or directory
make[1]: *** [../../../../bin/7z.so] Error 1
make[1]: Leaving directory `/opt/gentoo/var/tmp/portage/app-arch/p7zip-4.65/work/p7zip_4.65/CPP/7zip/Bundles/Format7zFree'
make: *** [common7z] Error 2
 * ERROR: app-arch/p7zip-4.65 failed:
 *   compilation error
 * 
 * Call stack:
 *     ebuild.sh, line  61:  Called call-ebuildshell 'src_compile'
 *   environment, line 279:  Called src_compile
 *   environment, line 2467:  Called die
 * The specific snippet of code:
 *       emake all3 || die "compilation error";
Comment 1 Stuart Shelton 2009-12-14 17:27:30 UTC
$ emerge --info
Portage 2.2.00.15027-prefix (prefix/darwin/macos/10.6/x64, gcc-4.2.1, unavailable, 10.2.0 x86_64)
=================================================================
System uname: Darwin-10.2.0-x86_64-i386-64bit
Timestamp of tree: Sun, 13 Dec 2009 23:23:29 +0000
distcc 2.18.5-Apple.1 i386-apple-darwin10.0 (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4
dev-python/pycrypto: 2.1.0
sys-devel/autoconf:  2.63-r01.1
sys-devel/automake:  1.10.2-r00.1, 1.11
sys-devel/gcc-config: 1.4.1-r00.2
sys-devel/libtool:   2.2.6b
ACCEPT_KEYWORDS="x64-macos x86-macos ~amd64 ~x64-macos ~x86 ~x86-macos"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-apple-darwin10"
CFLAGS="-O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe"
CHOST="x86_64-apple-darwin10"
CONFIG_PROTECT="/etc /opt/gentoo/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /opt/gentoo/etc/ca-certificates.conf /opt/gentoo/etc/env.d /opt/gentoo/etc/env.d/java/ /opt/gentoo/etc/fonts/fonts.conf /opt/gentoo/etc/gconf /opt/gentoo/etc/revdep-rebuild /opt/gentoo/etc/terminfo"
CXXFLAGS="-O2 -fno-math-errno -march=core2 -msse4.1 -mfpmath=sse -pipe"
DISTDIR="/opt/gentoo/usr/portage/distfiles"
FEATURES="assume-digests distlocks fixpackages metadata-transfer news nostrip parallel-fetch preserve-libs protect-owned sfperms splitdebug strict unmerge-logs unmerge-orphans userfetch userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS=""
LINGUAS="en en_GB"
PKGDIR="/opt/gentoo/usr/portage/packages"
PORTAGE_CONFIGROOT="/opt/gentoo/"
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="/opt/gentoo/var/tmp"
PORTDIR="/opt/gentoo/usr/portage"
PORTDIR_OVERLAY="/opt/gentoo/usr/local/portage"
SYNC="rsync://rsync.prefix.freens.org/gentoo-portage-prefix"
USE="X aqua ares bash-completion berkdb bzip2 cairo chroot coreaudio cracklib cxx expat faac faad fftw flac fontconfig fts3 gdbm gmp graphviz gs gtk hpn iconv icu idea ipv6 ithreads java jbig jpeg jpeg2k lcms lzma md5sum mmap mmx mmxext modules mp3 ncurses network nls objc objc++ ogg openmp pcre perl png prefix python readline sasl schroedinger slang sndfile speex spell sqlite sqlite3 sse sse2 ssl svg tcl test theora threads tiff tk trace truetype unicode urandom utils vdpau vim-syntax vorbis wmf x264 x64-macos xinerama xml xpm xvid zlib" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon 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 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" ELIBC="Darwin" INPUT_DEVICES="keyboard mouse" KERNEL="Darwin" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_GB" RUBY_TARGETS="ruby18" USERLAND="GNU" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LANG, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Fabian Groffen gentoo-dev 2009-12-18 12:02:40 UTC
both problems solved, rar support got accidentially permanently disabled