Skip Menu |

Download (untitled) / with headers
text/plain 4.5KiB
From Mon Feb 22 11:14:24 2010
Return-Path: <>
Received: from (PCH.MIT.EDU [])
by (Postfix) with ESMTP id 4EAAE3F0EA;
Mon, 22 Feb 2010 11:14:24 -0500 (EST)
Received: from ( [])
by (8.13.6/8.12.8) with ESMTP id o1MGEOgn013520;
Mon, 22 Feb 2010 11:14:24 -0500
Received: from (MAILHUB-DMZ-4.MIT.EDU [])
by (8.13.6/8.12.8) with ESMTP id o1KNQY71028257
for <>; Sat, 20 Feb 2010 18:26:35 -0500
by (8.13.8/8.9.2) with ESMTP id o1KNQYDk015738
for <>; Sat, 20 Feb 2010 18:26:34 -0500
X-AuditID: 1209190d-b7cf8ae00000096b-56-4b806faa7fe1
Received: from (
by (Symantec Brightmail Gateway) with
SMTP id 54.CE.02411.AAF608B4; Sat, 20 Feb 2010 18:26:34 -0500 (EST)
Received: (qmail 29230 invoked by uid 108); 20 Feb 2010 18:26:34 -0500
Received: from unknown (HELO imp.local) (
by with AES256-SHA encrypted SMTP;
20 Feb 2010 18:26:34 -0500
Received: by imp.local (Postfix, from userid 1101)
id AE3F63B; Sat, 20 Feb 2010 17:58:57 -0500 (EST)
X-send-pr-version: 3.99
Message-Id: <20100220225857.AE3F63B@imp.local>
Date: Sat, 20 Feb 2010 17:58:57 -0500 (EST)
X-Brightmail-Tracker: AAAAAxLvamcS8ELgEvBWdw==
X-Mailman-Approved-At: Mon, 22 Feb 2010 11:14:22 -0500
X-Mailman-Version: 2.1.6
Precedence: list

Show quoted text
>Submitter-Id: net
>Originator: W. Michael Petullo
>Organization: The Oakbud Company
>Confidential: no
>Synopsis: Problem with krb5 libcom_err vs. system libcom_err
>Severity: serious
>Priority: low
>Category: krb5-build
>Class: sw-bug
>Release: 1.7
System: OpenWRT Linux-based cross-compile environment
Architecture: MIPS32

Show quoted text
I am building krb5 within OpenWRT, a Linux/GCC-based cross-compile
environment that targets embedded systems. I have found a problem in
krb5's build system with regard to libcom_err. In my build environment,
there exists both (in the krb5 tree) and
(installed in the build system library directory). I want to use krb5's In fact, is merely a side affect of
building another package and is not ever installed on the target device.

The makefile for krb5kdc is fine. It contains the following rule:


This means that the linker finds first (-L../lib before

However, the makefiles for the libraries (for example,
are broken:

MAKE_SHLIB_COMMAND=$(CC) -shared -fPIC -Wl,-h,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT),--no-undefined $(LDFLAGS) -o $@ $$objlist $(SHLIB_EXPFLAGS) -Wl,--version-script binutils.versions && $(PERL) -w $(SRCTOP)/util/ $(SHLIB_EXPORT_FILE) $@

Here, $(LDFLAGS) is before $(SHLIB_EXPFLAGS). The result is the
-L/BUILD/SYSTEM/LIBS is before -L../../../lib and the libraries link
Show quoted text
Set LDCONFIG to point to a directory with libcom_err and build krb5.

Show quoted text
diff -u --recursive krb5-1.7-vanilla/src/config/shlib.conf krb5-1.7/src/config/shlib.conf
--- krb5-1.7-vanilla/src/config/shlib.conf 2008-12-08 17:33:07.000000000 -0500
+++ krb5-1.7/src/config/shlib.conf 2010-01-15 22:04:16.345151448 -0500
@@ -409,9 +409,9 @@
# Linux ld doesn't default to stuffing the SONAME field...
# Use objdump -x to examine the fields of the library
- LDCOMBINE='$(CC) -shared -fPIC -Wl,-h,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT),--no-undefined $(LDFLAGS)'
+ LDCOMBINE='$(CC) -shared -fPIC -Wl,-h,$(LIBPREFIX)$(LIBBASE)$(SHLIBSEXT),--no-undefined'
- LDCOMBINE_TAIL='-Wl,--version-script binutils.versions && $(PERL) -w $(SRCTOP)/util/ $(SHLIB_EXPORT_FILE) $@'
+ LDCOMBINE_TAIL='-Wl,--version-script binutils.versions $(LDFLAGS) && $(PERL) -w $(SRCTOP)/util/ $(SHLIB_EXPORT_FILE) $@'
# For cases where we do have dependencies on other libraries
# built in this tree...
This problem was previousl reported (#6643) and was already fixed for 1.8.