Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 372761 - app-backup/dar-2.4.0 fails to build dar_static statically linked binary
Summary: app-backup/dar-2.4.0 fails to build dar_static statically linked binary
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Richard Freeman
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-06-24 04:57 UTC by Wirt Wolff
Modified: 2013-02-03 16:15 UTC (History)
0 users

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


Attachments
build log for dar-2.4.0 (app-backup:dar-2.4.0:20110624-044649.log,139.21 KB, text/plain)
2011-06-24 05:09 UTC, Wirt Wolff
Details
dar-2.4.0 ebuild environment (environment,105.86 KB, text/plain)
2011-06-24 05:12 UTC, Wirt Wolff
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Wirt Wolff 2011-06-24 04:57:56 UTC
Under same use flags (including 'static' and 'static-libs'), same installed packages, and same portage version dar-2.3.11 builds dar_static, but dar-2.4.0 does not.

portage-2.2.0_alpha41 all ~amd64 system. build logs, emerge --info attached

Reproducible: Always
Comment 1 Wirt Wolff 2011-06-24 05:01:26 UTC
Portage 2.2.0_alpha41 (default/linux/amd64/10.0/desktop, gcc-4.5.2, glibc-2.13-r2, 2.6.38-gentoo-r5-dm_mirr x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.38-gentoo-r5-dm_mirr-x86_64-Intel-R-_Core-TM-2_Quad_CPU_@_2.40GHz-with-gentoo-2.0.3
Timestamp of tree: Thu, 23 Jun 2011 07:45:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.1-r1, 3.2
dev-util/cmake:           2.8.4-r1
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21
sys-devel/gcc:            4.4.5, 4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r2
Repositories: gentoo idlebox_cryptote gentoo-haskell scarabeus_local_overlay mozilla local
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/spool/torque"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /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="-march=core2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=" --jobs=4 --load-average=5.2 --with-bdeps y --autounmask-write n"
FEATURES="assume-digests binpkg-logs buildpkg buildsyspkg collision-protect distlocks ebuild-locks fail-clean fixlafiles fixpackages multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://chi-10g-1-mirror.fastsoft.net/pub/linux/gentoo/gentoo-distfiles/ http://www.cyberuse.com/gentoo/ ftp://gentoo.llarian.net/pub/gentoo/ http://mirror.mcs.anl.gov/pub/gentoo/"
LANG="en_US.utf-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j6"
PKGDIR="/usr/local/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--exclude=/portage-tmpdir --exclude-from=/etc/portage/rsync_excludes"
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="/public/portage_tmpdir"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/idlebox /var/lib/layman/haskell /var/lib/layman/scarabeus /var/lib/layman/mozilla /var/lib/layman/local"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 amr bash-completion berkdb bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus device-mapper dri dts dv dvd dvdr emboss encode exif fam ffmpeg flac fontconfig fortran gdbm gdu gif gmp gtk iconv ipv6 jpeg jpeg2k lcms libnotify libsamplerate lm_sensors logrotate lzma lzo mad mmx mng modules mp3 mp4 mpeg mudflap multilib ncurses nls nptl nptlonly ocamlopt ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt4 quicktime readline samba scanner sdl session smp sqlite sse sse2 ssl ssse3 startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb vim vim-syntax vorbis wmf x264 xft xinerama xml xorg xpm xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="canon" COLLECTD_PLUGINS="syslog df" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" SANE_BACKENDS="hp" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="pknock psd rawnat" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS

=================================================================
                        Package Settings
=================================================================

app-backup/dar-2.4.0 was built with the following:
USE="doc lzo (multilib) nls static static-libs -acl -dar32 -dar64 -gcrypt"
Comment 2 Wirt Wolff 2011-06-24 05:09:31 UTC
Created attachment 277971 [details]
build log for dar-2.4.0
Comment 3 Wirt Wolff 2011-06-24 05:12:29 UTC
Created attachment 277973 [details]
dar-2.4.0 ebuild environment
Comment 4 Brian Evans (RETIRED) gentoo-dev 2012-01-11 17:15:23 UTC
I had the same issue you did.

Your build log shows:
>  DAR SUITE command line programs:
>   Long options available : YES
>   Building examples      : NO
>   Building dar_static    : NO  (system does not support static linking, see note below)
>   using upx at install   : NO
>   building documentation : YES
>
>  Note:
>
>    If  you  want to know  which libraries  are not available  as  static
>    libraries check the logs in the config.log generated file. the command
>
>         'grep -e -static -A 2 config.log'
>
>    should bring you to the essentials.

Most likely, you need USE=static-libs on app-arch/bzip2 and dev-libs/lzo.

Ebuild should be updated to reflect it. dar_static is the way to get out of pickle when your box crashes.
Comment 5 Wirt Wolff 2012-01-11 19:58:48 UTC
(In reply to comment #4)
> I had the same issue you did.
> 
> Your build log shows:
> >  DAR SUITE command line programs:
> >   Long options available : YES
> >   Building examples      : NO
> >   Building dar_static    : NO  (system does not support static linking, see note below)
> >   using upx at install   : NO
> >   building documentation : YES
> >
> >  Note:
> >
> >    If  you  want to know  which libraries  are not available  as  static
> >    libraries check the logs in the config.log generated file. the command
> >
> >         'grep -e -static -A 2 config.log'
> >
> >    should bring you to the essentials.

Thanks for the good troubleshooting lesson.

> Most likely, you need USE=static-libs on app-arch/bzip2 and dev-libs/lzo.
> 
> Ebuild should be updated to reflect it. dar_static is the way to get out of
> pickle when your box crashes.

Yes, setting USE=static-libs on bzip2 and lzo does build dar_static here.
Comment 6 Richard Freeman gentoo-dev 2013-02-03 16:15:41 UTC
zlib also needs static-libs.  (Why do we not declare system dependencies again?)

And the ebuild should move those to DEPEND and not RDEPEND if built static.

Fixed in 2.4.9.