'Emerge mit-krb5' fails with: ... i686-pc-linux-gnu-gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DKRB5_KRB4_COMPAT=1 -DKRB5_PRIVATE=1 -DKRB5_DEPRECATED=1 -DKRB5_DNS_LOOKUP_KDC=1 -DKRB5_DNS_LOOKUP_REALM=1 -DKRB5_DNS_LOOKUP=1 -DHAVE_LIBRESOLV=1 -DHAVE_RES_NINIT=1 -DHAVE_RES_NCLOSE=1 -DHAVE_RES_NSEARCH=1 -DHAVE_DN_SKIPNAME=1 -DHAVE_RES_SEARCH=1 -DHAVE_PRAGMA_WEAK_REF=1 -DDELAY_INITIALIZER=1 -DCONSTRUCTOR_ATTR_WORKS=1 -DDESTRUCTOR_ATTR_WORKS=1 -DENABLE_THREADS=1 -DHAVE_PTHREAD=1 -DHAVE_PTHREAD_RWLOCK_INIT_IN_THREAD_LIB=1 -DHAVE_STRCASECMP=1 -DHAVE_STRDUP=1 -DHAVE_SETSID=1 -DHAVE_STRERROR=1 -DHAVE_STRFTIME=1 -DHAVE_GETOPT=1 -DHAVE_HERROR=1 -DHAVE_SETENV=1 -DHAVE_UNSETENV=1 -DHAVE_GETENV=1 -DHAVE_VSNPRINTF=1 -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_UNISTD_H=1 -DHAVE_ARPA_NAMESER_H=1 -DHAVE_SYS_SELECT_H=1 -DHAVE_ARPA_INET_H=1 -DHAVE_CURSES_H=1 -DHAVE_UTMP_H=1 -DHAVE_SYS_TIME_H=1 -DHAVE_SYS_UTSNAME_H=1 -DHAVE_MEMORY_H=1 -DKRB4=1 -DHAVE_UNISTD_H=1 -DHAVE_FORK=1 -DHAVE_VFORK=1 -DHAVE_WORKING_VFORK=1 -DHAVE_WORKING_FORK=1 -DHAVE_STDARG_H=1 -DHAVE_TERM_H=1 -DTERMCAP=1 -DHAVE_STRUCT_SOCKADDR_STORAGE=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_SOCKET_H=1 -DHAVE_NETINET_IN_H=1 -DHAVE_NETDB_H=1 -DHAVE_INET_NTOP=1 -DHAVE_INET_PTON=1 -DHAVE_GETNAMEINFO=1 -DHAVE_GETADDRINFO=1 -DKRB5_USE_INET6=1 -DUSE_TERMIO=1 -DNEED_PARSETOS_PROTO=1 -DPOSIX_SIGNALS=1 -DKRB4=1 -DHAVE_REGCOMP=1 -DTERMCAP=1 -DTIME_WITH_SYS_TIME=1 -DHAVE_LIBUTIL=1 -DAUTHENTICATION -DENCRYPTION -DKRB5 -DFORWARD -UNO_LOGIN_F -DLOGIN_CAP_F -DLOGIN_PROGRAM=KRB5_PATH_LOGIN -DLINEMODE -DKLUDGELINEMODE -DDIAGNOSTICS -DENV_HACK -DOLD_ENVIRON -I../../../include -I./../../../include -I../../../include/krb5 -I./../../../include/krb5 -I.. -I./.. -O2 -march=pentium4 -fomit-frame-pointer -pthread -c telnet.c telnet.c:780: warning: static declaration of 'setupterm' follows non-static declaration /usr/include/term.h:758: warning: previous declaration of 'setupterm' was here telnet.c: In function `setupterm': telnet.c:782: error: argument "tname" doesn't match prototype root@shark:/root(10)# emerge --info Portage 2.1_pre5-r1 (default-linux/x86/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-rc4 i686) ================================================================= System uname: 2.6.16-rc4 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz Gentoo Base System version 1.12.0_pre16 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1-r1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/grass60/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/sh utdown /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/li b/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms strict" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror http://ftp-stud.fht-esslingen.de/pub/Mirrors/g entoo/ rsync://ftp.fi.muni.cz/pub/linux/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo rsync://gd.tuwien.ac.at/op sys/linux/gentoo ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo htt p://gentoo.oregonstate.edu" LINGUAS="de fr" PKGDIR="/usr/portage/packages/All" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="x86 X Xaw3d a52 aac acpi alsa ao aotuv apache2 apm arts asf atlas auctex audiofile automount avi berkdb bitmap-font s blas bonobo bzip2 cairo cdda cddb cdf cdio cdparanoia cgi cli corba crypt cups curl daap dbus devmap dga dri dvb dvd d vi dxr3 dynagraph eds effects elf emacs emboss encode epiphany esd evo evolution exif expat fame ffmpeg fftw fits flac f ltk foomaticdb fortran fpx gdal gdbm geos gif ginac glade gml gmp gnome gnuplot gpm graphviz grass gs gsl gsm gstreamer gtk gtk2 guile hal hardened hddtemp hdf hdf5 hlapi icq id3 imagemagick imlib innodb ipv6 jabber jbig jp2 jpeg jpeg2k kde kexi lame lapack latex lcms ldap libg++ libgda libsamplerate libwww lirc lm_sensors lzo lzw mad math matroska mikmod mm x mng mod mono motif mozcalendar mozdevelop mozilla mozsvg mozxmlterm mp3 mp4live mpeg mpeg2 mplayer musicbrainz mysql m ysqli nautilus ncurses netcdf network nfs nls nntp nptl numarray numeric nvidia ocaml octave odbc ogdi ogg opengl oss pa m pcre pdf pdflib perl plotutils plugin png posix postgres proj python qhull qt quicktime readline real reiserfs rhythmb ox rle rrdcgi rrdtool samba sdl slang slp smp sndfile snmp sox spell sqlite sse sse2 ssl subtitles svg t1lib tcltk tcpd tetex theora tidy tiff truetype truetype-fonts type1-fonts udev unicode v4l2 video_cards_nv video_cards_nvidia vorbis wi n32codecs wmf xemacs xine xml xml2 xmlreader xmlrpc xmms xpm xv xvid xvmc zlib zvbi elibc_glibc kernel_linux linguas_de linguas_fr userland_GNU" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, MAKEOPTS
what version of ncurses do you have installed?
exact failure for me, ncurses-5.5-r1 downgrading to ncurses-5.5 allows package to merge on my system
mike (vapier/spanky), thoughts?
bug in mit-krb5, not ncurses for one, that static warning will become a failure when using gcc-4 ... but then again, setupterm() shouldnt be defined in telnet.c as the configure script should have detected the fact that ncurses supports the function someone post their config.log and you should see why mit-krb5 was unable to detect setupterm() in libncurses
same problem here. one more: telnet.c:780: warning: static declaration of 'setupterm' follows non-static declaration this is ERROR on gcc4, while only warning on gcc 3.x please fix that too, it's sufficient to delete the static keyword
> please fix that too, it's sufficient to delete the static keyword as i said, if the setupterm() is properly detected, this isnt a real issue
Config fails to get setupterm from ncurses because it doesn't link against it: i686-pc-linux-gnu-gcc -o conftest conftest.c -lresolv -ltermcap >&5 /var/tmp/portage/mit-krb5-1.4.3/temp/ccDVsXtf.o: In function `main': conftest.c:(.text+0xe): undefined reference to `setupterm' collect2: ld returned 1 exit status i686-pc-linux-gnu-gcc -o conftest conftest.c -lncurses doesn't bail on my system. So someone should add -lcurses or -lncurses to the gcc commandline. Thanks.
> So someone should add -lcurses or -lncurses to the gcc commandline. a better idea would be to change all '-ltermcap' occurrences to '-lncurses' seemant: make it so
I think src/appl/telnet/configure.in has a bug. It checks for termcap to have main, and then thinks that it also provides setupterm. On my system this does not work, as termcap provides main, but not setupterm. I've modified configure.in to check termcap for setupterm, and if it's not provided, going ahead and check n?curses. Unfortuantly i wasn't able to run autoreconf in the toplevel src dir sucessfully- autoreconf didn't work with or without the patch. So could someone apply that patch and see if he can compile autoreconf? >>> --- src/appl/telnet/configure.in 2004-09-23 00:59:46.000000000 +0200 +++ src/appl/telnet/configure.in 2006-03-02 11:32:15.000000000 +0100 @@ -50,7 +50,7 @@ #endif ]) dnl -AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP) +AC_CHECK_LIB(termcap,setupterm,AC_DEFINE(TERMCAP) LIBS="$LIBS -ltermcap", AC_CHECK_LIB(curses,setupterm,LIBS="$LIBS -lcurses", AC_CHECK_LIB(ncurses,setupterm,LIBS="$LIBS -lncurses") @@ -96,7 +96,7 @@ dnl from old telnetd/configure.in dnl dnl AC_PROG_INSTALL -AC_CHECK_LIB(termcap,main,AC_DEFINE(TERMCAP) +AC_CHECK_LIB(termcap,setupterm,AC_DEFINE(TERMCAP) LIBS="$LIBS -ltermcap", AC_CHECK_LIB(curses,setupterm,LIBS="$LIBS -lcurses", AC_CHECK_LIB(ncurses,setupterm,LIBS="$LIBS -lncurses") <<<
Created attachment 81183 [details] Ebuild that incooperates patch and reconf This is a ebuild that uses the setupterm patch and runs reconf before compiling.
Created attachment 81184 [details, diff] patch that fixes telnet setupterm problem This patch fixes a check in the configure.in of telnet appl causing -lncurses to be missing from $LIBS. Use the ebuild above and this patch in your overlay, until it is fixed in the tree.
(In reply to comment #11) > Created an attachment (id=81184) [edit] > patch that fixes telnet setupterm problem > > This patch fixes a check in the configure.in of telnet appl causing -lncurses > to be missing from $LIBS. > Use the ebuild above and this patch in your overlay, until it is fixed in the > tree. > Seems in the patch you uploaded theres a glitch, your patch wouldnt apply, so I had made the nessecary changes so the patch would build for me, and noticed my patch has quotemarks in it while yours does not, ie: it seems you may be working with a different source tree from me somehow. ( I just noticed the patch listed in clear text probably should work, but the patch you uploaded as a patch does not ) upon testing with my corrected patch, after hand it compiles a treat. Im uploading my $PORTAGE_OVERLAY/app-crypt/mit-krb5 directory as a tar.gz to save everyone the confusion of what to call what etc.
Created attachment 81506 [details] krb5-1.4.3 working ebuild and depended patches Unpack this inside $PORTAGE_OVERLAY/app-crypt and then you should be sweet and set to go :D
(In reply to comment #12) Your right, my patch was missing the compelte path in the header. But nice to see you came to the same solution :) I marked my submissions obsolete.
Am I the only one who can't decompress the archive?
it is issue with the browser - it is only tar, wget the link and rename to sth.tar after that extract :)
Had the same error. Downloaded the "working ebuild" from this bug but still same error. I found reference to this bug from this thread: http://forums.gentoo.org/viewtopic-t-440535-highlight-mitkrb51+4+3.html Last comment there says you would still get an error with this ebuild... # emerge --info Portage 2.1_pre6-r5 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.16-gentoo-1ct x86_64) ================================================================= System uname: 2.6.16-gentoo-1ct x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.0_pre16 ccache version 2.4 [enabled] dev-lang/python: 2.4.2-r1 sys-apps/sandbox: 1.2.17 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.91.0.6 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r3 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d" CXXFLAGS="-march=k8 -O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict usersandbox" GENTOO_MIRRORS="http://mirror.gentoo.no/ http://ftp.du.se/pub/os/gentoo" LDFLAGS="" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="amd64 7zip X aac acpi alsa apache2 apm avi berkdb bitmap-fonts bluetooth bzip2 cairo cdda cddb cdparanoia cdr cdrom cli crypt css ctype cups dba dbus dri dts dvd dvdr dvdread elf emboss encode expat fam fastbuild fat firefox font-server foomaticdb force-cgi-redirect fortran ftp gd gif gimp glep glibc-omitfp glitz glx gmail gmailtimestamps gnome gnutls gpm gstreamer gstreamer10 gtk gtk2 gzip h323 hal i8x0 ieee1394 imagemagick imap imlib java javascript jce jpeg jpeg2k kerberos lame lm_sensors lzw lzw-tiff memlimit mmap mp3 mpeg mpeg2 msn mysql mysqli ncurses nforce2 nls nptl nptlonly nsplugin nvidia oav ogg opengl openssh openssl opera pam pcre pdflib perl pmu png posix python quicktime rar readline reiserfs samba session simplexml soap sockets spell spl ssl symlink tcpd tiff tokenizer toolbar truetype truetype-fonts type1-fonts unicode usb utf8 vorbis xml xml2 xpm xsl xv zip zlib elibc_glibc input_devices_keyboard input_devices_mouse input_devices_evdev kernel_linux userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LINGUAS
I would like to add that I found another bug post, which solved at least my problem with mit-krb5-1.4.3: http://bugs.gentoo.org/show_bug.cgi?id=125966 I made an overlay (copy) of /usr/portage/app-crypt/mit-krb5, and downloaded the ebuild patch and the patchfile for mit-krb5, and now it compiled just fine.
I had to apply both this patch and the patch from http://bugs.gentoo.org/show_bug.cgi?id=125966 to get mit-krb-1.4.3 to compile. Thanks for the patches!
(In reply to comment #18) > I would like to add that I found another bug post, which solved at least my > problem with mit-krb5-1.4.3: > > I made an overlay (copy) of /usr/portage/app-crypt/mit-krb5, and downloaded the > ebuild patch and the patchfile for mit-krb5, and now it compiled just fine. Same result here, these patches and the patch from http://bugs.gentoo.org/show_bug.cgi?id=125966 solved.
Same comment as the other bug (125966) -- if you think I might be involved with a package, please ping me on irc or send me a personal email for now. Also, for attachments -- please *never* attach anything that is not plain text. I'd prefer patches to ebuilds and other patches to be all separate, and all as plaintext attachments. If you see this and have a chance today, please reattach and obsolete the tarball attachment. Thanks, Seemant
Fixed in 1.4.3-r1
*** Bug 116784 has been marked as a duplicate of this bug. ***
(In reply to comment #22) > Fixed in 1.4.3-r1 > What is fixed, the last part of this bug, or the whole bug? It's still broken in exactly the same way with the same set of packages, for me. 1.4.3-r1 does not appear to have changed anything.
(In reply to comment #24) > (In reply to comment #22) > > Fixed in 1.4.3-r1 > > > > What is fixed, the last part of this bug, or the whole bug? It's still broken > in exactly the same way with the same set of packages, for me. 1.4.3-r1 does > not appear to have changed anything. > My attempt to emerge mit-krb5-1.4.3-r1 appeared to remain broken until I disabled confcache. Then it built OK. Watch out.
I just got bit by this. Has this made it to Stable-x86 in Portage?