[3228] in Kerberos-V5-bugs

home help back first fref pref prev next nref lref last post

krb5-libs/973: libgssapi_krb5 symbol conflicts with glib

daemon@ATHENA.MIT.EDU (nalin@redhat.com)
Fri Jul 6 11:35:04 2001

Resent-From: gnats@rt-11.mit.edu (GNATS Management)
Resent-To: krb5-unassigned@rt-11.mit.edu
Resent-Reply-To: krb5-bugs@MIT.EDU, nalin@redhat.com
Message-Id: <200107061534.f66FYG710323@blade.devel.redhat.com>
Date: Fri, 6 Jul 2001 11:34:16 -0400
From: nalin@redhat.com
Reply-To: nalin@redhat.com
To: krb5-bugs@mit.edu


>Number:         973
>Category:       krb5-libs
>Synopsis:       libgssapi_krb5 defines unused g_strdup, conflicts with
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    krb5-unassigned
>State:          open
>Class:          change-request
>Submitter-Id:   unknown
>Arrival-Date:   Fri Jul  6 11:35:00 EDT 2001
>Last-Modified:
>Originator:     nalin@redhat.com
>Organization:
Red Hat
>Release:        krb5-1.2.2
>Environment:
	
System: Linux blade.devel.redhat.com 2.4.5-10smp #1 SMP Wed Jun 27 14:24:51 EDT 2001 i686 unknown
Architecture: i686

>Description:
	The util_dup.c source file defines a function named g_strdup()
	which appears to be unused.  This symbol conflicts with a
	similarly-named function in the glib library, which is used by
	the GTK+ toolkit and various other programs.  There could be other
	conflicts in naming, because both make use of "g_" as a prefix
	for function names, but this is the case that I've been told
	about.  The original posting is at:
	http://mail.gnome.org/archives/gtk-list/2001-July/msg00122.html
>How-To-Repeat:
	Sample C program which will link successfully with libgssapi_krb5
	or glib:
		#include <glib.h>
		#include <krb5.h>

		int
		main(int argc, char **argv)
		{
        		int i = (g_strdup("Test string") != NULL);
        		return !i;
		}
	Can be built by running:
	gcc -o example `glib-config --cflags` -I/usr/kerberos/include example.c `glib-config --libs`
	or:
	gcc -o example `glib-config --cflags` -I/usr/kerberos/include example.c -L/usr/kerberos/lib -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err
>Fix:
	Is it possible to rename the functions using a different prefix?
>Audit-Trail:
>Unformatted:
		glib used by GTK+ toolkit and various other programs

home help back first fref pref prev next nref lref last post