When emerging kth-rkb-1.2.2-r2, portage reports the following error: -- forkpty.c:74: error: static declaration of
When emerging kth-rkb-1.2.2-r2, portage reports the following error: -- forkpty.c:74: error: static declaration of revoke follows non-static declaration /usr/include/unistd.h:821: error: previous declaration of revoke was here -- Reproducible: Always Steps to Reproduce: 1. emerge --sync to get latest database 2. emerge kth-krb 3. build will fail Actual Results: Build proceeds for a while, but eventually comes down to the same error. Expected Results: Software should have compiled completely and proceeded to emerge to /. kth-krb is required for emerging aRts, which is a crucial component of KDE.
Created attachment 73427 [details] Output of 'emerge kth-krb'
It looks like the line 'revoke(const char *line)' in forkpty.c (line 73) conflicts with the line 'extern int revoke (__const char *__file) __THROW __nonnull ((1))' in /usr/include/unistd.h (line 821). I'm not very familiar with C (yet ;)) but would it be appropriate to change the line in forkpty.c to 'revoke(__const char *line)' ?
OK. Scratch that last question. I commented out line 71 in forkpty.c ('static') and everything compiled fine. Will changing the declaration from static break anything? Or is this an OK fix?
yes it should be ok commenting out the static declaration
This problem is still present; I got it on AMD64 also. [ebuild N ] app-crypt/kth-krb-1.2.2-r2 USE="ssl" 0 kB Portage 2.1_pre6-r5 (default-linux/amd64/2006.0, gcc-4.1.0, glibc-2.4-r1, 2.6.15-gentoo-r7 x86_64) ================================================================= System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.0_pre16 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-r2 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 -O3 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /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/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d" CXXFLAGS="-march=k8 -O3 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="ftp://gentoo.chem.wisc.edu/gentoo/" LANG="en_US.utf8" LC_ALL="en_US.utf8" LINGUAS="en_GB" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" SYNC="rsync://rsync.us.gentoo.org/gentoo-portage" USE="amd64 X X509 Xaw3d a52 aac alsa apache2 arts avi bash-completion bcmath berkdb bitmap-fonts browserplugin bzip2 cairo cdr cli crypt ctype cups dba dbus dga djbfft djvu dlloader doc dri dts dvd dvdread dvi dxr3 eds emboss encode esd examples exif expat fastbuild ffmpeg firefox flac fltk foomaticdb force-cgi-redirect fortran ftp gd gdbm ggi gif gnome gnutls gpgme gpm graphviz gs gstreamer gtk gtk2 hal imagemagick imlib java javascript jpeg jpeg2k kde kerberos krb4 lcms lesstif libedit lirc logrotate lzo lzw lzw-tiff mad mailwrapper md5sum memlimit mng mono motif mozdevelop mozilla mp3 mpeg musicbrainz mysql mysqli nautilus ncurses neXt nls nntp nptl nsplugin ntpl nvidia ogg openal openexr opengl oss pam pcntl pcre pdflib perl php png posix ppds pwdb python qt quicktime readline real rle rtc sdl session simplexml smime sndfile soap sockets source speex spell spl sql sqlite ssl symlink t1lib tcltk tcpd tetex theora threads tidy tiff tokenizer toolbar truetype truetype-fonts type1-fonts unicode urandom usb v4l v4l2 vorbis xine xml xml2 xmldoclet xmlreader xmlrpc xmlwriter xmms xpm xprint xscreensaver xsl xv xvid xvmc zip zlib elibc_glibc kernel_linux linguas_en_GB userland_GNU video_cards_nvidia" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS, PORTDIR_OVERLAY
Created attachment 84513 [details] Patched ebuild Added patched ebuild, which now works for me.
That ebuild works for me, too. What is the process for getting it committed to portage?
for the most part; sit and wait for someone from gentoo to add it (which can take a while).
Is there a specific way to bring it to the dev-team's attention?
well, you could possibly try the irc channel, as there should be a channel for kerberos stuff. Otherwise there is a general dev channel, which they can either direct you to the correct channel, or possibly take a look at it and submit it on the servers. Only other thing I can think of; is possibly trying to contactig directly via email; someone that is in the kerberos maintainers team to get him/her to take a look at it. Personaly I think the irc would be the easiest, and possibly the fastest way.
oh ya, almost forgot you may want to tell them this is a platform independent problem
Is this a problem with ftp://ftp.pdc.kth.se/pub/krb/src/snapshots/krb4-1.3rc1.tar.gz ? For openssl compatibility the 1.3 version should go in.
This bug it's self isn't for version 1.3, it's for version 1.2.2-r2.
forkpty.c is the same in 1.3rc1, so the bug applies to it too; should be fixed now.
Signore Giaquinta, please do have a look at these bugs.
closing, as this is fixed.