Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 376621 - net-misc/tor-0.2.3.2_alpha-r2 fails to build with net-libs/miniupnpc-1.6
Summary: net-misc/tor-0.2.3.2_alpha-r2 fails to build with net-libs/miniupnpc-1.6
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Anthony Basile
URL: https://trac.torproject.org/projects/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-27 15:05 UTC by Olivier Huber
Modified: 2012-04-24 16:26 UTC (History)
4 users (show)

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


Attachments
config.log (config-tor.log,72.96 KB, text/plain)
2011-07-27 15:05 UTC, Olivier Huber
Details
build.log (net-misc:tor-0.2.3.2_alpha-r2:20110727-143031.log,8.43 KB, text/plain)
2011-07-27 15:21 UTC, Olivier Huber
Details
quick and dirty patch libminiupnpc-1.6 (tor-0.2.3.2-alpha-miniupnpc-1.6.patch,2.14 KB, patch)
2011-07-30 09:35 UTC, Nickolay Kolchin-Semyonov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Huber 2011-07-27 15:05:51 UTC
Created attachment 281141 [details]
config.log

checking for libminiupnpc directory... configure: WARNING: We found the libraries for libminiupnpc, but we could not find the C header files.  You may need to install a devel package.
configure: error: Missing headers; unable to proceed.

It seems that the miniupnpc interface changed a lot between 1.5 and 1.6.
I think tor should depend on <net-libs/miniupnpc-1.6 until the code is
ported to the new interface.

Portage 2.2.0_alpha47 (default/linux/amd64/10.0/developer, gcc-4.5.2, glibc-2.13-r3, 2.6.39-gentoo x86_64)
=================================================================
                        System Settings
=================================================================
System uname: Linux-2.6.39-gentoo-x86_64-Intel-R-_Core-TM-2_Duo_CPU_P8600_@_2.40GHz-with-gentoo-2.0.3
Timestamp of tree: Wed, 27 Jul 2011 12:15:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.5 [enabled]
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.6.6-r2::sage-on-gentoo, 2.7.2-r2::sage-on-gentoo, 3.2-r2
dev-util/ccache:          3.1.5
dev-util/cmake:           2.8.5-r2
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.4_p6-r1, 1.7.9-r2, 1.8.5-r4, 1.9.6-r3, 1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21, 2.21.1
sys-devel/gcc:            4.5.2, 4.6.1
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-r3
Repositories: gentoo g-octave sage-on-gentoo kde science x11 bibletime xhub
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=core2 -O2 -pipe -g -mssse3 -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/openvpn/easy-rsa /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.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /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 -g -mssse3 -msse4.1"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache collision-protect distlocks ebuild-locks fixlafiles fixpackages multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms sign splitdebug strict test test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch usersandbox"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/"
LANG="fr_FR.utf-8"
LC_ALL="fr_FR.utf-8"
LDFLAGS="-Wl,--hash-style=gnu -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu -Wl,--sort-common"
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="/var/lib/g-octave /usr/local/overlays/sage-on-gentoo /usr/local/overlays/kde /usr/local/overlays/sci /usr/local/overlays/x11 /usr/local/overlays/bibletime /usr/local/overlays/local"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac abook acl acpi adns alsa amd64 amr amrnb amrwb apng ares aspell ass bash-completion berkdb bluetooth boehm-gc boost bzip2 cairo caps cblas cdaudio cdda cddb cdio cdparanoia cdr cgroup cli consolekit cracklib crypt ctypes-python cups curl custom-cxxflags custom-optimization cvs cxx daap dbus declarative detex device-mapper dia dirac djvu dns dri dtmf dts dv dvb dvd dvdnav dvdr dvipdfm emboss enca encode exif expat extensions extra faac faad fam fbcondecor ffmpeg fftw firefox flac fontconfig fontforge fortran frei0r ft2232 ftd2xx ftdi ftp fts3 fuse gallium gcrypt gd gdbm gdu geoip gif gimp git gles glitz gmp gnutls gpg gpgme gpm graphics graphite graphviz gs gsm gstreamer gtk h323 hdri humanities iconv icu id3tag idn imagemagick imap iproute2 ipv6 jack jadetex jingle jpeg jpeg2k kde kpathsea kqemu kvm lame lapack laptop lash latex latex3 lcms ldap libass libftdi libgcrypt libnotify libproxy libsamplerate libusb-0 libv4l libv4l2 live llvm llvm-gcc lto lua luatex lvm lzma lzo mad matroska mbox melt messenger mjpeg mktemp mmx mng modplug modules mp3 mp4 mpc mpeg mplayer msn mtp mudflap multilib musepack music ncurses nemesi netlink nls nptl nptlonly nsplugin nspluginwrapper nss ntfsprogs ntl ntlm ntp ocaml ocamlopt ocr octave ogg omega opencl openexr opengl openldap openmp openntpd openssl openvg otr pam pango pari24 parport parport-giveio passwdqc pch pcre pda pdf perl phonon pipechan pkcs11 plotutils png policykit pop postgres postproc postscript ppds pppd presto projectm pstricks publishers pulseaudio python qalculate qemu qt3support qt4 quicktime qwt rar readline rnca rss rtmp rtsp ruby sage sasl schroedinger science sdl sdl-image secure-delete semantic-desktop sensord session shout sidebar sip smi smime smp sms smtp sndfile snmp speex spell sqlite sqlite3 sse sse2 sse3 ssh ssl ssse3 startup-notification stream strong-optimization subversion svg sysfs syslog system-sqlite t1lib taglib tcpd teletext text tga theora threads thumbnail tiff tokyocabinet tools toplevel tordns truetype udev udev-acl unicode unlock-notify upnp usb utils v4l v4l2 vaapi vcd vcdinfo vcdx vim vim-syntax virtualbox vorbis vpx wav wavpack webdav webkit wifi winpopup wmf x264 xattr xcb xcomposite xetex xine xml xorg xosd xulrunner xv xvid xvmc zlib zvbi" 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" 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 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="braindump flow karbon kexi kpresenter krita tables words" 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 synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="vesa intel v4l fbdev" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

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

net-misc/tor-0.2.3.2_alpha-r2 was built with the following:
USE="bufferevents (multilib) test threads upnp -doc -nat-pmp -tor-hardening -transparent-proxy"
Comment 1 Agostino Sarubbo gentoo-dev 2011-07-27 15:10:40 UTC
attach also build.log
Comment 2 Olivier Huber 2011-07-27 15:21:33 UTC
Created attachment 281143 [details]
build.log
Comment 3 Anthony Basile gentoo-dev 2011-07-27 17:12:32 UTC
Okay that's strange.  I'm not seeing that at my end.  Can you sync your tree, re-emerge libnatpmp and then post the results of "equery f libnatpmp".
Comment 4 Nickolay Kolchin-Semyonov 2011-07-30 09:11:13 UTC
(In reply to comment #3)
> Okay that's strange.  I'm not seeing that at my end.  Can you sync your tree,
> re-emerge libnatpmp and then post the results of "equery f libnatpmp".

How libnatpmp can be related to this issue? The problem library is libminiupnpc.
Comment 5 Anthony Basile gentoo-dev 2011-07-30 09:33:45 UTC
(In reply to comment #4)
> (In reply to comment #3)
> > Okay that's strange.  I'm not seeing that at my end.  Can you sync your tree,
> > re-emerge libnatpmp and then post the results of "equery f libnatpmp".
> 
> How libnatpmp can be related to this issue? The problem library is
> libminiupnpc.

It isn't, I meant to say miniupnpc.  I'm not seeing a problem with either library so I'm not sure why you're hitting a missed dep at your end.  Just to make sure, resync your tree, emerge net-libs/miniupnpc and then post the results of "equery f miniupnpc"  I want to make sure you've got the .so
Comment 6 Nickolay Kolchin-Semyonov 2011-07-30 09:35:29 UTC
Created attachment 281541 [details, diff]
quick and dirty patch libminiupnpc-1.6

Warning: With this patch, tor is able to compile. I didn't check for correct work at all!

In libminiupnpc-1.6 several functions have changed prototypes.

P.S. I was unable to find any bugtracker for Tor project. So, this issue was not reported upstream.
Comment 7 Anthony Basile gentoo-dev 2011-07-30 09:41:25 UTC
(In reply to comment #6)
> Created attachment 281541 [details, diff]
> quick and dirty patch libminiupnpc-1.6
> 
> Warning: With this patch, tor is able to compile. I didn't check for correct
> work at all!
> 
> In libminiupnpc-1.6 several functions have changed prototypes.
> 
> P.S. I was unable to find any bugtracker for Tor project. So, this issue was
> not reported upstream.

Submit that patch upstream, in the mean time, I will depend on < 1.6
Comment 8 Jason Lamb 2011-12-30 20:24:37 UTC
I don't know if it's related but this patch did not work with libminiupnpc-1.6-r1 and tor-0.2.3.10_alpha-r1, (I couldn't find tor-0.2.3.10_alpha-r2 in the portage tree).

The patch applies correctly to tor-0.2.3.10_alpha-r1 but the emerge still fails with the same error of not finding the C header files for libminiupnpc.

I had to downgrade to libminiupnpc-1.5 in order to upgrade to tor-0.2.3.10_alpha-r1.
Comment 9 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2012-01-20 21:15:15 UTC
If you want to support both the new version and the old one in the same sources, you could use:

#ifdef UPNPDISCOVER_SUCCESS /* miniupnpc-1.6 */
/* new code */
#else
/* old code */
#endif
Comment 10 Anthony Basile gentoo-dev 2012-03-23 00:51:32 UTC
Okay I submitted a patch upstream which is not quick and dirty. I'll be adding it to the tree in a minute with tor-0.2.3.12_alpha-r2.

Please test.
Comment 11 Anthony Basile gentoo-dev 2012-04-24 16:25:48 UTC
The patch was accepted upstream.
Comment 12 Anthony Basile gentoo-dev 2012-04-24 16:26:39 UTC
Oops forgot to close.  It will probably be out in tor-0.2.3.15_alpha.