[3207] in Kerberos-V5-bugs

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

krb5-build/952: stat(), fstat() unresolved linking shared libraries

daemon@ATHENA.MIT.EDU (mwood@IUPUI.Edu)
Thu May 10 12:10:17 2001

Resent-From: gnats@rt-11.mit.edu (GNATS Management)
Resent-To: tlyu@mit.edu
Resent-Reply-To: krb5-bugs@MIT.EDU, mwood@IUPUI.Edu
Message-Id: <m14xt06-000016C@mhw.ULib.IUPUI.Edu>
Date: Thu, 10 May 2001 11:09:14 -0500 (EST)
From: mwood@IUPUI.Edu
Reply-To: mwood@IUPUI.Edu
To: krb5-bugs@mit.edu


>Number:         952
>Category:       krb5-build
>Synopsis:       stat(), fstat() unresolved linking shared libraries
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    tlyu
>State:          open
>Class:          sw-bug
>Submitter-Id:   unknown
>Arrival-Date:   Thu May 10 12:10:00 EDT 2001
>Last-Modified:
>Originator:     Mark H. Wood
>Organization:
Indiana University - Purdue University at Indianapolis
>Release:        krb5-1.2.2
>Environment:
	
	i686 PC
	Linux 2.2
	GNU libc 2.1.2, 2.2.3
System: Linux mhw 2.2.17 #2 Tue Nov 14 16:34:31 EST 2000 i686 unknown
Architecture: i686

>Description:
	Shared versions of libkrb5 and libkrb4 are not linked against
	libc even though they use libc functions.  This causes
	problems with a handful of functions which are not present in
	the shared GNU libc and must be statically linked.
	Specifically, stat() and fstat() remain unresolved.
>How-To-Repeat:
	configure --enable-shared
	make
	make install
	kdestroy
	[error concerning unresolved symbols]
>Fix:

diff -urN krb5-1.2.2/src/lib/krb4/Makefile.in krb5-1.2.2.new/src/lib/krb4/Makefile.in
--- krb5-1.2.2/src/lib/krb4/Makefile.in	Wed Feb 28 17:07:42 2001
+++ krb5-1.2.2.new/src/lib/krb4/Makefile.in	Thu May 10 09:45:46 2001
@@ -23,7 +23,7 @@
 	$(TOPLIBD)/libdes425$(SHLIBEXT) \
 	$(TOPLIBD)/libk5crypto$(SHLIBEXT) \
 	$(TOPLIBD)/libkrb5$(SHLIBEXT)
-SHLIB_EXPLIBS=-lkrb5 -lcom_err -ldes425 -lk5crypto
+SHLIB_EXPLIBS=-lkrb5 -lcom_err -ldes425 -lk5crypto -lc
 SHLIB_DIRS=-L$(TOPLIBD)
 SHLIB_RDIRS=$(KRB5_LIBDIR)
 
diff -urN krb5-1.2.2/src/lib/krb5/Makefile.in krb5-1.2.2.new/src/lib/krb5/Makefile.in
--- krb5-1.2.2/src/lib/krb5/Makefile.in	Wed Feb 28 17:07:43 2001
+++ krb5-1.2.2.new/src/lib/krb5/Makefile.in	Thu May 10 09:45:29 2001
@@ -58,7 +58,7 @@
 SHLIB_EXPDEPS = \
 	$(TOPLIBD)/libk5crypto$(SHLIBEXT) \
 	$(TOPLIBD)/libcom_err$(SHLIBEXT)
-SHLIB_EXPLIBS=-lk5crypto -lcom_err @GEN_LIB@ @RESOLV_LIB@
+SHLIB_EXPLIBS=-lk5crypto -lcom_err @GEN_LIB@ @RESOLV_LIB@ -lc
 SHLIB_DIRS=-L$(TOPLIBD)
 SHLIB_RDIRS=$(KRB5_LIBDIR)
 

>Audit-Trail:
>Unformatted:

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