Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 413989 - net-dns/maradns-2.0.06 fails to build with --as-needed (undefined reference to clock_gettime)
Summary: net-dns/maradns-2.0.06 fails to build with --as-needed (undefined reference t...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: MATSUU Takuto (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2012-04-29 14:19 UTC by Roc Vallès
Modified: 2012-07-11 11:01 UTC (History)
0 users

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


Attachments
build.log as suggested by error message (build.log,21.22 KB, text/plain)
2012-04-29 23:28 UTC, Roc Vallès
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Roc Vallès 2012-04-29 14:19:06 UTC
maradns 2.0.06 builds yet fails install phase.

Reproducible: Always

Steps to Reproduce:
emerge =net-dns/maradns-2.0.06
Actual Results:  
>>> Source compiled.
>>> Test phase [not enabled]: net-dns/maradns-2.0.06

>>> Install maradns-2.0.06 into /var/tmp/portage/net-dns/maradns-2.0.06/image/ category net-dns
!!! dosbin: deadwood-3.2.02/src/Deadwood does not exist
 * ERROR: net-dns/maradns-2.0.06 failed (install phase):
 *   dosbin failed
 *
 * If you need support, post the output of 'emerge --info =net-dns/maradns-2.0.06',
 * the complete build log and the output of 'emerge -pqv =net-dns/maradns-2.0.06'.
 * The complete build log is located at '/var/tmp/portage/net-dns/maradns-2.0.06/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/net-dns/maradns-2.0.06/temp/environment'.
 * Working directory: '/var/tmp/portage/net-dns/maradns-2.0.06/work/maradns-2.0.06'
 * S: '/var/tmp/portage/net-dns/maradns-2.0.06/work/maradns-2.0.06'
 * QA Notice: file does not exist:
 * 
 *      dosbin: deadwood-3.2.02/src/Deadwood does not exist

>>> Failed to emerge net-dns/maradns-2.0.06, Log file:

>>>  '/var/tmp/portage/net-dns/maradns-2.0.06/temp/build.log'
Comment 1 Roc Vallès 2012-04-29 23:22:03 UTC
kaguya ~ # emerge --info =net-dns/maradns-2.0.06
Portage 2.1.10.57 (default/linux/amd64/10.0, gcc-4.6.3, glibc-2.15-r1, 3.2.16-grsec x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-3.2.16-grsec-x86_64-Intel-R-_Atom-TM-_CPU_330_@_1.60GHz-with-gentoo-2.1
Timestamp of tree: Sat, 28 Apr 2012 14:30:01 +0000
app-shells/bash:          4.2_p24-r1
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.3-r1, 3.2.3
dev-util/cmake:           2.8.7-r5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1
sys-apps/openrc:          0.9.9.3
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.5
sys-devel/binutils:       2.22-r1
sys-devel/gcc:            4.5.3-r2, 4.6.3
sys-devel/gcc-config:     1.7
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.3 (virtual/os-headers)
sys-libs/glibc:           2.15-r1
Repositories: gentoo x11 AniDBUdpClient-overlay x-portage
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -O3 -pipe -march=atom -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-2.2/conf /usr/share/maven-bin-3.0/conf /usr/share/openvpn/easy-rsa"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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"
CXXFLAGS="-O2 -pipe -O3 -pipe -march=atom -fomit-frame-pointer -fpermissive"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y --quiet-build=n"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles news parallel-fetch protect-owned sandbox sfperms splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j2"
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/x11 /var/lib/layman/AniDBUdpClient-overlay /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aac acl acpi alsa amd64 apache2 apng berkdb btrfs bzip2 cairo cgi cjk cli consolekit cracklib crypt cups curl cxx dbus device-mapper dirac djvu dri dts dvb enca encode exif fbcon ffmpeg flac fortran gd gdbm gif gpm gtk hddtemp iconv icu idn imagemagick imap ipv6 java jpeg jpeg2k llvm lm_sensors lzma lzo maildir mmap mmx mmxext modplug modules mp2 mp3 mudflap multilib mysql ncurses network-cron nls nptl nptlonly offensive ogg opengl openmp oss pam pcre pdf perl php png policykit pppd python qt3support qt4 readline rtc samba sasl schroedinger sdl session sid smtp sndfile speex spell srt sse sse2 sse3 ssl ssse3 startup-notification svg sysfs tcpd theora threads timidity tordns truetype udev unicode vim-syntax vorbis webkit webm webp xcb xcomposite xfs xml xmlrpc xorg xv 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 mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest 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" LINGUAS="en" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby19" USERLAND="GNU" VIDEO_CARDS="intel i915" 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, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 2 Roc Vallès 2012-04-29 23:27:27 UTC
kaguya ~ # emerge -pqv =net-dns/maradns-2.0.06
[ebuild     U ] net-dns/maradns-2.0.06 [1.4.09] USE="ipv6%* -authonly"
Comment 3 Roc Vallès 2012-04-29 23:28:29 UTC
Created attachment 310471 [details]
build.log as suggested by error message
Comment 4 Christian Lerrahn 2012-05-02 07:38:49 UTC
The problem seems to be the linker option --as-needed. If I take that one off, Deadwood compiles and links without any problems.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2012-05-03 00:47:52 UTC
It should have failed in the compile phase, so that's really two bugs in one.
Comment 6 Roc Vallès 2012-06-22 23:48:32 UTC
Ping. Bug still the same. Reproduceable on all my gentoo servers.
Comment 7 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-11 10:40:25 UTC
So this is due to the ebuild itself:

        # In order for Deadwood to build correctly, it needs to know where
        # clock_getttime is at, and on Linux/glibc, this is in librt.
        # Hopefully, other systems won't have issues.
        use elibc_glibc && myflags="-lrt"


too bad that it's passing -lrt in the wrong position. Let's see if I can do something.
Comment 8 Diego Elio Pettenò (RETIRED) gentoo-dev 2012-07-11 11:01:08 UTC
@matsuu Hope you don't mind I fixed this one; the patch should be fine to send upstream for the most part; the change in $(MAKE) invocation makes it possible for the || die in make to hit properly (so now you no longer have to hope the package built at all). If you need any explanation on why it didn't work before, or you don't understand how the patch works feel free to poke me.