Summary: | samba-client-3.4.3 doesn't compile: cifs.upcall.c:97: error: incompatible type for argument 1 of ‘k5_data_equal’ | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Harald van Dijk (RETIRED) <truedfx> |
Component: | [OLD] Unspecified | Assignee: | Gentoo's SAMBA Team <samba> |
Status: | RESOLVED TEST-REQUEST | ||
Severity: | normal | CC: | acex5, bugzilla, dkarasik, even.more.spam.for.me, grialousylvain, lordvan, maxim.kraev, tetromino, torsten |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
use heim_general_string instead of krb5_data struct
Ebuild for samba-client-3.4.3 with cifs_upcall.c patch samba-3.4.3-cifs_upcall_c.patch file modified for ebuild/src tree |
Description
Harald van Dijk (RETIRED)
2009-10-31 19:41:21 UTC
I have the same problem. It builds with USE='-ads -samba4'. Same problem with samba4 ads emerge --info Portage 2.1.7.3 (default/linux/amd64/10.0/desktop, gcc-4.3.4, glibc-2.10.1-r0, 2.6.31-gentoo-r3-v1 x86_64) ================================================================= System uname: Linux-2.6.31-gentoo-r3-v1-x86_64-AMD_Athlon-tm-_64_X2_Dual_Core_Processor_4400+-with-gentoo-2.0.1 Timestamp of tree: Sun, 01 Nov 2009 11:00:01 +0000 distcc 3.1 x86_64-pc-linux-gnu [disabled] ccache version 2.4 [enabled] app-shells/bash: 4.0_p35 dev-java/java-config: 2.1.9-r1 dev-lang/python: 2.6.3, 3.1.1-r1 dev-util/ccache: 2.4-r8 dev-util/cmake: 2.6.4-r3 sys-apps/baselayout: 2.0.1 sys-apps/openrc: 0.5.2-r1 sys-apps/sandbox: 2.2 sys-devel/autoconf: 2.13, 2.63-r1 sys-devel/automake: 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11 sys-devel/binutils: 2.20 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="-O2 -march=k8 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config /var/lib/hsqldb" 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/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/calculate/share/distfiles" FEATURES="assume-digests ccache distlocks fixpackages news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs userfetch" GENTOO_MIRRORS="http://mirrors.relaxdom.net/gentoo/distfiles http://mirror.yandex.ru/gentoo-distfiles http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo" LANG="ru_RU.UTF-8" LDFLAGS="-Wl,-O1" LINGUAS="ru en" MAKEOPTS="-j3" PKGDIR="/usr/calculate/share/packages/CLD/9.7/x86_64" 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/kde-testing /usr/local/portage/layman/sunrise /usr/local/portage/layman/desktop-effects /usr/local/portage/layman/qting-edge /usr/local/portage/layman/nx /usr/local/portage/maximka" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="3dnow X a52 aac aalib acl acpi ads alsa amd64 apache2 apm audiofiee avi berkdb bittorrent bluetooth branding bzip2 cairo cddb cdparanoia cdr chm clamav cleartype cli consolekit cracklib crypt cups dbus directfb djvu dri dts dv dvd dvdr dvdread ebook emboss encode evo exif expat fam fbcon ffmpeg firefox firefox3 flac flash foomaticdb fortran ftp gd gdbm ggi gif gphoto2 gpm hal iconv icu id3tag ieee1394 imagemagick irc jabber java java6 jingle jpeg jpeg2k kde kde4 kerberos ldap libcaca libwww lirc logrotate lzo mad matroska mbox melt mikmod mmx mmxext mng modules mozilla mp3 mp4 mpeg mpi mplayer mudflap multilib musepack mysql nas ncurses nfs nls nptl nptlonly nsplugin nvidia ogg oggvorbis openal opengl openmp openssl oscar pam pcre pdf perl php plasma png portaudio ppds pppd python qt3support qt4 quicktime rdesktop readline reflection samba samba4 scanner sdl session slang smp speex spell spl sql srt sse sse2 sse3 sse4.1 sse4.2 sse4a sse5 ssl ssse3 startup-notification svg sysfs tcpd tga theora thunar tiff tools truetype type1 unicode usb userlocales v4l v4l2 vcd vhosts vorbis webkit winbind wmf wxwindows x264 xanim xcomposite xine xinerama xml xorg xpm xulrunner xv xvid xvmc yahoo zlib" ALSA_CARDS="ca0106 emu10k1 hda-intel intel8x0 intel8x0m pcsp via82xx" 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 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" CAMERAS="*" ELIBC="glibc" FOO2ZJS_DEVICES="*" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" NETBEANS_MODULES="ide php cnd websvccommon dlight harness apisupport webcommon enterprise java profiler nb" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS *** Bug 291435 has been marked as a duplicate of this bug. *** I've been able to reproduce this bug. Looks like the ads or samba4 useflag trigger it. Created attachment 209124 [details, diff] use heim_general_string instead of krb5_data struct This problem did not exist before 3.4.3. It's introduced by this samba commit: http://gitweb.samba.org/?p=samba.git;a=commitdiff;h=704b739ad8b5441e4c84215044a77e74e54cf425 Seems to me as if the type of Realm has changed in heimdal from krb5_data to heim_general_string. I wrote a patch to fix it. But beware, my C skills are not the best and it's been quite a long time since I last wrote C. Use it at your own risk. I also opened a bug-report upstream: https://bugzilla.samba.org/show_bug.cgi?id=6868 patch fixed problem for me. samba-client was compiled successfully, and working fine as a domain client. Can confirm that. I was unable to build the package on ppc without the patch. Thanks for the quick solution. Yeah it's the ads use flag. I had samba4 already disabled and it still failed at exactly the same place. Running on amd64, 10.1. Removing the ads use flag let it compile straight away. I also got it to compile by adding --without-cifsupcall to the configure script... Created attachment 209720 [details, diff]
Ebuild for samba-client-3.4.3 with cifs_upcall.c patch
Created attachment 209722 [details, diff]
samba-3.4.3-cifs_upcall_c.patch file modified for ebuild/src tree
These two files now work in the emerge process!
I believe bug #292195 is also related .. should it be added as a dependency for this - or vice-versa? patch works here too. Please include. Bug has been marked as fixed by upstream. I hope it will be included in the next samba 3.4 release. https://bugzilla.samba.org/show_bug.cgi?id=6868 3.4.4 is in the tree, please test and reopen if the error persists |