Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 296204 - net-dns/dnsmasq-2.51 compile failed with sys-apps/dbus-1.3.0-r1
Summary: net-dns/dnsmasq-2.51 compile failed with sys-apps/dbus-1.3.0-r1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-12-08 16:48 UTC by Oschtan
Modified: 2010-01-14 18:46 UTC (History)
1 user (show)

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 Oschtan 2009-12-08 16:48:02 UTC
x86_64-pc-linux-gnu-gcc -O2 -pipe -march=amdfam10 -mtune=amdfam10 -DNO_TFTP -DNO_DHCP -DNO_IPV6  -DLOCALEDIR=\"/usr/share/locale\" -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include       -c log.c
x86_64-pc-linux-gnu-gcc -Wl,-O1 -o dnsmasq  cache.o rfc1035.o util.o option.o forward.o network.o dnsmasq.o dhcp.o lease.o rfc2131.o netlink.o dbus.o bpf.o helper.o tftp.o log.o -ldbus-1 -lpthread -lrt     -lidn
dbus.o: In function `emit_dbus_signal':
dbus.c:(.text+0x5a): undefined reference to `extended_hwaddr'
collect2: ld returned 1 exit status
make[1]: *** [dnsmasq] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-dns/dnsmasq-2.51/work/dnsmasq-2.51/src'
make: *** [all-i18n] Error 2
 * ERROR: net-dns/dnsmasq-2.51 failed:
 *   (no error message)
 *
 * Call stack:
 *     ebuild.sh, line  49:  Called src_compile
 *   environment, line 2678:  Called die
 * The specific snippet of code:
 *       emake PREFIX=/usr CC="$(tc-getCC)" CFLAGS="${CFLAGS}" all$(use nls && echo "-i18n") || die

Reproducible: Always

Steps to Reproduce:




Portage 2.2_rc56 (default/linux/amd64/10.0, gcc-4.4.2, glibc-2.11-r1, 2.6.31-gentoo-r6 x86_64)
=================================================================                             
System uname: Linux-2.6.31-gentoo-r6-x86_64-AMD_Phenom-tm-_8450_Triple-Core_Processor-with-gentoo-2.0.1
Timestamp of tree: Tue, 08 Dec 2009 15:15:02 +0000                                                     
ccache version 2.4 [enabled]                                                                           
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.0.1-r8
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.3
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.64
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA PUEL sun-prerelease-jdk7"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS=" -O2 -pipe -march=amdfam10 -mtune=amdfam10"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb"
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/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d"
CXXFLAGS=" -O2 -pipe -march=amdfam10 -mtune=amdfam10"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg ccache collision-protect distlocks fixpackages metadata-transfer news parallel-fetch preserve-libs protect-owned sandbox sets sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://mirror.yandex.ru/gentoo-distfiles http://trumpetti.atm.tut.fi/gentoo ftp://linux.rz.ruhr-uni-bochum.de/gentoo-mirror http://distfiles.gentoo.org"
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://linux.rz.ruhr-uni-bochum.de/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acl acpi additions alsa amd64 amr ao apm berkdb bindist bzip2 cairo cgi clamav cleartype cli consolekit cracklib crypt ctype custom-cflags cxx dbus djvu dri dv dvd emerald enca encode exif extras faac faad fastcgi fbcondecor ffmpeg fontconfig fortran ftp fuse gd gecko gif git glitz google-gadgets gphoto2 gpm hal hddtemp iconv imagemagick imlib jabber java jbig jpeg jpeg2k kde lame lastfm latin1 lcms libnotify lm_sensors lzma mad midi mikmod mjpeg mmx mmxext mng modules mp3 mp4 mpeg mplayer mudflap multilib multitarget mysql ncurses nls npp nptl nptlonly nsplugin objc objc++ objc-gc ogg opencore-amr openexr opengl openmp oscar pam pcre pdf perl php plasma png povray pppd python python3 qt3 qt3support qt4 quicktime rar rcc readline reflection rtc samba schroedinger sdl sensord session skey slang smbclient sndfile source speex spell spl sqlite sqlite3 srt sse sse2 ssl startup-notification subversion suid svg symlink sysfs syslog tcpd templates theora thumbnail tidy tiff truetype unicode unsupported usb utempter vcd vorbis webdav-neon wmf x264 xattr xcb xcomposite xine xml xorg xpm xscreensaver xulrunner xv xvid yv12 zip 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" CAMERAS="adc65 agfa_cl20 aox barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 stv0674 stv0680 sx330z template toshiba_pdrm11 jl2005a topfield" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Oschtan 2010-01-14 17:42:00 UTC
From Simon Kelley:

It's a bug, It shows up if you compile in DBus support but leave out DHCP support. It happens with all versions of dbus.

Possible fixes:


1) Disable DBus or enable DHCP in your build
2) Put #ifdef HAVE_DHCP......#endif around the whole of the function emit_dbus_signal() in src/dbus.c
3) Wait for version 2.52, where I've fixed this. Release Candidate 1 available here:

http://www.thekelleys.org.uk/dnsmasq/release-candidates/dnsmasq-2.52rc1.tar.gz

Thanks for your report, it arrived just in time to get fixed in 2.52!

Cheers,

Simon.
=============
Who does edit ebuild?
Comment 2 Oschtan 2010-01-14 17:45:56 UTC
Or mask version 2.51
Comment 3 Patrick McLean gentoo-dev 2010-01-14 18:46:47 UTC
Added a die to the ebuild telling the user to either enable dhcp or disable dhcp as a workaround until 2.52 final arrives.