pthreads/dlopen issue when building krb-1.6.3 on AIX 6.1?

Luke Scharf luke.scharf at clusterbee.net
Wed May 13 15:14:17 EDT 2009


If I unset PTHREAD_LIBS and RPATH_FLAG, the error messages look useful.  
Also the make fails, if I supply the --disable-thread-support flag.

Here is the relevant section of the log:

    configure:4930: enabling thread support
    configure:5131: checking for the pthreads library -lpthreads
    configure:5169: gcc -o conftest -g -O2 -Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow -pedantic    conftest.c -lpthreads  >&5
    In file included from /usr/include/sys/cred.h:49,
                     from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/secattr.h:49: error: expected specifier-qualifier-list before 'rid_t'
    /usr/include/sys/secattr.h:65: error: expected specifier-qualifier-list before 'authnum_t'
    In file included from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/cred.h:331: error: expected specifier-qualifier-list before 'rid_t'
    In file included from /usr/include/pthread.h:66,
                     from conftest.c:34:
    /usr/include/unistd.h:923: error: expected ')' before '[' token
    /usr/include/unistd.h:924: error: expected declaration specifiers or '...' before 'rid_t'
    configure:5175: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | 
    | #define PACKAGE_NAME "Kerberos 5"
    | #define PACKAGE_TARNAME "krb5"
    | #define PACKAGE_VERSION "1.6.3"
    | #define PACKAGE_STRING "Kerberos 5 1.6.3"
    | #define PACKAGE_BUGREPORT "krb5-bugs at mit.edu"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define KRB5_KRB4_COMPAT 1
    | #define HAVE_BT_RSEQ 1
    | #define KRB5_DNS_LOOKUP_KDC 1
    | #define KRB5_DNS_LOOKUP 1
    | #define HAVE_RES_NINIT 1
    | #define HAVE_RES_NCLOSE 1
    | #define HAVE_RES_NSEARCH 1
    | #define HAVE_NS_INITPARSE 1
    | #define HAVE_NS_NAME_UNCOMPRESS 1
    | #define HAVE_DN_SKIPNAME 1
    | #define HAVE_RES_SEARCH 1
    | #define DELAY_INITIALIZER 1
    | #define CONSTRUCTOR_ATTR_WORKS 1
    | #define DESTRUCTOR_ATTR_WORKS 1
    | #define USE_LINKER_FINI_OPTION 1
    | #define ENABLE_THREADS 1
    | /* end confdefs.h.  */
    | #include <pthread.h>
    | int
    | main ()
    | {
    | pthread_t th; pthread_join(th, 0);
    |                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    |                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
    |   ;
    |   return 0;
    | }
    configure:5202: result: no
    configure:5078: checking whether pthreads work without any flags
    configure:5169: gcc -o conftest -g -O2 -Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow -pedantic    conftest.c   >&5
    In file included from /usr/include/sys/cred.h:49,
                     from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/secattr.h:49: error: expected specifier-qualifier-list before 'rid_t'
    /usr/include/sys/secattr.h:65: error: expected specifier-qualifier-list before 'authnum_t'
    In file included from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/cred.h:331: error: expected specifier-qualifier-list before 'rid_t'
    In file included from /usr/include/pthread.h:66,
                     from conftest.c:34:
    /usr/include/unistd.h:923: error: expected ')' before '[' token
    /usr/include/unistd.h:924: error: expected declaration specifiers or '...' before 'rid_t'
    configure:5175: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | 
    | #define PACKAGE_NAME "Kerberos 5"
    | #define PACKAGE_TARNAME "krb5"
    | #define PACKAGE_VERSION "1.6.3"
    | #define PACKAGE_STRING "Kerberos 5 1.6.3"
    | #define PACKAGE_BUGREPORT "krb5-bugs at mit.edu"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define KRB5_KRB4_COMPAT 1
    | #define HAVE_BT_RSEQ 1
    | #define KRB5_DNS_LOOKUP_KDC 1
    | #define KRB5_DNS_LOOKUP 1
    | #define HAVE_RES_NINIT 1
    | #define HAVE_RES_NCLOSE 1
    | #define HAVE_RES_NSEARCH 1
    | #define HAVE_NS_INITPARSE 1
    | #define HAVE_NS_NAME_UNCOMPRESS 1
    | #define HAVE_DN_SKIPNAME 1
    | #define HAVE_RES_SEARCH 1
    | #define DELAY_INITIALIZER 1
    | #define CONSTRUCTOR_ATTR_WORKS 1
    | #define DESTRUCTOR_ATTR_WORKS 1
    | #define USE_LINKER_FINI_OPTION 1
    | #define ENABLE_THREADS 1
    | /* end confdefs.h.  */
    | #include <pthread.h>
    | int
    | main ()
    | {
    | pthread_t th; pthread_join(th, 0);
    |                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    |                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
    |   ;
    |   return 0;
    | }
    configure:5202: result: no
    configure:5083: checking whether pthreads work with -Kthread
    configure:5169: gcc -o conftest -g -O2 -Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow -pedantic -Kthread   conftest.c   >&5
    gcc: unrecognized option '-Kthread'
    In file included from /usr/include/sys/cred.h:49,
                     from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/secattr.h:49: error: expected specifier-qualifier-list before 'rid_t'
    /usr/include/sys/secattr.h:65: error: expected specifier-qualifier-list before 'authnum_t'
    In file included from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/cred.h:331: error: expected specifier-qualifier-list before 'rid_t'
    In file included from /usr/include/pthread.h:66,
                     from conftest.c:34:
    /usr/include/unistd.h:923: error: expected ')' before '[' token
    /usr/include/unistd.h:924: error: expected declaration specifiers or '...' before 'rid_t'
    configure:5175: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | 
    | #define PACKAGE_NAME "Kerberos 5"
    | #define PACKAGE_TARNAME "krb5"
    | #define PACKAGE_VERSION "1.6.3"
    | #define PACKAGE_STRING "Kerberos 5 1.6.3"
    | #define PACKAGE_BUGREPORT "krb5-bugs at mit.edu"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define KRB5_KRB4_COMPAT 1
    | #define HAVE_BT_RSEQ 1
    | #define KRB5_DNS_LOOKUP_KDC 1
    | #define KRB5_DNS_LOOKUP 1
    | #define HAVE_RES_NINIT 1
    | #define HAVE_RES_NCLOSE 1
    | #define HAVE_RES_NSEARCH 1
    | #define HAVE_NS_INITPARSE 1
    | #define HAVE_NS_NAME_UNCOMPRESS 1
    | #define HAVE_DN_SKIPNAME 1
    | #define HAVE_RES_SEARCH 1
    | #define DELAY_INITIALIZER 1
    | #define CONSTRUCTOR_ATTR_WORKS 1
    | #define DESTRUCTOR_ATTR_WORKS 1
    | #define USE_LINKER_FINI_OPTION 1
    | #define ENABLE_THREADS 1
    | /* end confdefs.h.  */
    | #include <pthread.h>
    | int
    | main ()
    | {
    | pthread_t th; pthread_join(th, 0);
    |                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    |                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
    |   ;
    |   return 0;
    | }
    configure:5202: result: no
    configure:5083: checking whether pthreads work with -kthread
    configure:5169: gcc -o conftest -g -O2 -Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow -pedantic -kthread   conftest.c   >&5
    gcc: unrecognized option '-kthread'
    In file included from /usr/include/sys/cred.h:49,
                     from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/secattr.h:49: error: expected specifier-qualifier-list before 'rid_t'
    /usr/include/sys/secattr.h:65: error: expected specifier-qualifier-list before 'authnum_t'
    In file included from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/cred.h:331: error: expected specifier-qualifier-list before 'rid_t'
    In file included from /usr/include/pthread.h:66,
                     from conftest.c:34:
    /usr/include/unistd.h:923: error: expected ')' before '[' token
    /usr/include/unistd.h:924: error: expected declaration specifiers or '...' before 'rid_t'
    configure:5175: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | 
    | #define PACKAGE_NAME "Kerberos 5"
    | #define PACKAGE_TARNAME "krb5"
    | #define PACKAGE_VERSION "1.6.3"
    | #define PACKAGE_STRING "Kerberos 5 1.6.3"
    | #define PACKAGE_BUGREPORT "krb5-bugs at mit.edu"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define KRB5_KRB4_COMPAT 1
    | #define HAVE_BT_RSEQ 1
    | #define KRB5_DNS_LOOKUP_KDC 1
    | #define KRB5_DNS_LOOKUP 1
    | #define HAVE_RES_NINIT 1
    | #define HAVE_RES_NCLOSE 1
    | #define HAVE_RES_NSEARCH 1
    | #define HAVE_NS_INITPARSE 1
    | #define HAVE_NS_NAME_UNCOMPRESS 1
    | #define HAVE_DN_SKIPNAME 1
    | #define HAVE_RES_SEARCH 1
    | #define DELAY_INITIALIZER 1
    | #define CONSTRUCTOR_ATTR_WORKS 1
    | #define DESTRUCTOR_ATTR_WORKS 1
    | #define USE_LINKER_FINI_OPTION 1
    | #define ENABLE_THREADS 1
    | /* end confdefs.h.  */
    | #include <pthread.h>
    | int
    | main ()
    | {
    | pthread_t th; pthread_join(th, 0);
    |                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    |                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
    |   ;
    |   return 0;
    | }
    configure:5202: result: no
    configure:5131: checking for the pthreads library -llthread
    configure:5169: gcc -o conftest -g -O2 -Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow -pedantic    conftest.c -llthread  >&5
    In file included from /usr/include/sys/cred.h:49,
                     from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/secattr.h:49: error: expected specifier-qualifier-list before 'rid_t'
    /usr/include/sys/secattr.h:65: error: expected specifier-qualifier-list before 'authnum_t'
    In file included from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/cred.h:331: error: expected specifier-qualifier-list before 'rid_t'
    In file included from /usr/include/pthread.h:66,
                     from conftest.c:34:
    /usr/include/unistd.h:923: error: expected ')' before '[' token
    /usr/include/unistd.h:924: error: expected declaration specifiers or '...' before 'rid_t'
    configure:5175: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | 
    | #define PACKAGE_NAME "Kerberos 5"
    | #define PACKAGE_TARNAME "krb5"
    | #define PACKAGE_VERSION "1.6.3"
    | #define PACKAGE_STRING "Kerberos 5 1.6.3"
    | #define PACKAGE_BUGREPORT "krb5-bugs at mit.edu"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define KRB5_KRB4_COMPAT 1
    | #define HAVE_BT_RSEQ 1
    | #define KRB5_DNS_LOOKUP_KDC 1
    | #define KRB5_DNS_LOOKUP 1
    | #define HAVE_RES_NINIT 1
    | #define HAVE_RES_NCLOSE 1
    | #define HAVE_RES_NSEARCH 1
    | #define HAVE_NS_INITPARSE 1
    | #define HAVE_NS_NAME_UNCOMPRESS 1
    | #define HAVE_DN_SKIPNAME 1
    | #define HAVE_RES_SEARCH 1
    | #define DELAY_INITIALIZER 1
    | #define CONSTRUCTOR_ATTR_WORKS 1
    | #define DESTRUCTOR_ATTR_WORKS 1
    | #define USE_LINKER_FINI_OPTION 1
    | #define ENABLE_THREADS 1
    | /* end confdefs.h.  */
    | #include <pthread.h>
    | int
    | main ()
    | {
    | pthread_t th; pthread_join(th, 0);
    |                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    |                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
    |   ;
    |   return 0;
    | }
    configure:5202: result: no
    configure:5083: checking whether pthreads work with -pthread
    configure:5169: gcc -o conftest -g -O2 -Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow -pedantic -pthread   conftest.c   >&5
    In file included from /usr/include/sys/cred.h:49,
                     from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/secattr.h:49: error: expected specifier-qualifier-list before 'rid_t'
    /usr/include/sys/secattr.h:65: error: expected specifier-qualifier-list before 'authnum_t'
    In file included from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/cred.h:331: error: expected specifier-qualifier-list before 'rid_t'
    In file included from /usr/include/pthread.h:66,
                     from conftest.c:34:
    /usr/include/unistd.h:923: error: expected ')' before '[' token
    /usr/include/unistd.h:924: error: expected declaration specifiers or '...' before 'rid_t'
    configure:5175: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | 
    | #define PACKAGE_NAME "Kerberos 5"
    | #define PACKAGE_TARNAME "krb5"
    | #define PACKAGE_VERSION "1.6.3"
    | #define PACKAGE_STRING "Kerberos 5 1.6.3"
    | #define PACKAGE_BUGREPORT "krb5-bugs at mit.edu"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define KRB5_KRB4_COMPAT 1
    | #define HAVE_BT_RSEQ 1
    | #define KRB5_DNS_LOOKUP_KDC 1
    | #define KRB5_DNS_LOOKUP 1
    | #define HAVE_RES_NINIT 1
    | #define HAVE_RES_NCLOSE 1
    | #define HAVE_RES_NSEARCH 1
    | #define HAVE_NS_INITPARSE 1
    | #define HAVE_NS_NAME_UNCOMPRESS 1
    | #define HAVE_DN_SKIPNAME 1
    | #define HAVE_RES_SEARCH 1
    | #define DELAY_INITIALIZER 1
    | #define CONSTRUCTOR_ATTR_WORKS 1
    | #define DESTRUCTOR_ATTR_WORKS 1
    | #define USE_LINKER_FINI_OPTION 1
    | #define ENABLE_THREADS 1
    | /* end confdefs.h.  */
    | #include <pthread.h>
    | int
    | main ()
    | {
    | pthread_t th; pthread_join(th, 0);
    |                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    |                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
    |   ;
    |   return 0;
    | }
    configure:5202: result: no
    configure:5083: checking whether pthreads work with -pthreads
    configure:5169: gcc -o conftest -g -O2 -Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow -pedantic -pthreads   conftest.c   >&5
    gcc: unrecognized option '-pthreads'
    In file included from /usr/include/sys/cred.h:49,
                     from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/secattr.h:49: error: expected specifier-qualifier-list before 'rid_t'
    /usr/include/sys/secattr.h:65: error: expected specifier-qualifier-list before 'authnum_t'
    In file included from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/cred.h:331: error: expected specifier-qualifier-list before 'rid_t'
    In file included from /usr/include/pthread.h:66,
                     from conftest.c:34:
    /usr/include/unistd.h:923: error: expected ')' before '[' token
    /usr/include/unistd.h:924: error: expected declaration specifiers or '...' before 'rid_t'
    configure:5175: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | 
    | #define PACKAGE_NAME "Kerberos 5"
    | #define PACKAGE_TARNAME "krb5"
    | #define PACKAGE_VERSION "1.6.3"
    | #define PACKAGE_STRING "Kerberos 5 1.6.3"
    | #define PACKAGE_BUGREPORT "krb5-bugs at mit.edu"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define KRB5_KRB4_COMPAT 1
    | #define HAVE_BT_RSEQ 1
    | #define KRB5_DNS_LOOKUP_KDC 1
    | #define KRB5_DNS_LOOKUP 1
    | #define HAVE_RES_NINIT 1
    | #define HAVE_RES_NCLOSE 1
    | #define HAVE_RES_NSEARCH 1
    | #define HAVE_NS_INITPARSE 1
    | #define HAVE_NS_NAME_UNCOMPRESS 1
    | #define HAVE_DN_SKIPNAME 1
    | #define HAVE_RES_SEARCH 1
    | #define DELAY_INITIALIZER 1
    | #define CONSTRUCTOR_ATTR_WORKS 1
    | #define DESTRUCTOR_ATTR_WORKS 1
    | #define USE_LINKER_FINI_OPTION 1
    | #define ENABLE_THREADS 1
    | /* end confdefs.h.  */
    | #include <pthread.h>
    | int
    | main ()
    | {
    | pthread_t th; pthread_join(th, 0);
    |                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    |                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
    |   ;
    |   return 0;
    | }
    configure:5202: result: no
    configure:5083: checking whether pthreads work with -mthreads
    configure:5169: gcc -o conftest -g -O2 -Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow -pedantic -mthreads   conftest.c   >&5
    cc1: error: unrecognized command line option "-mthreads"
    configure:5175: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | 
    | #define PACKAGE_NAME "Kerberos 5"
    | #define PACKAGE_TARNAME "krb5"
    | #define PACKAGE_VERSION "1.6.3"
    | #define PACKAGE_STRING "Kerberos 5 1.6.3"
    | #define PACKAGE_BUGREPORT "krb5-bugs at mit.edu"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define KRB5_KRB4_COMPAT 1
    | #define HAVE_BT_RSEQ 1
    | #define KRB5_DNS_LOOKUP_KDC 1
    | #define KRB5_DNS_LOOKUP 1
    | #define HAVE_RES_NINIT 1
    | #define HAVE_RES_NCLOSE 1
    | #define HAVE_RES_NSEARCH 1
    | #define HAVE_NS_INITPARSE 1
    | #define HAVE_NS_NAME_UNCOMPRESS 1
    | #define HAVE_DN_SKIPNAME 1
    | #define HAVE_RES_SEARCH 1
    | #define DELAY_INITIALIZER 1
    | #define CONSTRUCTOR_ATTR_WORKS 1
    | #define DESTRUCTOR_ATTR_WORKS 1
    | #define USE_LINKER_FINI_OPTION 1
    | #define ENABLE_THREADS 1
    | /* end confdefs.h.  */
    | #include <pthread.h>
    | int
    | main ()
    | {
    | pthread_t th; pthread_join(th, 0);
    |                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    |                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
    |   ;
    |   return 0;
    | }
    configure:5202: result: no
    configure:5131: checking for the pthreads library -lpthread
    configure:5169: gcc -o conftest -g -O2 -Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow -pedantic    conftest.c -lpthread  >&5
    In file included from /usr/include/sys/cred.h:49,
                     from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/secattr.h:49: error: expected specifier-qualifier-list before 'rid_t'
    /usr/include/sys/secattr.h:65: error: expected specifier-qualifier-list before 'authnum_t'
    In file included from /usr/include/sys/thread.h:43,
                     from /usr/include/sys/ptrace.h:28,
                     from /usr/include/sys/proc.h:48,
                     from /usr/include/sys/pri.h:43,
                     from /usr/include/sys/sched.h:38,
                     from /usr/include/sched.h:51,
                     from /usr/include/pthread.h:64,
                     from conftest.c:34:
    /usr/include/sys/cred.h:331: error: expected specifier-qualifier-list before 'rid_t'
    In file included from /usr/include/pthread.h:66,
                     from conftest.c:34:
    /usr/include/unistd.h:923: error: expected ')' before '[' token
    /usr/include/unistd.h:924: error: expected declaration specifiers or '...' before 'rid_t'
    configure:5175: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | 
    | #define PACKAGE_NAME "Kerberos 5"
    | #define PACKAGE_TARNAME "krb5"
    | #define PACKAGE_VERSION "1.6.3"
    | #define PACKAGE_STRING "Kerberos 5 1.6.3"
    | #define PACKAGE_BUGREPORT "krb5-bugs at mit.edu"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define KRB5_KRB4_COMPAT 1
    | #define HAVE_BT_RSEQ 1
    | #define KRB5_DNS_LOOKUP_KDC 1
    | #define KRB5_DNS_LOOKUP 1
    | #define HAVE_RES_NINIT 1
    | #define HAVE_RES_NCLOSE 1
    | #define HAVE_RES_NSEARCH 1
    | #define HAVE_NS_INITPARSE 1
    | #define HAVE_NS_NAME_UNCOMPRESS 1
    | #define HAVE_DN_SKIPNAME 1
    | #define HAVE_RES_SEARCH 1
    | #define DELAY_INITIALIZER 1
    | #define CONSTRUCTOR_ATTR_WORKS 1
    | #define DESTRUCTOR_ATTR_WORKS 1
    | #define USE_LINKER_FINI_OPTION 1
    | #define ENABLE_THREADS 1
    | /* end confdefs.h.  */
    | #include <pthread.h>
    | int
    | main ()
    | {
    | pthread_t th; pthread_join(th, 0);
    |                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    |                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
    |   ;
    |   return 0;
    | }
    configure:5202: result: no
    configure:5083: checking whether pthreads work with --thread-safe
    configure:5169: gcc -o conftest -g -O2 -Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow -pedantic --thread-safe   conftest.c   >&5
    cc1: error: unrecognized command line option "-fthread-safe"
    configure:5175: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | 
    | #define PACKAGE_NAME "Kerberos 5"
    | #define PACKAGE_TARNAME "krb5"
    | #define PACKAGE_VERSION "1.6.3"
    | #define PACKAGE_STRING "Kerberos 5 1.6.3"
    | #define PACKAGE_BUGREPORT "krb5-bugs at mit.edu"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define KRB5_KRB4_COMPAT 1
    | #define HAVE_BT_RSEQ 1
    | #define KRB5_DNS_LOOKUP_KDC 1
    | #define KRB5_DNS_LOOKUP 1
    | #define HAVE_RES_NINIT 1
    | #define HAVE_RES_NCLOSE 1
    | #define HAVE_RES_NSEARCH 1
    | #define HAVE_NS_INITPARSE 1
    | #define HAVE_NS_NAME_UNCOMPRESS 1
    | #define HAVE_DN_SKIPNAME 1
    | #define HAVE_RES_SEARCH 1
    | #define DELAY_INITIALIZER 1
    | #define CONSTRUCTOR_ATTR_WORKS 1
    | #define DESTRUCTOR_ATTR_WORKS 1
    | #define USE_LINKER_FINI_OPTION 1
    | #define ENABLE_THREADS 1
    | /* end confdefs.h.  */
    | #include <pthread.h>
    | int
    | main ()
    | {
    | pthread_t th; pthread_join(th, 0);
    |                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    |                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
    |   ;
    |   return 0;
    | }
    configure:5202: result: no
    configure:5083: checking whether pthreads work with -mt
    configure:5169: gcc -o conftest -g -O2 -Wall -Wmissing-prototypes -Wcast-qual  -Wcast-align -Wconversion -Wshadow -pedantic -mt   conftest.c   >&5
    cc1: error: unrecognized command line option "-mt"
    configure:5175: $? = 1
    configure: failed program was:
    | /* confdefs.h.  */
    | 
    | #define PACKAGE_NAME "Kerberos 5"
    | #define PACKAGE_TARNAME "krb5"
    | #define PACKAGE_VERSION "1.6.3"
    | #define PACKAGE_STRING "Kerberos 5 1.6.3"
    | #define PACKAGE_BUGREPORT "krb5-bugs at mit.edu"
    | #define STDC_HEADERS 1
    | #define HAVE_SYS_TYPES_H 1
    | #define HAVE_SYS_STAT_H 1
    | #define HAVE_STDLIB_H 1
    | #define HAVE_STRING_H 1
    | #define HAVE_MEMORY_H 1
    | #define HAVE_STRINGS_H 1
    | #define HAVE_INTTYPES_H 1
    | #define HAVE_STDINT_H 1
    | #define KRB5_KRB4_COMPAT 1
    | #define HAVE_BT_RSEQ 1
    | #define KRB5_DNS_LOOKUP_KDC 1
    | #define KRB5_DNS_LOOKUP 1
    | #define HAVE_RES_NINIT 1
    | #define HAVE_RES_NCLOSE 1
    | #define HAVE_RES_NSEARCH 1
    | #define HAVE_NS_INITPARSE 1
    | #define HAVE_NS_NAME_UNCOMPRESS 1
    | #define HAVE_DN_SKIPNAME 1
    | #define HAVE_RES_SEARCH 1
    | #define DELAY_INITIALIZER 1
    | #define CONSTRUCTOR_ATTR_WORKS 1
    | #define DESTRUCTOR_ATTR_WORKS 1
    | #define USE_LINKER_FINI_OPTION 1
    | #define ENABLE_THREADS 1
    | /* end confdefs.h.  */
    | #include <pthread.h>
    | int
    | main ()
    | {
    | pthread_t th; pthread_join(th, 0);
    |                      pthread_attr_init(0); pthread_cleanup_push(0, 0);
    |                      pthread_create(0,0,0,0); pthread_cleanup_pop(0);
    |   ;
    |   return 0;
    | }
    configure:5202: result: no
    configure:5091: checking for pthread-config
    configure:5118: result: no
    configure:5403: error: cannot determine options for enabling thread support; try --disable-thread-support

      


Any thoughts?

Thanks,
-Luke

miguel.sanders at arcelormittal.com wrote:
> Well, I thought it wasn't really necesarry to compile pthreads support since I was, just like you, only interested in the client libraries.
> Could you just send the config.log part where is does the test for:
> "checking for the pthreads library -lpthreads... No"
>
>
> Met vriendelijke groet
> Best regards
> Bien à vous
>
> Miguel SANDERS
> ArcelorMittal Gent
>
> UNIX Systems & Storage
> IT Supply Western Europe | John Kennedylaan 51
> B-9042 Gent
>
> T +32 9 347 3538 | F +32 9 347 4901 | M +32478 805 023
> E miguel.sanders at arcelormittal.com
> www.arcelormittal.com/gent
>
> -----Oorspronkelijk bericht-----
> Van: Luke Scharf [mailto:luke.scharf at clusterbee.net] 
> Verzonden: woensdag 13 mei 2009 20:23
> Aan: SANDERS Miguel; kerberos at mit.edu
> Onderwerp: Re: pthreads/dlopen issue when building krb-1.6.3 on AIX 6.1?
>
> I'm using the same build-environment as before.  The pthreads error may be similar, but I haven't been able to figure out where to look to see how pthreads is detected.
>
> Output:
>
>     checking for constructor/destructor attribute support... (cached) yes,yes
>     configure: enabling thread support
>     checking for the pthreads library -lpthreads... no
>     checking whether pthreads work without any flags... no
>     checking whether pthreads work with -Kthread... no
>     checking whether pthreads work with -kthread... no
>     checking for the pthreads library -llthread... no
>     checking whether pthreads work with -pthread... no
>     checking whether pthreads work with -pthreads... no
>     checking whether pthreads work with -mthreads... no
>     checking for the pthreads library -lpthread... no
>     checking whether pthreads work with --thread-safe... no
>     checking whether pthreads work with -mt... no
>     checking for pthread-config... no
>     configure: error: cannot determine options for enabling thread support; try --disable-thread-support
>     configure: error: /bin/sh './configure' failed for plugins/preauth/pkinit
>
>       
>
>
> Does this ring any bells?
>
> Also, is there any big disadvantage to building the client-side libraries and utilities with --disable-thread-support?
>
> Thanks again,
> -Luke
>
>
>
> miguel.sanders at arcelormittal.com wrote:
>   
>> I'll open a bug report for it.
>> If you have further questions on how to get this going on AIX, you can always send me a mail.
>>
>> Good luck! 
>>
>>
>> Met vriendelijke groet
>> Best regards
>> Bien à vous
>>
>> Miguel SANDERS
>> ArcelorMittal Gent
>>
>> UNIX Systems & Storage
>> IT Supply Western Europe | John Kennedylaan 51
>> B-9042 Gent
>>
>> T +32 9 347 3538 | F +32 9 347 4901 | M +32478 805 023 E 
>> miguel.sanders at arcelormittal.com www.arcelormittal.com/gent
>>
>> -----Oorspronkelijk bericht-----
>> Van: Luke Scharf [mailto:luke.scharf at clusterbee.net]
>> Verzonden: woensdag 13 mei 2009 18:17
>> Aan: SANDERS Miguel
>> CC: kerberos at mit.edu
>> Onderwerp: Re: pthreads/dlopen issue when building krb-1.6.3 on AIX 6.1?
>>
>> Awesome!  Editing shlib.conf did the trick, and I'm unstuck!
>>
>> I do consider this a bug.  If you feel like submitting the report, that would save me the trouble of figuring out and signing up for an account on the bug tracking system.  If not, I'll be happy to be a good open-source citizen and submit it.
>>
>> Thanks again!
>> -Luke
>>
>> I'm still mucking with getting pthreads enabled properly, but I have a little bit more Googling to do before I can ask a proper question about that.
>>
>>
>> miguel.sanders at arcelormittal.com wrote:
>>   
>>     
>>> Luke
>>>
>>> You should take a look at the config/shlib.conf Apparently krb5-1.6.3 
>>> is not yet AIX6.1 aware.
>>> Just alter the *-*-aix5*) on line 410 to f.e. *-*-aix*)
>>>
>>> Should I file a bug report for this?
>>>
>>>
>>> Met vriendelijke groet
>>> Best regards
>>> Bien à vous
>>>
>>> Miguel SANDERS
>>> ArcelorMittal Gent
>>>
>>> UNIX Systems & Storage
>>> IT Supply Western Europe | John Kennedylaan 51
>>> B-9042 Gent
>>>
>>> T +32 9 347 3538 | F +32 9 347 4901 | M +32478 805 023 E 
>>> miguel.sanders at arcelormittal.com www.arcelormittal.com/gent
>>>
>>> -----Oorspronkelijk bericht-----
>>> Van: kerberos-bounces at mit.edu [mailto:kerberos-bounces at mit.edu] 
>>> Namens Luke Scharf
>>> Verzonden: woensdag 13 mei 2009 17:17
>>> Aan: kerberos at mit.edu
>>> Onderwerp: pthreads/dlopen issue when building krb-1.6.3 on AIX 6.1?
>>>
>>> I'm attempting to build MIT Kerberos version 1.6.1 on AIX 6.1.  I'm mostly in need of the client libraries and utilities.
>>>
>>> I'm using the following special additions to the build environment:
>>>
>>>     $ export PTHREAD_LIBS="-lpthread"
>>>     $ export RPATH_FLAG="-Wl,-brtl,-blibpath:"
>>>
>>>
>>> I'm using the following ./configure command:
>>>
>>>     $ ./configure --prefix=/usr/local/krb5-1.6.3
>>>     --enable-log-preauth-logins --enable-login-print-issue
>>>     --with-multihomed-fixes --enable-app-proxy --with-passive-mode-off
>>>     --without-anonymous-ftp
>>>
>>>
>>> And I get the following results when I run it:
>>>
>>>     [snip]
>>>     configure: enabling thread support
>>>     checking for pthread_join in LIBS=-lpthread with CFLAGS=... yes
>>>     checking for joinable pthread attribute... unknown
>>>     configure: WARNING: we do not know how to create joinable pthreads
>>>     checking if more special flags are required for pthreads... -D_THREAD_SAFE
>>>     checking for cc_r... cc_r
>>>     configure: PTHREAD_CC = cc_r
>>>     configure: PTHREAD_CFLAGS = -D_THREAD_SAFE 
>>>     configure: PTHREAD_LIBS = -lpthread
>>>     checking for pthread_once... yes
>>>     checking for pthread_rwlock_init... yes
>>>     configure: rechecking with PTHREAD_... options
>>>     checking for pthread_rwlock_init in -lc... yes
>>>     checking for library containing dlopen... none required
>>>     checking keyutils.h usability... no
>>>     checking keyutils.h presence... no
>>>     checking for keyutils.h... no
>>>     configure: disabling static libraries
>>>     configure: WARNING: shared libraries not supported on this architecture
>>>     configure: error: must enable one of shared or static libraries
>>>     $
>>>
>>>
>>> Does anyone have any suggestions?
>>>
>>> Many thanks,
>>> -Luke
>>>
>>>
>>>
>>> ________________________________________________
>>> Kerberos mailing list           Kerberos at mit.edu
>>> https://mailman.mit.edu/mailman/listinfo/kerberos
>>>
>>> ****
>>> This message and any attachment are confidential, intended solely for the use of the individual or entity to whom it is addressed and may be protected by professional secrecy or intellectual property rights. 
>>> If you have received it by mistake, or are not the named recipient(s), please immediately notify the sender and delete the message. You are hereby notified that any unauthorized use, copying or dissemination of any or all information contained in this message is prohibited. 
>>> Arcelormittal shall not be liable for the message if altered, falsified, or in case of error in the recipient. 
>>> This message does not constitute any right or commitment for ArcelorMittal except when expressly agreed otherwise in writing in a separate agreement.  
>>> ****
>>>   
>>>     
>>>       
>> ****
>> This message and any attachment are confidential, intended solely for the use of the individual or entity to whom it is addressed and may be protected by professional secrecy or intellectual property rights. 
>> If you have received it by mistake, or are not the named recipient(s), please immediately notify the sender and delete the message. You are hereby notified that any unauthorized use, copying or dissemination of any or all information contained in this message is prohibited. 
>> Arcelormittal shall not be liable for the message if altered, falsified, or in case of error in the recipient. 
>> This message does not constitute any right or commitment for ArcelorMittal except when expressly agreed otherwise in writing in a separate agreement.  
>> ****
>>   
>>     
>
>
> **** 
> This message and any attachment are confidential, intended solely for the use of the individual or entity to whom it is addressed and may be protected by professional secrecy or intellectual property rights. 
> If you have received it by mistake, or are not the named recipient(s), please immediately notify the sender and delete the message. You are hereby notified that any unauthorized use, copying or dissemination of any or all information contained in this message is prohibited. 
> Arcelormittal shall not be liable for the message if altered, falsified, or in case of error in the recipient. 
> This message does not constitute any right or commitment for ArcelorMittal except when expressly agreed otherwise in writing in a separate agreement.  
> ****  
>   




More information about the Kerberos mailing list