Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 287644 - net-misc/miniupnpd fails to build
Summary: net-misc/miniupnpd fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Bjarke Istrup Pedersen (RETIRED)
URL: http://miniupnp.tuxfamily.org/forum/v...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-04 17:03 UTC by Diego Elio Pettenò (RETIRED)
Modified: 2010-02-28 19:37 UTC (History)
3 users (show)

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


Attachments
Build log (net-misc:miniupnpd-1.4_pre20090921:20091004-164844.log,4.92 KB, text/plain)
2009-10-04 17:03 UTC, Diego Elio Pettenò (RETIRED)
Details
Build log (miniupnpd-1.4_pre20090921:20100110-234934.log,4.85 KB, text/plain)
2010-01-14 16:32 UTC, Diego Elio Pettenò (RETIRED)
Details
Build log with sys-kernel/linux-headers-2.6.32 and sys-kernel/gentoo-sources-2.6.32-r1 (build.log,7.65 KB, text/plain)
2010-02-14 01:21 UTC, Paul Tobias
Details
miniupnpd-1.4-iptcrdr.diff (miniupnpd-1.4-iptcrdr.diff,618 bytes, patch)
2010-02-24 13:57 UTC, Philippe Weibel
Details | Diff
miniupnpd-1.4_pre20090921.ebuild (miniupnpd-1.4_pre20090921.ebuild,1.25 KB, text/plain)
2010-02-24 13:58 UTC, Philippe Weibel
Details
ebuild for current version with Philippe's patch and dependency >=linux-headers-2.6.31 (miniupnpd-1.4.20091222.ebuild,1.43 KB, text/plain)
2010-02-24 14:50 UTC, Sebastian L.
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Diego Elio Pettenò (RETIRED) gentoo-dev 2009-10-04 17:03:13 UTC
Check attached build log, seems like something's funky with the kernel headers used…

Also, the lsb-release dependency seems to be only present at buildtime (used by genconfig.sh) and not at runtime (since there are Gentoo-specific init scripts as far as I can see).

Portage 2.2_rc43 (default/linux/amd64/2008.0, gcc-4.4.1-asneeded, glibc-2.10.1-r0, 2.6.31 x86_64)
=================================================================
System uname: Linux-2.6.31-x86_64-Quad-Core_AMD_Opteron-tm-_Processor_2350-with-gentoo-2.0.1
Timestamp of tree: Sun, 04 Oct 2009 15:00:01 +0000
ccache version 2.4 [disabled]
app-shells/bash:     4.0_p33
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.3
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0_rc2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.4.3-r3
sys-apps/sandbox:    2.1
sys-devel/autoconf:  2.64
sys-devel/automake:  1.10.2, 1.11
sys-devel/binutils:  2.20.51.0.1
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=barcelona -O2 -ftracer -pipe -ftree-vectorize -floop-block -g -ggdb -Wstrict-aliasing=2 -Wno-format-zero-length -Wformat=2 -Wno-error -Wno-pointer-sign -fno-strict-aliasing"
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/config"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/eselect/postgresql /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/init.d /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 /etc/udev/rules.d"
CXXFLAGS="-march=barcelona -O2 -ftracer -pipe -ftree-vectorize -floop-block -g -ggdb -Wno-error -Wformat=2 -Wstrict-aliasing=2 -fvisibility-inlines-hidden"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical --with-bdeps=n"
FEATURES="assume-digests autoaddcvs autoconfig collision-protect cvs distlocks fixpackages multilib-strict parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
FFLAGS="-march=barcelona -O2 -ftracer -pipe -ftree-vectorize -g -ggdb"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
LINGUAS="en it"
MAKEOPTS="-j12 -s"
PKGDIR="/var/spool/portage/packages"
PORTAGE_COMPRESS=""
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 --exclude=ChangeLog"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/media/repos/gentoo-x86-sync"
PORTDIR_OVERLAY="/var/spool/portage/overlays/cross /var/spool/portage/overlays/lu_zero /var/spool/portage/overlays/gnome-perf /var/spool/portage/overlays/layman/x11 /var/spool/portage/overlays/layman/gentopia /var/spool/portage/overlays/layman/dberkholz /var/spool/portage/overlays/layman/x11 /var/spool/portage/overlays/layman/desktop-effects /var/spool/portage/overlays/layman/tante_overlay /var/spool/portage/overlays/layman/emacs /var/spool/portage/overlays/layman/jokey /var/spool/portage/overlays/layman/java-overlay /var/spool/portage/overlays/layman/ruby /var/spool/portage/overlays/layman/graaff /var/spool/portage/overlays/layman/gechi /var/spool/portage/overlays/layman/gnome /media/repos/flame/flame-overlay /media/repos/flame/gentoo/ruby-scripts/ruby-ng-testbed /var/spool/portage/overlays/java-experimental"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowex 3dnowext S3TC a52 aac acl acpi4linux alsa amd64 apm audiofile avahi avi bluetooth bzip2 bzlib caps cdda cddb cdio cdr cjk cli crypt css cups custom-cflags custom-cxxflags dbus dlloader dnd dpms dri dts dvd dvdr dvdread emacs emboss fame ffmpeg flac foomaticdb gif gmp gnome gnome-keyring gnutls gpgme gphoto2 gtk gtk2 hal idn ieee1394 imlib imlib2 inotify ipv6 isdnlog ithreads java5 java6 joystick jpeg kdehiddenvisibility latex libnotify lm_sensors lx700 lzw lzw-tiff maildir matroska midi mmx mmx2 mmxext mng modules mozsvg mp3 mpeg mpeg4 mpm-threadpool mudflap multilib native network-cron nls no_wxgtk1 noantlr nobcel nobeanutils nobsh nocommonslogging nocommonsnet nodrm nojdepend nojsch nojython nolog4j nomotif nooro noregexp norhino noxalan noxerces nptl nptlonly nsplugin ogg oggvorbis openmp pam pch pdf pdflib pic pmount png policykit ppds pppd pulseaudio qemu-fast reflection rtc session snmp speex spell spl sse sse2 ssl ssse3 startup-notification stencil-buffer subversion svg svgz sysfs syslog tetex theora threads tiff truetype truetype-fonts type1 type1-fonts udev uncompressed-sounds unicode usb userlocales utf8 v4l v4l2 vhosts vorbis wxwindows x11vnc xcb xcomposite xorg xpm xv xvid zeroconf zlib zsh-completion zvbi" ALSA_CARDS="hda-intel usb-audio mpu401 ice1712" ALSA_PCM_PLUGINS="iec958 plug ioplug hooks empty route asym softvol" APACHE2_MODULES="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 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" APACHE2_MPMS="prefork" CAMERAS="ptp2" ELIBC="glibc" GENTOO_RUBYLIB="ruby18 ruby19 jruby" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en it" LIRC_DEVICES="kworld" QEMU_SOFTMMU_TARGETS="i386 x86_64" SANE_BACKENDS="snapscan" USERLAND="GNU" VIDEO_CARDS="radeon" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2009-10-04 17:03:39 UTC
Created attachment 205998 [details]
Build log
Comment 2 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2009-10-04 17:19:37 UTC
If you try can compile it against a 2.6.30.x kernel, does it build then?
Comment 3 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2010-01-14 15:13:30 UTC
Is this still a problem?

It compiles fine at my machines.
Comment 4 Diego Elio Pettenò (RETIRED) gentoo-dev 2010-01-14 16:32:12 UTC
Created attachment 216512 [details]
Build log

Still a problem.
Comment 5 Mars Liu 2010-01-18 01:52:16 UTC
yes, I can confirm this bug.
Comment 6 Sebastian L. 2010-02-13 13:07:22 UTC
This seems to be gone with linux-headers 2.6.32.

Since I don't run kernel 2.6.32 yet I run into another problem later into the compile process (when it references headers from kernel-build directory).
It'd be nice if someone could confirm that it compiles with 2.6.32 headers and kernel.

Comment 7 Paul Tobias 2010-02-14 01:21:45 UTC
Created attachment 219553 [details]
Build log with sys-kernel/linux-headers-2.6.32 and sys-kernel/gentoo-sources-2.6.32-r1

Nope, it does not build even with linux-headers-2.6.32, attached build log, emerge --info follows:

Portage 2.1.7.16 (default/linux/amd64/10.0/server, gcc-4.3.4, glibc-2.11-r1, 2.6.32-gentoo-r1 x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.32-gentoo-r1-x86_64-AMD_Athlon-tm-_II_X2_250_Processor-with-gentoo-1.12.13
Timestamp of tree: Sat, 13 Feb 2010 11:15:01 +0000
app-shells/bash:     4.0_p35
dev-lang/python:     2.6.4, 3.1.1-r1
dev-python/pycrypto: 2.1.0_beta1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 1.12.13
sys-apps/sandbox:    1.6-r2
sys-devel/autoconf:  2.63-r1
sys-devel/automake:  1.9.6-r2, 1.10.2
sys-devel/binutils:  2.20
sys-devel/gcc:       4.3.4
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -fomit-frame-pointer -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -pipe -fomit-frame-pointer -march=native"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="assume-digests distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.fsn.hu/pub/linux/distributions/gentoo/ http://gentoo.inf.elte.hu/"
INSTALL_MASK="/media"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="en en_US hu sk"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_EXTRA_OPTS="--human-readable"
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://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 7zip X a52 aac acpi afterimage alsa amd64 apache2 archive bash-completion berkdb bittorrent branding bs2b bzip2 chdir cli consolekit cron crypt css cue curl cxx dbus device-mapper dhcp dri dts dvd encode expat fam ffmpeg flac fuse gdbm gif git glibc-omitfp glitz gnome-keyring gnutls gpm gstreamer gtk hal hddtemp iconv iproute2 ipv6 iscsi jpeg kvm libnotify libproxy libtiger live lm_sensors logrotate lvm lzma lzo matroska metalink mmap mmx mmxext modules mp3 mpeg mudflap multilib musepack mysql ncurses network-cron nls nonfsv4 nptl nptlonly offensive ogg opengl openmp pam pango passwordsave pcap pcre perl png policykit pppd projectm python qemu qt3support readline reflection rtsp samba sasl schroedinger sdl session shout sndfile snmp soup spl sql sqlite sqlite3 sse sse2 ssl startup-notification stream subversion svg symlink sysfs tftp theora threads thunar tiff toolame truetype twolame udev unicode upnp v4l v4l2 vim-syntax vorbis wavpack webkit wma x264 xcb xcomposite xml xorg xv xvid xvmc 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 asis auth_basic auth_digest authn_alias authn_anon authn_default authn_file authz_default authz_groupfile authz_host             authz_owner authz_user autoindex dav dir env expires headers include info log_config logio mime mime_magic negotiation proxy proxy_http               rewrite setenvif speling status unique_id userdir" APACHE2_MPMS="worker" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US hu sk" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="radeon fglrx"
Unset:  CPPFLAGS, CTARGET, FFLAGS, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS
Comment 8 Sebastian L. 2010-02-15 12:07:59 UTC
I have contacted upstream and pointed them to this bug, and gotten the following reply:

"I've compiled using iptables version 1.4.3.2
in my iptables sources, LIST_POISON2 is defined in linux_list.h
I've found no 'nf_inet_addr_cmp'"

Does this help any?
Comment 9 Philippe Weibel 2010-02-24 13:57:26 UTC
Created attachment 220983 [details, diff]
miniupnpd-1.4-iptcrdr.diff

The following patch solves the compilation problem for me.

emerge --info:


Portage 2.1.7.17 (default/linux/amd64/10.0/desktop, gcc-4.4.3, glibc-2.11-r1, 2.6.32-gentoo-r6 x86_64)
=================================================================
System uname: Linux-2.6.32-gentoo-r6-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-gentoo-2.0.1
Timestamp of tree: Wed, 24 Feb 2010 11:30:21 +0000
ccache version 2.4 [enabled]
app-shells/bash:     4.1_p2
dev-java/java-config: 2.1.10
dev-lang/python:     2.6.4-r1, 3.1.1-r1
dev-python/pycrypto: 2.1.0
dev-util/ccache:     2.4-r8
dev-util/cmake:      2.8.0-r2
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.6.0-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.65
sys-devel/automake:  1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20
sys-devel/gcc:       4.4.3
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6b
virtual/os-headers:  2.6.32
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8-sse3 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
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/terminfo"
CXXFLAGS="-march=k8-sse3 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests buildpkg ccache collision-protect distlocks fixpackages news noinfo notitles parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_FR.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="fr"
MAKEOPTS="-j3"
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/layman/vdr-testing /usr/local/portage/layman/sunrise /usr/local/portage/layman/vdr-xine /usr/local/portage/layman/pro-audio /usr/local/local-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 apache2 applet branding bzip2 cairo cdr cli cracklib crypt cups curl cxx dbus dri dts dvd dvdr emboss encode evo exif fam firefox flac fontconfig fortran fuse gdbm gif gnome gstreamer gtk hal iconv jpeg jpeg2k libnotify logrotate mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre pdf perl pic png ppds pppd python qt3support qt4 quicktime readline reflection samba session sndfile spell spl sqlite sse sse2 ssl ssse3 startup-notification svg sysfs tcpd threads thunar tiff truetype udev unicode usb vhosts vorbis x264 xinetd xml xorg xulrunner xv xvid zlib" ALSA_CARDS="hdsp hdspm" 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_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif so speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="worker" DVB_CARDS="dibusb-usb2 dibusb-usb1 usb-dib0700" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev joystick void" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" LIRC_DEVICES="mceusb" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nouveau"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 10 Philippe Weibel 2010-02-24 13:58:40 UTC
Created attachment 220985 [details]
miniupnpd-1.4_pre20090921.ebuild

Modified ebuild to apply the new patch to the source code.
Comment 11 Sebastian L. 2010-02-24 14:50:20 UTC
Created attachment 220989 [details]
ebuild for current version with Philippe's patch and dependency >=linux-headers-2.6.31

I've successfully compiled version 1.4.20091222 (latest version from developer website) with Philippe's patch. I added a dependency for >=sys-kernel/linux-headers-2.6.31 because of /usr/include/asm/bitsperlong.h.
Comment 12 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2010-02-27 00:28:57 UTC
Thanks, I'll take a look at it tomorrow evening, and add it to the tree :-)
Comment 13 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2010-02-28 18:22:59 UTC
It is fixed with the newest headers yes.

But now another problem surfaces - it cannot compile with --as-needed defined in LDFLAGS.

It has been reported to upstream, so we'll have to wait and see what he does to fix it.
Comment 14 Bjarke Istrup Pedersen (RETIRED) gentoo-dev 2010-02-28 19:37:01 UTC
Fixed with the help Diego :-)

1.5_pre20091222 should be in the tree within the hour.