Modify

Opened 8 years ago

Closed 8 years ago

Last modified 4 years ago

#6508 closed enhancement (fixed)

Fix krb5 build with regards to libcom_err

Reported by: W. Michael Petullo <mike@…> Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: packages Version: Trunk
Keywords: Cc:

Description

This bug has been reported upstream with the krb5 folks.

I have found a problem in krb5's build system with regard to libcom_err. In my OpenWRT build environment, there exists both libcom_err.so.3 (in the krb5 tree) and libcom_err.so.2 (elsewhere in OpenWRT). I want to use krb5's libcom_err.so.3. In fact, libcom_err.so.2 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:

CC_LINK=$(CC) $(PROG_LIBPATH) $(PROG_RPATH_FLAGS) $(CFLAGS) $(LDFLAGS)

This means that the linker finds libcom_err.so.3 first (-L../lib before -L/BUILD/SYSTEM/LIBS)

However, the makefiles for the libraries (for example, libkadm5clnt.so) 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/export-check.pl $(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 against libcom_err.so.2.

Attachments (2)

krb5.patch (513 bytes) - added by W. Michael Petullo <mike@…> 8 years ago.
svn diff of krb5 feed
003-krb5kdc-com-err-fix.patch (986 bytes) - added by W. Michael Petullo <mike@…> 8 years ago.
Patch against krb5-1.7, referenced by new Makefile

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by W. Michael Petullo <mike@…>

svn diff of krb5 feed

Changed 8 years ago by W. Michael Petullo <mike@…>

Patch against krb5-1.7, referenced by new Makefile

comment:1 Changed 8 years ago by jow

  • Resolution set to fixed
  • Status changed from new to closed

Committed in r19170.

comment:2 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.