Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 464042 - app-arch/unar-1.5 fails to build
Summary: app-arch/unar-1.5 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Hanno Böck
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: underlinking
  Show dependency tree
 
Reported: 2013-04-01 05:48 UTC by Patrick Lauer
Modified: 2016-02-16 14:22 UTC (History)
2 users (show)

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


Attachments
unar-1.5.ebuild (unar-1.5.ebuild,1.13 KB, text/plain)
2013-04-23 18:17 UTC, Ted Tanberry
Details
unar-1.5-underlink.patch (unar-1.5-underlink.patch,912 bytes, patch)
2013-04-23 18:18 UTC, Ted Tanberry
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick Lauer gentoo-dev 2013-04-01 05:48:45 UTC
g++  -O2 -Wno-import -Wno-multichar -g -D_FILE_OFFSET_BITS=64 -isystem /usr/include/GNUstep -O2 -pipe -MMD -MFBuild/universalchardet/nsMBCSGroupProber.d -MTBuild/universalchardet/nsMBCSGroupProber.o -c universalchardet/nsMBCSGroupProber.cpp -o Build/universalchardet/nsMBCSGroupProber.o
g++  -O2 -Wno-import -Wno-multichar -g -D_FILE_OFFSET_BITS=64 -isystem /usr/include/GNUstep -O2 -pipe -MMD -MFBuild/universalchardet/nsMBCSSM.d -MTBuild/universalchardet/nsMBCSSM.o -c universalchardet/nsMBCSSM.cpp -o Build/universalchardet/nsMBCSSM.o
g++  -O2 -Wno-import -Wno-multichar -g -D_FILE_OFFSET_BITS=64 -isystem /usr/include/GNUstep -O2 -pipe -MMD -MFBuild/universalchardet/nsSBCharSetProber.d -MTBuild/universalchardet/nsSBCharSetProber.o -c universalchardet/nsSBCharSetProber.cpp -o Build/universalchardet/nsSBCharSetProber.o
g++  -O2 -Wno-import -Wno-multichar -g -D_FILE_OFFSET_BITS=64 -isystem /usr/include/GNUstep -O2 -pipe -MMD -MFBuild/universalchardet/nsSBCSGroupProber.d -MTBuild/universalchardet/nsSBCSGroupProber.o -c universalchardet/nsSBCSGroupProber.cpp -o Build/universalchardet/nsSBCSGroupProber.o
g++  -O2 -Wno-import -Wno-multichar -g -D_FILE_OFFSET_BITS=64 -isystem /usr/include/GNUstep -O2 -pipe -MMD -MFBuild/universalchardet/nsSJISProber.d -MTBuild/universalchardet/nsSJISProber.o -c universalchardet/nsSJISProber.cpp -o Build/universalchardet/nsSJISProber.o
g++  -O2 -Wno-import -Wno-multichar -g -D_FILE_OFFSET_BITS=64 -isystem /usr/include/GNUstep -O2 -pipe -MMD -MFBuild/universalchardet/nsUniversalDetector.d -MTBuild/universalchardet/nsUniversalDetector.o -c universalchardet/nsUniversalDetector.cpp -o Build/universalchardet/nsUniversalDetector.o
g++  -O2 -Wno-import -Wno-multichar -g -D_FILE_OFFSET_BITS=64 -isystem /usr/include/GNUstep -O2 -pipe -MMD -MFBuild/universalchardet/nsUTF8Prober.d -MTBuild/universalchardet/nsUTF8Prober.o -c universalchardet/nsUTF8Prober.cpp -o Build/universalchardet/nsUTF8Prober.o
rm -f libUniversalDetector.a
ar rcs libUniversalDetector.a Build/UniversalDetector.o Build/universalchardet/kludge.o Build/WrappedUniversalDetector.o Build/universalchardet/CharDistribution.o Build/universalchardet/JpCntx.o Build/universalchardet/LangBulgarianModel.o Build/universalchardet/LangCyrillicModel.o Build/universalchardet/LangGreekModel.o Build/universalchardet/LangHebrewModel.o Build/universalchardet/LangHungarianModel.o Build/universalchardet/LangThaiModel.o Build/universalchardet/nsBig5Prober.o Build/universalchardet/nsCharSetProber.o Build/universalchardet/nsEscCharsetProber.o Build/universalchardet/nsEscSM.o Build/universalchardet/nsEUCJPProber.o Build/universalchardet/nsEUCKRProber.o Build/universalchardet/nsEUCTWProber.o Build/universalchardet/nsGB2312Prober.o Build/universalchardet/nsHebrewProber.o Build/universalchardet/nsLatin1Prober.o Build/universalchardet/nsMBCSGroupProber.o Build/universalchardet/nsMBCSSM.o Build/universalchardet/nsSBCharSetProber.o Build/universalchardet/nsSBCSGroupProber.o Build/universalchardet/nsSJISProber.o Build/universalchardet/nsUniversalDetector.o Build/universalchardet/nsUTF8Prober.o
x86_64-pc-linux-gnu-gcc -Wl,--whole-archive -fexceptions -fgnu-runtime -Wl,--whole-archive -fexceptions -fgnu-runtime           -Wl,-O1 -Wl,--as-needed -o DetectorTest Build/DetectorTest.o libUniversalDetector.a -Wl,--no-whole-archive -lgnustep-base -lobjc -lm
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld: libUniversalDetector.a(nsBig5Prober.o): undefined reference to symbol '__cxa_pure_virtual@@CXXABI_1.3'
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/../../../../x86_64-pc-linux-gnu/bin/ld: note: '__cxa_pure_virtual@@CXXABI_1.3' is defined in DSO /usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/libstdc++.so.6 so try adding it to the linker command line
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.0/libstdc++.so.6: could not read symbols: Invalid operation
collect2: error: ld returned 1 exit status
make[1]: *** [DetectorTest] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-arch/unar-1.5/work/The Unarchiver/UniversalDetector'
make: *** [../UniversalDetector/libUniversalDetector.a] Error 2
 * ERROR: app-arch/unar-1.5 failed (compile phase):
 *   emake failed

Portage 2.1.11.59 (default/linux/amd64/13.0, gcc-4.8.0, glibc-2.17, 3.7.9-vs2.3.5.6 x86_64)
=================================================================
System uname: Linux-3.7.9-vs2.3.5.6-x86_64-AMD_Phenom-tm-_II_X4_965_Processor-with-gentoo-2.2
KiB Mem:     7921088 total,    973092 free
KiB Swap:   25165812 total,  24566952 free
Timestamp of tree: Unknown
ld GNU ld (GNU Binutils) 2.23.2
app-shells/bash:          4.2_p45
dev-java/java-config:     2.1.12-r1
dev-lang/python:          2.7.3-r3, 3.2.3-r2
dev-util/cmake:           2.8.10.2-r1
dev-util/pkgconfig:       0.28
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.11.8
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.12.6, 1.13.1
sys-devel/binutils:       2.23.2
sys-devel/gcc:            4.8.0::hardened-dev
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 3.8 (virtual/os-headers)
sys-libs/glibc:           2.17
Repositories: gentoo hardened-dev
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/entropy /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.0/conf /usr/share/polkit-1/actions /usr/share/themes/oxygen-gtk/gtk-2.0 /var/lib/hsqldb"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.4/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cli-php5.4/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="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs buildpkg config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.lecl.net/pub/gentoo/ http://ftp.lecl.net/pub/gentoo/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
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/hardened-development"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl amd64 berkdb bzip2 cli cracklib crypt cxx dri egl fortran gdbm gpm iconv ipv6 mmx modules mudflap multilib ncurses nls nptl openmp openvg pam pcre readline session sqlite sse sse2 ssl tcpd unicode xa xvfb 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" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets 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="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-3" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_2" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="vesa" 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
Comment 1 Ted Tanberry 2013-04-23 18:17:39 UTC
Created attachment 346394 [details]
unar-1.5.ebuild
Comment 2 Ted Tanberry 2013-04-23 18:18:20 UTC
Created attachment 346396 [details, diff]
unar-1.5-underlink.patch
Comment 3 Ted Tanberry 2013-04-23 18:19:17 UTC
I've fixed unar-1.5. This involved adding -lstdc++ to 2 Makefiles and also some minor QA issue. Hope this can be included.
Comment 4 SpanKY gentoo-dev 2013-05-05 04:27:12 UTC
Comment on attachment 346394 [details]
unar-1.5.ebuild

please post diffs, not entire files
Comment 5 SpanKY gentoo-dev 2013-05-05 04:28:17 UTC
Comment on attachment 346396 [details, diff]
unar-1.5-underlink.patch

if you compile C++ files, you should link with the C++ driver.  linking in
-lstdc++ masks that.
Comment 6 SpanKY gentoo-dev 2013-05-05 05:00:52 UTC
Commit message: Respect AR/CXX/CPPFLAGS, and use CXX when linking
http://sources.gentoo.org/app-arch/unar/unar-1.5.ebuild?r1=1.1&r2=1.2
Comment 7 SpanKY gentoo-dev 2013-05-05 05:01:28 UTC
see if my latest commit works for you.  i don't have an up-to-date objc compiler, so i can only do limited testing.
Comment 8 Ted Tanberry 2013-05-05 10:04:01 UTC
The underlinking due to libstdc++ is gone now. The last (minor) issue is the QA from the running of make instead of +$(MAKE):

 * QA Notice: make jobserver unavailable:
 * 
 * 	make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.

I fixed this in the patch too with
--- "The Unarchiver/XADMaster/Makefile.linux"
+++ "The Unarchiver/XADMaster/Makefile.linux"
@@ -71,7 +72,7 @@
 	$(AR) rcs $@ $^
 
 ../UniversalDetector/libUniversalDetector.a:
-	make -C ../UniversalDetector -f Makefile.linux
+	+$(MAKE) -C ../UniversalDetector -f Makefile.linux
 
 XADTest2: $(XADTEST2_OBJS) libXADMaster.a ../UniversalDetector/libUniversalDetector.a
 	$(LD) $(ALL_LDFLAGS) -o $@ $^ $(LIBS)
Comment 9 Hanno Böck gentoo-dev 2015-02-15 20:40:57 UTC
@Ted Tanberry: Have you sent that patch upstream?

I don't think we need to fix that in gentoo, but would make sense to have upstream applied.