[2425] in Kerberos-V5-bugs
krb5-misc/168: "dbopen" clashes with sybase function of same name
daemon@ATHENA.MIT.EDU (Prasad Jonnalagadda)
Fri Nov 8 17:39:55 1996
Resent-From: gnats@rt-11.MIT.EDU (GNATS Management)
Resent-To: krb5-unassigned@RT-11.MIT.EDU
Resent-Reply-To: krb5-bugs@MIT.EDU, prasadj@fortune-cookie.cam.ov.com
Date: Fri, 8 Nov 1996 17:38:38 -0500
From: prasadj@fortune-cookie.cam.ov.com (Prasad Jonnalagadda)
Reply-To: prasadj@fortune-cookie.cam.ov.com
To: krb5-bugs@MIT.EDU
Cc: prasad@grf.ov.com
>Number: 168
>Category: krb5-misc
>Synopsis: "dbopen" clashes with sybase function of same name
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: krb5-unassigned
>State: open
>Class: change-request
>Submitter-Id: unknown
>Arrival-Date: Fri Nov 08 17:39:00 EST 1996
>Last-Modified:
>Originator: Prasad Jonnalagadda
>Organization:
OpenVision Technologies, Inc.
>Release:
>Environment:
System: SunOS fortune-cookie.cam.ov.com 5.5.1 Generic sun4m sparc SUNW,SPARCstation-LX
Architecture: sun4
>Description:
The function dbopen() of BSD db conflicts with Sybase's dblib
function "dbopen". As long as there is no mix between Sybase
and BSD db libraries, there is no problem. In BED library, dbopen()
function is available in ~/db/db.c
>How-To-Repeat:
Try linking something with both BSD libs and Sybase.
>Fix:
I think what we should probably do is find the generic DB library
header file that's included by everything that uses the DB library
(and, hopefully, by everything inside the DB library as well),
probably "db.h", and do "#define dbopen bsd_dbopen" in it. That way,
we'll only have to worry about keeping the change in that one file
when we upgrade to new BSD db versions.
So, just put the #define in "db.h" before the declaration of dbopen.
>Audit-Trail:
>Unformatted: