(Answer) (Category) OpenLDAP Faq-O-Matic : (Category) OpenLDAP Software FAQ : (Category) Installation : (Category) Platform Hints : (Category) Sun Microsystems Solaris : (Answer) Why can 'configure' fail to work out sizeof 'short', 'int' and 'long'?
On Sol 7, configure was trying to work out the byte-sizes of the above std. types, but kept failing. On checking the config.log, it was failing because certain settings in configure's 'config.h' (which it uses to #include into it's test-code) were conflicting with settings in <sys/types.h>.
It looked like configure was failing to accurately work out some standard system types from sys/types.h: mode_t off_t pid_t size_t ssize_t caddr_t
Adding the following fixed it:

env ac_cv_type_mode_t=yes \

    ac_cv_type_off_t=yes \
    ac_cv_type_pid_t=yes \
    ac_cv_type_size_t=yes \
    ac_cv_type_ssize_t=yes \
    ac_cv_type_caddr_t=yes \
      ./configure ...

wildjim@pobox.com
[Append to This Answer]
Previous: (Answer) How do you workaround incremental loader assert failures in Solaris 8?
Next: (Answer) Solaris stock ld and elf error: file ../../libraries/libldbm/libldbm.a: elf_getarsym
This document is: http://www.openldap.org/faq/index.cgi?file=674
[Search] [Appearance]
This is a Faq-O-Matic 2.721.test.
© Copyright 1998-2013, OpenLDAP Foundation, info@OpenLDAP.org