Change in include/k5-platform.h breaks compiling krb5 1.15.1 on AIX (and more)

REIX, Tony tony.reix at atos.net
Wed Aug 23 08:48:08 EDT 2017


Previous patch contained a little mistake about path of file ./src/include/k5-platform.h
New patch attached.


Patch is:
--- ./src/include/k5-platform.h.ORIGIN    2017-08-23 11:07:08 +0200
+++ ./src/include/k5-platform.h    2017-08-23 11:16:24 +0200
@@ -354,7 +354,7 @@



-#if !defined(SHARED) && !defined(_WIN32)
+#if !defined(SHARED) && !defined(_WIN32) && !defined(USE_LINKER_FINI_OPTION)

 /*
  * In this case, we just don't care about finalization.


Cordialement,

Tony Reix

Bull - ATOS
IBM Coop Architect & Technical Leader
Office : +33 (0) 4 76 29 72 67
1 rue de Provence - 38432 Échirolles - France
www.atos.net<http://www.atos.net/>
________________________________
De : REIX, Tony
Envoyé : mercredi 23 août 2017 12:10
À : krbdev at mit.edu
Objet : Change in include/k5-platform.h breaks compiling krb5 1.15.1 on AIX (and more)

Hi,

I'm moving from krb5 1.9.4 to krb5 1.15.1 .
So, the issue may have appeared before version 1.15 .
It breaks AIX and possibly hpux .

Linker error message on AIX is:
   ld: 0711-328 ERROR: Undefined initfini symbol: krb5int_thread_support_fini
since the following code is generated, where krb5int_thread_support_fini() is static:

static int krb5int_thread_support_init(void); static void krb5int_thread_support_init__aux (void); static k5_init_t krb5int_thread_support_init__once = {
# 32 "threads.c" 3 4
{{ 0, 0, 0, 0, 0, 2, 0 }}
# 32 "threads.c"
, 0, 0, krb5int_thread_support_init__aux }; static void krb5int_thread_support_init__aux (void) { krb5int_thread_support_init__once.did_run = 1; krb5int_thread_support_init__once.er
ror = krb5int_thread_support_init(); } static int krb5int_thread_support_init(void);
static void krb5int_thread_support_fini(void);

The patch attached to this email fixes the issue on AIX.

Regards,

Cordialement,

Tony Reix

Bull - ATOS
IBM Coop Architect & Technical Leader
Office : +33 (0) 4 76 29 72 67
1 rue de Provence - 38432 Échirolles - France
www.atos.net<http://www.atos.net/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: krb5-1.15.1-krb5int_thread_support_fini-v2.patch
Type: text/x-patch
Size: 332 bytes
Desc: krb5-1.15.1-krb5int_thread_support_fini-v2.patch
Url : http://mailman.mit.edu/pipermail/krbdev/attachments/20170823/1a1d6b7b/attachment.bin


More information about the krbdev mailing list