Missing -lpthreads breaks build in plugins/tls/k5tls on AIX

REIX, Tony tony.reix at atos.net
Thu Aug 24 05:57:42 EDT 2017


Hi,

I have :

krb5-1.15.1/src-64/plugins/tls/k5tls :

  /opt/freeware/libexec/gcc/powerpc-ibm-aix6.1.0.0/6.3.0/collect2  ...
   -bgcbypass:1 -bfilelist -bM:SRE -bE:./k5tls.exports -bernotok -brtl -lkrb5 -lkrb5support -lssl -lcrypto -lc -lgcc_s -lc -lgcc_s
 ld: 0711-317 ERROR: Undefined symbol: .pthread_once
 Makefile:690: recipe for target 'k5tls.so' failed
 gmake[1]: Leaving directory '/opt/freeware/src/packages/BUILD/krb5-1.15.1/src-64/plugins/tls/k5tls'

An easy patch is to add the missing -lpthreads to TLS_IMPL_LIBS variable in Makefile.

-TLS_IMPL_LIBS    = -lssl -lcrypto
+TLS_IMPL_LIBS    = -lssl -lcrypto -lpthreads


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-k5tls-lpthreads.patch
Type: text/x-patch
Size: 382 bytes
Desc: krb5-1.15.1-k5tls-lpthreads.patch
Url : http://mailman.mit.edu/pipermail/krbdev/attachments/20170824/776d7186/attachment-0001.bin


More information about the krbdev mailing list