Skip Menu |
 

Date: Wed, 8 Jul 2009 08:55:49 +0300 (EEST)
From: "Kimmo R. M. Hovi" <kimmo.hovi@fairwarning.fi>
To: krb5-bugs@mit.edu
Subject: Build problems of krb5-1.7 on AIX 5.3
Download (untitled) / with headers
text/plain 1.4KiB
Building krb5 from the 1.7 package on AIX 5.3 (that's me) and AIX 6.1 for some others
(See http://www.nabble.com/Kerberos-linking-on-AIX-6.1-td23543026.html ) fails in the
linking phase due to missing linker flags.

This patch does the trick; hth:

--- 8< ---
diff -c -r orig/krb5-1.7/src/config/shlib.conf modified/krb5-1.7/src/config/shlib.conf
*** orig/krb5-1.7/src/config/shlib.conf 2008-12-09 00:33:07.000000000 +0200
--- modified/krb5-1.7/src/config/shlib.conf 2009-07-07 16:51:37.659010000 +0300
***************
*** 464,470 ****
PROFFLAGS=-pg
if test "$ac_cv_c_compiler_gnu" = "yes" ; then
wl_prefix=-Wl,
! RPATH_FLAG='-Wl,-blibpath:'
LDCOMBINE='$(CC) -shared -v -o $@ $$objlist -nostartfiles -Xlinker -bgcbypass:1 -Xlinker -bfilelist -Xlinker -bM:SRE -Xlinker -bE:
$(SHLIB_EXPORT_FILE) -Xlinker -bernotok -Xlinker -brtl $(SHLIB_EXPFLAGS) -lc $$initfini'
else
wl_prefix=
--- 464,470 ----
PROFFLAGS=-pg
if test "$ac_cv_c_compiler_gnu" = "yes" ; then
wl_prefix=-Wl,
! RPATH_FLAG='-Wl,-brtl,-blibpath:'
LDCOMBINE='$(CC) -shared -v -o $@ $$objlist -nostartfiles -Xlinker -bgcbypass:1 -Xlinker -bfilelist -Xlinker -bM:SRE -Xlinker -bE:
$(SHLIB_EXPORT_FILE) -Xlinker -bernotok -Xlinker -brtl $(SHLIB_EXPFLAGS) -lc $$initfini'
else
wl_prefix=
--- 8< ---

--
Kimmo R. M. Hovi | Fair Warning Oy
Principal Consultant |
kimmo@fairwarning.fi | +358-40-7678610
Download patch.krb-shlib
text/plain 1KiB

Message body is not shown because sender requested not to inline it.