On Wed, Nov 3, 2010 at 4:28 AM, Quanah Gibson-Mount <quanah@zimbra.com> wrote:
Examine config.log to see why it failed.

As per what I  get in the config.log

configure:8474: checking if cc_r -qlanglvl=extc89 static flag  works
configure:8502: result: yes
configure:8570: checking for cc_r -qlanglvl=extc89 option to produce PIC
configure:8774: result:
configure:8841: checking if cc_r -qlanglvl=extc89 supports -c -o file.o
configure:8862: cc_r -qlanglvl=extc89 -c -I/opt/openldap/include -I/opt/openldap/include -o out/conftest2.o conftest.c >&5
configure:8866: $? = 0
configure:8888: result: yes
configure:8914: checking whether the cc_r -qlanglvl=extc89 linker (/usr/ccs/bin/ld) supports shared libraries
configure:9790: result: no

--- Any way to get a more verbose output from what it's trying to do??

configure:9861: checking dynamic linker characteristics
configure:10415: result: no
configure:10419: checking how to hardcode library paths into programs
configure:10444: result: unsupported
configure:10458: checking whether stripping libraries is possible
configure:10479: result: no
configure:10586: checking for shl_load
configure:10642: cc_r -qlanglvl=extc89 -o conftest -I/opt/openldap/include -I/opt/openldap/include -L/opt/openldap/lib conftest.c  >&5
ld: 0711-317 ERROR: Undefined symbol: .shl_load

-- I think this is the prolbem, shl_load, looks like I may need another include or figure out why it's complaining.

ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more information.
configure:10648: $? = 8
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define OPENLDAP_PACKAGE "OpenLDAP"
| #define OPENLDAP_VERSION "2.4.23"
| #define LDAP_VENDOR_VERSION 20423
| #define LDAP_VENDOR_VERSION_MAJOR 2
| #define LDAP_VENDOR_VERSION_MINOR 4
| #define LDAP_VENDOR_VERSION_PATCH 23
| #define HAVE_MKVERSION 1
| #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 HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
| /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
|    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
| #define shl_load innocuous_shl_load
|
| /* System header to define __stub macros and hopefully few prototypes,
|     which can conflict with char shl_load (); below.
|     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
|     <limits.h> exists even on freestanding compilers.  */
|
| #ifdef __STDC__
| # include <limits.h>
| #else
| # include <assert.h>
| #endif
|
| #undef shl_load
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char shl_load ();
| /* The GNU C library defines this for functions which it implements
|     to always fail with ENOSYS.  Some functions are actually named
|     something starting with __ and the normal name is an alias.  */
| #if defined __stub_shl_load || defined __stub___shl_load
| choke me
| #endif
|
| int
| main ()
| {
| return shl_load ();
|   ;
|   return 0;
| }
configure:10665: result: no
configure:10670: checking for shl_load in -ldld
configure:10705: cc_r -qlanglvl=extc89 -o conftest -I/opt/openldap/include -I/opt/openldap/include -L/opt/openldap/lib conftest.c -ldld   >&5
ld: 0706-006 Cannot find or open library file: -l dld
    ld:open(): No such file or directory
configure:10711: $? = 255
configure: failed program was:
| /* confdefs.h.  */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define OPENLDAP_PACKAGE "OpenLDAP"
| #define OPENLDAP_VERSION "2.4.23"
| #define LDAP_VENDOR_VERSION 20423
| #define LDAP_VENDOR_VERSION_MAJOR 2
| #define LDAP_VENDOR_VERSION_MINOR 4
| #define LDAP_VENDOR_VERSION_PATCH 23
| #define HAVE_MKVERSION 1
| #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 HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| /* end confdefs.h.  */
|
| /* Override any GCC internal prototype to avoid an error.
|    Use char because int might match the return type of a GCC
|    builtin and then its argument prototype would still apply.  */
| #ifdef __cplusplus
| extern "C"
| #endif
| char shl_load ();
| int
| main ()
| {
| return shl_load ();
|   ;
|   return 0;
| }
configure:10729: result: no
configure:10734: checking for dlopen
configure:10790: cc_r -qlanglvl=extc89 -o conftest -I/opt/openldap/include -I/opt/openldap/include -L/opt/openldap/lib conftest.c  >&5
configure:10796: $? = 0
configure:10813: result: yes
configure:11046: checking whether a program can dlopen itself
configure:11118: cc_r -qlanglvl=extc89 -o conftest -I/opt/openldap/include -I/opt/openldap/include -DHAVE_DLFCN_H -L/opt/openldap/lib  conftest.c   >&5
configure:11121: $? = 0
configure:11139: result: no
configure:11260: checking if libtool supports shared libraries
configure:11262: result: no
configure:11265: checking whether to build shared libraries
configure:11286: result: no
configure:11289: checking whether to build static libraries
configure:11293: result: yes




Also found something similar for Samba: http://samba.2283325.n4.nabble.com/Failing-to-make-Samba-3-5-4-on-AIX-5-3-td2531147.html

So going to do more digging, or suggestions are welcome ;)