From nalin@blade.devel.redhat.com Fri Jul 6 11:34:22 2001 Received: from pacific-carrier-annex.mit.edu (PACIFIC-CARRIER-ANNEX.MIT.EDU [18.7.21.83]) by rt-11.mit.edu (8.9.3/8.9.3) with ESMTP id LAA20127 for ; Fri, 6 Jul 2001 11:34:21 -0400 (EDT) Received: from blade.devel.redhat.com (nat-pool-meridian.redhat.com [199.183.24.200]) by pacific-carrier-annex.mit.edu (8.9.2/8.9.2) with ESMTP id LAA00848 for ; Fri, 6 Jul 2001 11:34:21 -0400 (EDT) Received: (from nalin@localhost) by blade.devel.redhat.com (8.11.4/8.11.4) id f66FYG710323; Fri, 6 Jul 2001 11:34:16 -0400 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 Subject: libgssapi_krb5 symbol conflicts with glib X-Send-Pr-Version: 3.99 >Number: 973 >Category: krb5-libs >Synopsis: libgssapi_krb5 defines unused g_strdup, conflicts with >Confidential: no >Severity: non-critical >Priority: medium >Responsible: tlyu >State: analyzed >Class: change-request >Submitter-Id: unknown >Arrival-Date: Fri Jul 6 11:35:00 EDT 2001 >Last-Modified: Thu Oct 11 22:10:00 EDT 2001 >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 #include 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: State-Changed-From-To: open-analyzed State-Changed-By: tlyu State-Changed-When: Thu Oct 11 22:04:31 2001 State-Changed-Why: Responsible-Changed-From-To: krb5-unassigned->tlyu Responsible-Changed-By: tlyu Responsible-Changed-When: Thu Oct 11 22:04:40 2001 Responsible-Changed-Why: mine now From: Tom Yu To: nalin@redhat.com Cc: krb5-bugs@MIT.EDU Subject: Re: krb5-libs/973: libgssapi_krb5 defines unused g_strdup, conflicts with Date: Thu, 11 Oct 2001 22:09:46 -0400 (EDT) >>>>> "nalin" == nalin writes: nalin> The util_dup.c source file defines a function named g_strdup() nalin> which appears to be unused. This symbol conflicts with a nalin> similarly-named function in the glib library Thanks for pointing this out. I know that the g_* functions in the gssapi library are potentially problematic. This also goes into the general issue of namespace invasion, which overall we're rather bad at. We will, in time, reduce the number of these namespace conflicts, but it is not a terribly high priority at the moment. ---Tom >Unformatted: glib used by GTK+ toolkit and various other programs