Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 163494

Summary: net-libs/libksnmp-0.3 failes to compile w/ linux-headers-2.6.19.2-r1
Product: Gentoo Linux Reporter: Blu3 <david+gentoo.org>
Component: New packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: gentoo-bugs, netmon
Priority: High    
Version: 2006.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 159304    

Description Blu3 2007-01-23 20:58:11 UTC
make[2]: Entering directory `/var/tmp/portage/net-libs/libksnmp-0.3/work/libksnmp-0.3/libksnmp'
/bin/sh ../libtool --silent --mode=compile --tag=CXX x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I/usr/kde/3.5/include -I/usr/qt/3/include -I.  -I/usr/kde/3.5/include  -DQT_THREAD_SUPPORT  -D_REENTRANT  -Wnon-virtual-dtor -Wno-long-long -Wundef -ansi -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -Wcast-align -Wconversion -Wchar-subscripts -Wall -W -Wpointer-arith -Wwrite-strings -DNDEBUG -DNO_DEBUG -O2 -march=opteron -O2 -pipe -Wformat-security -Wmissing-format-attribute -fno-exceptions -fno-check-new -fno-common  -c -o session.lo `test -f 'session.cpp' || echo './'`session.cpp
/usr/include/net-snmp/types.h:132: error: conflicting declaration 'typedef long int uintptr_t'
/usr/include/gentoo-multilib/amd64/stdint.h:123: error: 'uintptr_t' has a previous declaration as 'typedef long unsigned int uintptr_t'
make[2]: *** [session.lo] Error 1
make[2]: Leaving directory `/var/tmp/portage/net-libs/libksnmp-0.3/work/libksnmp-0.3/libksnmp'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/net-libs/libksnmp-0.3/work/libksnmp-0.3'
make: *** [all] Error 2



One might presume that since the variable being referenced is "uintptr_t", that it might mean unsigned int :)
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2007-01-23 21:00:11 UTC
emerge --info, please...
Comment 2 Blu3 2007-01-23 21:01:25 UTC
p.s. i am aware of the #ifdef in the code, i believe it's inaccurate to mistype the variable.

#ifndef HAVE_UINTPTR_T
#if SIZEOF_LONG == 8
/* likely 64bit machine with 64bit addressing? */
    typedef long uintptr_t;
#else
    typedef unsigned uintptr_t;
#endif
#endif
Comment 3 Blu3 2007-01-23 21:03:53 UTC
* reopened as -needs fixed-   holy sh*t batman you're fast to delete bugs before i can add anything else to it...  hello?  why the heck do you think people hate filing bugs and just bitch about gentoo developers?  lay off on the lead foot please.



Scott ~ # emerge --info
Portage 2.1.2-r2 (default-linux/amd64/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r4 x86_64)
=================================================================
System uname: 2.6.19-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 5200+
Gentoo Base System release 1.12.9
Timestamp of tree: Tue, 23 Jan 2007 19:00:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-java/java-config: 1.3.7, 2.0.31-r3
dev-lang/python:     2.4.4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1, 2.16.1-r3, 2.17
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.19.2-r1
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=opteron -O2 -pipe "
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"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=opteron -O2 -pipe "
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig candy distlocks metadata-transfer parallel-fetch sandbox sfperms strict userfetch"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-z,now"
LINGUAS="en_US"
MAKEOPTS="-j1"
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.gentoo.org/gentoo-portage"
USE="16bit 64bit GAPING_SECURITY_HOLE X X509 a52 aac aalib acl acpi acpi4linux activefilter aiglx aim aimextras aio akode allegro alsa amarok amd amd64 amr amrr ao aoss aotuv apache2 arts artswrappersuid artworkextra asf asterisk async atm audacious auth authfile automount avantgo background bash-completion bashlogger bcmath bgpclassless bigpatch bittorrent bl bluetooth bonjour bonobo bootsplash boundschecking buttons bzip2 bzlib c++ cairo calendar canvas cap capi caps carbone_theme cdda cddb cdio cdparanoia cdrom cg cgi checkpath chipcard chm chroot clearcase cli codecs config_wizard cpudetection cpulimit cracklib crypt css csv ctype cups curl curlwrappers custom-cflags customlog cvs cvsgraph daap dar32 dar64 dba dbox2 dbus dbx dcc debugger dga dhcp dio discard-path disk-cache diskio distcache divx4linux djbfft dlloader dmalloc dnd dpms dri dts dv dvb dvd dvdr dvdread dxr3 dynagraph dynamic eap-tls ecc edl eds effects elf emboss emoticon emul-linux-x86 enca encode enscript epiphany epson erandom escreen ethereal evo evo2 evolution exif exscalibar extensions extrafilters extraicons extramodules extras faac faad fam fame fat fax festival ffmpeg fftw figlet firefox fits fix-connected-rt flac flash flatfile flexresp flood fltk fluidsynth fmod follow-xff font-server fontconfig foomaticdb force-cgi-redirect fping fpx freetts freetype frontendonly ftp ftruncate galago gb gd gdb geometry geos gif gimp gimpprint gitsendemail glade glgd glib glibc-compat20 glibc-omitfp glitz glx gmail gmailtimestamps gmp gnokii gnome gnome-print gnomecanvas gnomedb gnuplot gnutls gpg2-experimental gphoto2 gpm gps grammar graphicsmagick graphviz grass gs gsl gsm gssapi gstreamer gtk gtk2 gtkspell gzip h323 hal hardened hash hbci hddtemp hdf hdf5 hesiod hfs high-ints hostap hpn html http httpd ibam icecast iconv icp icq id3 ide idea idled ieee1394 iksemel imagemagick imap imlib imlib2 inkjar inline inode insecure-drivers insecure-patches insecure-savers ipod iproute2 ipv6 irda irmc isdnlog j2ee jabber jasper java javacomm javamail javascript jbig john jp2 jpeg jpeg2k jumpplay kadu-modules kadu-voice kcal kde kdeenablefinal kdepim kdgraphics kerberos kexi keyscrub kipi koffice-plugin lame lcms ldap ldapsam libcaca libclamav libdsk libg++ libgd libgda libsamplerate libvisual lids linuxkeys linuxthreads-tls live lm_sensors logitech-mouse logrotate ltsp lzo lzw lzw-tiff mad madwifi mbox mbrola md5sum mem-cache memlimit menubar messages mew mfd-rewrites mgetty mhash mime mimencode ming mixer mjpeg mmap mng modplug moneyplex monkey mounts-check mozcalendar mozdevelop mozdom mozilla moznoirc mozp3p mozsha1 mozsvg mozxmlterm mp3 mp4 mp4live mpeg mpeg2 mpeg4 mpi mplayer mschap msdav msn mudflap multicall multipath multislot musepack musicbrainz mythtv nagios-dns nagios-ntp nagios-ping nagios-ssh ncurses net netcdf netclient netpbm netserver network new-login nforce2 ngui nntp no-old-linux nodrm normalizemime nptl nptlonly nsplugin nspr ntfs ntlm nvidia nviz nvram oav objc objc++ objc-gc odbc offensive ofx ogg oggvorbis on-the-fly-crypt openal openexr opengl openssl operanom2 ortp osc oscar ospfapi overload pam pam_chroot pam_console pam_timestamp pango parse-clocks patch patented pcap pcapnav pch pci pcntl pcre pda pdf pear perl pg-hier pg-vacuumdelay php pic pie player plib plx pmu png pnp portaudio posix postfix postgres povray ppds pppd prelude print priority python qt3 qt3support qt4 quicktime quotas quotes radiotap rar rc5 rcu rdesktop readline realms reflection reiser4 reiserfs remote replytolist rfkill rpm rrdtool rss rt2500pci rtc samba sametime sasl scanner scp screen sdl sendfile sensord serial server session setup-plugin sftp sftplogging sguil shape shaper shared sharedext sharedmem shorten shout silc simplexml skey skins slp smartcard smime smp sms smtp smux sndfile snmp snortsam soap sockets socks5 softfax sound soundtouch sourcecaps sox spamassassin speech speex spell spf spl spreadsheet sql ssl stats stlport stream subp subtitles subversion suid svgz svn-mirror swat symlink sysfs syslog sysvipc szip t1lib tabs tcpd tcpmd5 tcsim tga theora thesaurus thumbnail tidy tiff timidity tokenizer tomsfastmath tos transcode transparent-proxy truetype truetype-fonts ttcp type1 type1-fonts udev underscores unicode ups usb userfiles utempter uudeview v4l v4l2 vcd vcdimager vdr verbose vfat vhosts visualization vlm vmdb vmdbpostgres vnc voice vorbis watchdog wddx webdav wifi winbind wireshark wma wma123 wmf wordexp wordperfect wv wxwindows x11vnc x264 xanim xchat xchatdccserver xcomposite xface xgetdefault xinerama xml xmldoclet xmlreader xmlrpc xmlwriter xorg xosd xpm xprint xrandr xscreensaver xsl xslt xtended xv xvid xvmc yaepg yahoo yiff yv12 zero-penalty-hit zeroconf zip zlib zvbi" 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 mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en_US" USERLAND="GNU" VIDEO_CARDS="nv v4l nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_RSYNC_EXTRA_OPTS

Comment 4 Jakub Moc (RETIRED) gentoo-dev 2007-01-23 21:08:29 UTC
Please calm down; I have no idea how long has the bug been sitting here b/c there's no way to set your timezone in bugzilla. And noone's deleted your bug, it's been marked NEEDINFO.
Comment 5 Blu3 2007-01-23 21:16:33 UTC
Opened: 2007-01-23 20:58 -0800

:P

i.e. you closed it resolved/need info ~90 seconds after i filed it while i was adding more information and getting ready to paste the patch.

i've already sent the patch upstream, until a new release is made i recommend adding the following in a -rX ebuild.

Scott ~ # diff -ruN /usr/include/net-snmp/types.h~ /usr/include/net-snmp/types.h
--- /usr/include/net-snmp/types.h~      2007-01-23 16:07:03.000000000 -0500
+++ /usr/include/net-snmp/types.h       2007-01-23 16:07:03.000000000 -0500
@@ -129,7 +129,7 @@
 #ifndef HAVE_UINTPTR_T
 #if SIZEOF_LONG == 8
 /* likely 64bit machine with 64bit addressing? */
-    typedef long uintptr_t;
+    typedef unsigned long uintptr_t;
 #else
     typedef unsigned uintptr_t;
 #endif
Comment 6 Jakub Moc (RETIRED) gentoo-dev 2007-01-23 21:22:56 UTC
Please, don't resolve bugs that are not fixed in the tree.
Comment 7 Blu3 2007-01-23 21:35:02 UTC
...the irony, reopened after you closed it

p.s.
the summary is wrong.  linux-headers doesn't have anything to do with it.  gentoo-multilib/amd64/stdint.h is correct, net-snmp/types.h is incorrect and belongs to the net-snmp library.
Comment 8 SpanKY gentoo-dev 2007-01-23 21:38:07 UTC
no idea why this is sitting at toolchain's door ... the bug is clearly net-snmp sucks

on a properly built machine, that ifdef should not be executed in the first place, so a better place to start is figure out why your /usr/include/net-snmp/net-snmp-config.h is not defining HAVE_UINTPTR_T

aaaalso, the mere fact that net-snmp is polluting the namespace is pretty broken
Comment 9 Blu3 2007-01-23 21:50:20 UTC
Bug in the package perhaps:

configure:23231: checking for uintptr_t
configure:23255: x86_64-pc-linux-gnu-gcc -c  -march=opteron -O2 -pipe -Ulinux -Dlinux=linux  conftest.c >&5
configure:23261: $? = 0
configure:23265: test -z
                         || test ! -s conftest.err
configure:23268: $? = 0
configure:23271: test -s conftest.o
configure:23274: $? = 0
configure:23285: result: yes


Scott net-snmp-5.4 # grep -A2 uintptr_t acconfig.h
/* define if you have type uintptr_t */
#undef HAVE_UINTPTR_T

Comment 10 Diego Elio Pettenò (RETIRED) gentoo-dev 2007-01-23 23:21:08 UTC
Netmon, any clue?
libksnmp copied the test theirselves from net-snmp.
Comment 11 Markus Ullmann (RETIRED) gentoo-dev 2007-02-01 16:30:03 UTC
sounds like crazy stuff really :( going to look at it @ weekend
Comment 12 Markus Ullmann (RETIRED) gentoo-dev 2007-06-03 08:06:20 UTC
hrm this thing became stale :(

please reopen if the issue still persists with most-current headers and CC amd64@ then