Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 150558 - dev-python/adns-python-1.1.0 build fails with gcc-4.1.1
Summary: dev-python/adns-python-1.1.0 build fails with gcc-4.1.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-09 04:15 UTC by Mark Dominik Bürkle
Modified: 2006-12-29 15:19 UTC (History)
1 user (show)

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


Attachments
patch which fix compile issue with adns >= 1.2 (adnsmodule.patch,588 bytes, patch)
2006-10-16 04:03 UTC, Fab
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Mark Dominik Bürkle 2006-10-09 04:15:22 UTC
root@pcnocmdb2 ~ #>> emerge --oneshot --ask --verbose dev-python/adns-python

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] dev-python/adns-python-1.1.0  0 kB

Total size of downloads: 0 kB

Would you like to merge these packages? [Yes/No]

>>> Emerging (1 of 1) dev-python/adns-python-1.1.0 to /
 * adns-python-1.1.0.tar.gz MD5 ;-) ...                                                                                                                                                                                                                                                                                                                                                                                        [ ok ]
 * adns-python-1.1.0.tar.gz RMD160 ;-) ...                                                                                                                                                                                                                                                                                                                                                                                     [ ok ]
 * adns-python-1.1.0.tar.gz SHA1 ;-) ...                                                                                                                                                                                                                                                                                                                                                                                       [ ok ]
 * adns-python-1.1.0.tar.gz SHA256 ;-) ...                                                                                                                                                                                                                                                                                                                                                                                     [ ok ]
 * adns-python-1.1.0.tar.gz size ;-) ...                                                                                                                                                                                                                                                                                                                                                                                       [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                                                                                                                                                                                                                           [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                                                                                                                                                                                                                          [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                                                                                                                                                                                                                         [ ok ]
 * checking adns-python-1.1.0.tar.gz ;-) ...                                                                                                                                                                                                                                                                                                                                                                                   [ ok ]
>>> Unpacking source...
>>> Unpacking adns-python-1.1.0.tar.gz to /var/tmp/portage/adns-python-1.1.0/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/adns-python-1.1.0/work/adns-python-1.1.0 ...
running build
running build_py
creating build
creating build/lib.linux-i686-2.4
copying DNSBL.py -> build/lib.linux-i686-2.4
copying ADNS.py -> build/lib.linux-i686-2.4
running build_ext
building 'adns' extension
creating build/temp.linux-i686-2.4
i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=pentium4 -mmmx -msse -msse2 -O2 -mfpmath=sse -fomit-frame-pointer -pipe -fPIC -I/usr/include/python2.4 -c adnsmodule.c -o build/temp.linux-i686-2.4/adnsmodule.o
adnsmodule.c:91: error: 'adns__rrt_typemask' undeclared here (not in a function)
adnsmodule.c: In function 'interpret_answer':
adnsmodule.c:187: error: invalid operands to binary &
adnsmodule.c:187: error: incompatible types in initialization
error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1

!!! ERROR: dev-python/adns-python-1.1.0 failed.
Call stack:
  ebuild.sh, line 1546:   Called dyn_compile
  ebuild.sh, line 937:   Called src_compile
  ebuild.sh, line 1255:   Called distutils_src_compile
  distutils.eclass, line 38:   Called die

!!! compilation failed
!!! If you need support, post the topmost build error, and the call stack if relevant.

root@pcnocmdb2 ~ #>> emerge --info
Comment 1 Mark Dominik Bürkle 2006-10-09 04:16:01 UTC
$ emerge --info
Portage 2.1.2_pre2-r3 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.18-suspend2 i686)
=================================================================
System uname: 2.6.18-suspend2 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz
Gentoo Base System version 1.12.5
Last Sync: Mon, 09 Oct 2006 07:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [disabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.3.5, 2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r6
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.60
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -mmmx -msse -msse2 -O2 -mfpmath=sse -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /lib/rcscripts /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=pentium4 -mmmx -msse -msse2 -O2 -mfpmath=sse -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict"
GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp://ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp://pandemonium.tiscali.de/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo"
LINGUAS="de en fr"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 X acpi alsa apache2 arts bash-completion berkdb bitmap-fonts cli crypt cups curl dlloader dri dvd eds elibc_glibc emboss encode esd foomaticdb gdbm gif gpm gstreamer gtk gtk2 imap imlib input_devices_evdev input_devices_joystick input_devices_keyboard input_devices_mouse input_devices_vmmouse input_devices_void ipv6 isdnlog jpeg kde kernel_linux ldap libg++ libwww linguas_de linguas_en linguas_fr lirc_devices_com1 mad mikmod mmap mmx mmx2 motif mozilla mp3 mpeg ncurses nls nptl nptlonly nsplugin ogg oggvorbis openal opengl openssh pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl session spl sse sse2 ssl tcpd theora truetype truetype-fonts type1-fonts udev unicode userland_GNU video_cards_dummy video_cards_fbdev video_cards_mga video_cards_nv video_cards_nvidia video_cards_radeon video_cards_v4l video_cards_vesa video_cards_vmware vorbis xinerama xml xml2 xmlrpc xorg xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS

$
Comment 2 Fab 2006-10-16 04:01:48 UTC
Hi,

Same problem here (full ~x86). It's not gcc 4.1.
If adns >= 1.2 is installed, the following patch must be applied.

See http://www.chiark.greenend.org.uk/~ian/adns/adns.h.txt

adns__rrt_typemask has been renamed to adns_rrt_typemask between version 1.1 and 1.2.
Comment 3 Fab 2006-10-16 04:03:34 UTC
Created attachment 99784 [details, diff]
patch which fix compile issue with adns >= 1.2

This patch must be applied only if adns >= 1.2 is installed.
Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2006-12-29 15:19:15 UTC
Thanks for reporting! Fixed with latest version bump.