Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359005 - net-libs/libgsasl-1.6.0 - fails to properly detect >=app-crypt/heimdal-1.4
Summary: net-libs/libgsasl-1.6.0 - fails to properly detect >=app-crypt/heimdal-1.4
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Net-Mail Packages
URL:
Whiteboard:
Keywords:
: 389351 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-15 12:01 UTC by Torsten Kurbad
Modified: 2021-01-01 22:53 UTC (History)
5 users (show)

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


Attachments
Patch for gss-extra.c (libgsasl-1.6.0-gss-extra.c.patch,467 bytes, patch)
2011-03-15 17:21 UTC, Torsten Kurbad
Details | Diff
build.log (build.log,20.49 KB, text/plain)
2011-03-15 20:54 UTC, Torsten Kurbad
Details
config.log (config.log,157.86 KB, text/plain)
2011-03-15 21:14 UTC, Torsten Kurbad
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Torsten Kurbad 2011-03-15 12:01:18 UTC
I tried emerging libgsasl, but ended up with the following error:

gss-extra.c:43:10: error: expected identifier or '(' before '&' token
make[4]: *** [gss-extra.lo] Error 1

Can someone reproduce that or - even better - tell me how to fix it?

Reproducible: Always




emerge --info

Portage 2.1.9.42 (default/linux/amd64/10.0, gcc-4.5.2, glibc-2.13-r2, 2.6.37-gentoo-r2 x86_64)
=================================================================
System uname: Linux-2.6.37-gentoo-r2-x86_64-Intel-R-_Xeon-R-_CPU_X5450_@_3.00GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 14 Mar 2011 08:45:01 +0000
ccache version 3.1.4 [enabled]
app-shells/bash:     4.2_p7
dev-java/java-config: 2.1.11-r3
dev-lang/python:     2.4.6, 2.5.4-r4, 2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.4
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.4_p6-r1, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -Os -msse3 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb /var/qmail/alias /var/qmail/control"
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.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=nocona -Os -msse3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo ftp://ftp.informatik.rwth-aachen.de/pub/Linux/gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="de_DE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j10"
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/layman/dev-zero /var/lib/layman/iwm /var/lib/layman/jokey /var/lib/layman/samba4 /var/lib/layman/sunrise /var/lib/layman/dev-zero /var/lib/layman/dev-nelchael /var/lib/layman/science /var/lib/layman/mds /usr/local/portage"
SYNC="rsync://rsync.de.gentoo.org/gentoo-portage"
USE="7zip X a52 aac accessibility acl acpi additions ads alsa amd64 amr apache2 artworkextra asf aspell async atk audacious autoipd avahi bash-completion beagle berkdb bluetooth browserplugin bzip2 cairo caps cdda cddb cdparanoia cdr cli colordiff consolekit cracklib crypt css cuda cups curl cxx daap dbus device-mapper djvu dns dri dts dvd dvdr dvi eds encode esd evdev exif expat fam fbcon ffmpeg fftw flac fluidsynth fontconfig fortran freetts fuse gd gdbm gif gimpprint glitz gmp gnome gnome-keyring gnutls gphoto2 gpm gs gstreamer gtk gtkhtml guile gzip h323 hal hddtemp hvm ical iconv id3tag imagemagick imlib jack jack-tmpfs jadetex java java6 jit jpeg jpeg2k kdrive kerberos keyring kpathsea lame lash latex lcms ldap libgcrypt libnotify lm_sensors logrotate lzo mad matroska mbrola mdnsresponder-compat mikmod mjpeg mmap mmx mmxext mng modules mono mp2 mp3 mp4 mpeg mplayer mpm-worker mtp mudflap multilib musepack musicbrainz mysql nautilus ncurses network nls nptl nptlonly nsplugin nvidia offensive ogg opengl openmp pae pam pango pcre pdf perl pidgin pipechan plotutils png pnm policykit portaudio postgres postproc postscript ppds pppd pygrub python qmail qt qt3support qt4 quicktime quota quotas rar readline rle rrdcgi rtsp samba samba4 sasl screen sdl seamonkey semantic-desktop sensord session shout sip slang smp sms smt sndfile sound spell sqlite sse sse2 sse3 ssl ssse3 stream subtitles subversion suid svg swat sylpheed sysfs t1lib taglib tagwriting tcl tcltk tcpd test tetex tga theora threads tidy tiff tk truetype tta unicode urandom usb v4l v4l2 vcd vditool vdpau vlm vorbis wav wavpack webdav webkit wma wmf wrapper wxwindows x264 xattr xcb xcomposite xen xine xml xml2 xorg xosd xpm xprint xscreensaver xulrunner xv xvid xvmc xxmc zlib" 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 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 proxy proxy_connect proxy_ftp proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CAMERAS="canon 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" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Torsten Kurbad 2011-03-15 17:21:09 UTC
Created attachment 265987 [details, diff]
Patch for gss-extra.c

I analyzed the problem further. As it seems, libgsasl's (and likewise net-misc/gsasl's) configure mistakes my system for something Windows-related.

So after adding this patch, the library compiles fine.

Should I take that matter upstream?
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-15 18:24:53 UTC
Please attach the entire build log.
Comment 3 Torsten Kurbad 2011-03-15 20:54:54 UTC
Created attachment 266031 [details]
build.log
Comment 4 Rafał Mużyło 2011-03-15 21:04:07 UTC
What's your version of heimdal ?
Attach config.log.
Comment 5 Torsten Kurbad 2011-03-15 21:14:02 UTC
Created attachment 266033 [details]
config.log

version of heimdal is 1.4.1_pre20110304
Comment 6 Rafał Mużyło 2011-03-15 21:31:36 UTC
That's the source of your problem.
It would still work with heimdal 1.3.1.
Take note of bug 355375 comment 8.
I'm unsure whether heimdal upstream was free to make such change,
though I vaguely recall a few other packages that did check for GSS_C_NT_HOSTBASED_SERVICE.
Comment 7 Torsten Kurbad 2011-03-16 10:25:48 UTC
(In reply to comment #6)
> That's the source of your problem.
> It would still work with heimdal 1.3.1.
> Take note of bug 355375 comment 8.
> I'm unsure whether heimdal upstream was free to make such change,
> though I vaguely recall a few other packages that did check for
> GSS_C_NT_HOSTBASED_SERVICE.

Hmm, that doesn't sound too good. Anyway, for now my workaround-patch works for me...
Comment 8 MrSnivvel 2011-09-12 20:38:54 UTC
The problem occurs for me with net-libs/libgsasl-1.6.1 and app-crypt/heimdal-1.5 also.
Comment 9 Alexandre Rostovtsev (RETIRED) gentoo-dev 2011-11-01 22:20:43 UTC
I am hitting this problem with libgsasl-1.6.1 and heimdal-1.5.1, even though I am building libgasl with USE=-kerberos. Confirming that the patch in comment #1 works.

kerberos, net-mail herds: *ping*
Comment 10 Eray Aslan gentoo-dev 2011-11-02 08:36:40 UTC
Fixed without a rev bump:

+  02 Nov 2011; Eray Aslan <eras@gentoo.org> libgsasl-1.6.1.ebuild,
+  +files/libgsasl-gss-extra.patch:
+  Fix compiling against heimdal - bug #359005. Thanks to Torsten Kurbad
+
Comment 11 Rafał Mużyło 2011-11-04 16:28:19 UTC
*** Bug 389351 has been marked as a duplicate of this bug. ***
Comment 12 Rafał Mużyło 2011-11-04 16:33:09 UTC
A little note here: the technically more correct solution (an upstreamable one) would involve changing gl/m4/gss-extra.m4 from
AC_CHECK_FUNCS([GSS_C_NT_HOSTBASED_SERVICE])
to something checking header defines.
Comment 13 Eray Aslan gentoo-dev 2011-11-05 21:39:39 UTC
Agreed.  Revised the patch.

+  05 Nov 2011; Eray Aslan <eras@gentoo.org> libgsasl-1.6.1.ebuild,
+  files/libgsasl-gss-extra.patch:
+  Better fix for heimdal - bug #359005. Thanks to Rafał Mużyło.
+
Comment 14 Larry the Git Cow gentoo-dev 2021-01-01 22:53:44 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=73438e5dfbdbe450e1985efb7b17ef0e4512a79c

commit 73438e5dfbdbe450e1985efb7b17ef0e4512a79c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-01-01 22:53:04 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-01-01 22:53:41 +0000

    net-misc/gsasl: bump to 1.10.0
    
    Drops likely-obsolete patch for referenced bug.
    
    Bug: https://bugs.gentoo.org/359005
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/gsasl/Manifest            |  1 +
 net-misc/gsasl/gsasl-1.10.0.ebuild | 85 ++++++++++++++++++++++++++++++++++++++
 2 files changed, 86 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a2d85473cc13720c1c6d60875132c4a841c73795

commit a2d85473cc13720c1c6d60875132c4a841c73795
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-01-01 22:48:31 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-01-01 22:53:40 +0000

    net-libs/libgsasl: bump to 1.10.0
    
    Drops likely-obsolete patch for referenced bug.
    
    Bug: https://bugs.gentoo.org/359005
    Package-Manager: Portage-3.0.9, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 net-libs/libgsasl/Manifest               |  1 +
 net-libs/libgsasl/libgsasl-1.10.0.ebuild | 69 ++++++++++++++++++++++++++++++++
 2 files changed, 70 insertions(+)