cURL / Mailing Lists / curl-users / Single Mail

curl-users

Re: setup_once.h conflict on AIX5.2

From: <curl.bullrunner_at_spamgourmet.com>
Date: Mon, 16 Apr 2012 09:49:18 +0200

On Fri, Apr 13, 2012 at 8:13 PM, Yang Tse -
yangsita_at_gmail.com<+curl+bullrunner+630270026d.yangsita#
gmail.com_at_spamgourmet.com> wrote:
> Please provide more context from config.log where the bool check
> fails. Provide from the point where the bool checking program is
> listed and up to the end of the bool test, both points included.

configure:24891: checking for bool
configure:24891: cc -qlanglvl=ansi -c -qthreaded -qnoansialias -qhalt=e
-O2 -I/usr/local/ssl/include -I/usr/local/ssl/include/openssl
-I/usr/local/include conftest.c >&5
"conftest.c", line 155.12: 1506-045 (S) Undeclared identifier _Bool.
configure:24891: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "curl"
| #define PACKAGE_TARNAME "curl"
| #define PACKAGE_VERSION "-"
| #define PACKAGE_STRING "curl -"
| #define PACKAGE_BUGREPORT "a suitable curl mailing list:
http://curl.haxx.se/mail/"
| #define PACKAGE_URL ""
| #define PACKAGE "curl"
| #define VERSION "-"
| #define OS "powerpc-ibm-aix5.2.0.0"
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_INTTYPES_H 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 SIZEOF_LONG 4
| #define SIZEOF_VOIDP 4
| #define CURL_PULL_SYS_TYPES_H 1
| #define CURL_PULL_STDINT_H 1
| #define CURL_PULL_INTTYPES_H 1
| #define CURL_TYPEOF_CURL_OFF_T int64_t
| #define CURL_FORMAT_CURL_OFF_T "lld"
| #define CURL_FORMAT_CURL_OFF_TU "llu"
| #define CURL_FORMAT_OFF_T "%lld"
| #define CURL_SIZEOF_CURL_OFF_T 8
| #define CURL_SUFFIX_CURL_OFF_T LL
| #define CURL_SUFFIX_CURL_OFF_TU ULL
| #define _ALL_SOURCE 1
| #define NEED_THREAD_SAFE 1
| #ifndef _THREAD_SAFE
| # define _THREAD_SAFE
| #endif
| #define _LARGE_FILES 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #ifndef __cplusplus
| #define inline __inline
| #endif
| #define HAVE_LDAP_SSL 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TIME_H 1
| #define HAVE_CLOCK_GETTIME_MONOTONIC 1
| #define CURL_DISABLE_LDAP 1
| #define CURL_DISABLE_LDAPS 1
| #define HAVE_SOCKADDR_IN6_SIN6_SCOPE_ID 1
| #define HAVE_WRITABLE_ARGV 1
| #define HAVE_LIBSSL 1
| #define HAVE_OPENSSL_X509_H 1
| #define USE_OPENSSL 1
| #define HAVE_OPENSSL_RSA_H 1
| #define USE_OPENSSL 1
| #define HAVE_OPENSSL_CRYPTO_H 1
| #define USE_OPENSSL 1
| #define HAVE_OPENSSL_PEM_H 1
| #define USE_OPENSSL 1
| #define HAVE_OPENSSL_SSL_H 1
| #define USE_OPENSSL 1
| #define HAVE_OPENSSL_ERR_H 1
| #define USE_OPENSSL 1
| #define USE_SSLEAY 1
| #define HAVE_OPENSSL_PKCS12_H 1
| #define HAVE_OPENSSL_ENGINE_H 1
| #define HAVE_ENGINE_LOAD_BUILTIN_ENGINES 1
| #define HAVE_RAND_STATUS 1
| #define HAVE_RAND_EGD 1
| #define HAVE_ENGINE_CLEANUP 1
| #define HAVE_CRYPTO_CLEANUP_ALL_EX_DATA 1
| #define HAVE_SSL_GET_SHUTDOWN 1
| #define HAVE_SSLV2_CLIENT_METHOD 1
| #define RANDOM_FILE "/dev/urandom"
| #define CURL_CA_BUNDLE "/usr/local/share/curl/curl-ca-bundle.crt"
| #define HAVE_LIBSSH2 1
| #define HAVE_LIBSSH2_H 1
| #define USE_LIBSSH2 1
| #define HAVE_LIBSSH2_VERSION 1
| #define HAVE_LIBSSH2_INIT 1
| #define HAVE_LIBSSH2_EXIT 1
| #define HAVE_LIBSSH2_SCP_SEND64 1
| #define HAVE_LIBSSH2_SESSION_HANDSHAKE 1
| #define STDC_HEADERS 1
| #define HAVE_MEMORY_H 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_SYS_SELECT_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_SYS_IOCTL_H 1
| #define HAVE_SYS_UIO_H 1
| #define HAVE_ASSERT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_LIMITS_H 1
| #define HAVE_ARPA_INET_H 1
| #define HAVE_NET_IF_H 1
| #define HAVE_NETINET_IN_H 1
| #define HAVE_SYS_UN_H 1
| #define HAVE_NETINET_TCP_H 1
| #define HAVE_NETDB_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_SYS_PARAM_H 1
| #define HAVE_TERMIOS_H 1
| #define HAVE_TERMIO_H 1
| #define HAVE_SGTTY_H 1
| #define HAVE_FCNTL_H 1
| #define HAVE_ALLOCA_H 1
| #define HAVE_TIME_H 1
| #define HAVE_PWD_H 1
| #define HAVE_UTIME_H 1
| #define HAVE_SYS_POLL_H 1
| #define HAVE_POLL_H 1
| #define HAVE_SYS_RESOURCE_H 1
| #define HAVE_LIBGEN_H 1
| #define HAVE_LOCALE_H 1
| #define HAVE_ERRNO_H 1
| #define HAVE_STDBOOL_H 1
| #define HAVE_ARPA_TFTP_H 1
| #define HAVE_SYS_WAIT_H 1
| #define HAVE_SETJMP_H 1
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_TIME_H 1
| #define HAVE_TIME_H 1
| #define HAVE_SYS_SOCKET_H 1
| #define HAVE_STRUCT_TIMEVAL 1
| #define SIZEOF_SIZE_T 4
| #define SIZEOF_LONG 4
| #define SIZEOF_INT 4
| #define SIZEOF_SHORT 2
| #define CURL_SIZEOF_LONG 4
| #define SIZEOF_TIME_T 4
| #define SIZEOF_OFF_T 8
| #define HAVE_LONGLONG 1
| #define HAVE_LL 1
| /* end confdefs.h. */
|
| #ifdef HAVE_SYS_TYPES_H
| #include <sys/types.h>
| #endif
| #ifdef HAVE_STDBOOL_H
| #include <stdbool.h>
| #endif
|
|
| int main (void)
| {
| if (sizeof (bool))
| return 0;
| ;
| return 0;
| }
configure:24891: result: no

> Additionally, are there any stdbool.h prerequisite headers required or
> preprocessor macros in order to make 'bool' typedef visible from
> stdbool.h on that platform?

I don't know and I wouldn't know where to check.

> Are CPPFLAGS and CFLAGS unset before
> running configure?

I didn't unset any flags and I don't see any CPP or C FLAGS set when I
issue a "set" command

While I was there I checked for differences between the working and
non-working server and found the following.
The non-working server has a non-related LIBPATH set
   LIBPATH='/app1/sag/common/lib '
The non-working server has extra directories in the PATH
   /usr/java131/jre/bin:/usr/java131/bin
and the working server has other extra directories in the PATH
   /usr/bin/scripts:/usr/local/bin

-------------------------------------------------------------------
List admin: http://cool.haxx.se/list/listinfo/curl-users
FAQ: http://curl.haxx.se/docs/faq.html
Etiquette: http://curl.haxx.se/mail/etiquette.html
Received on 2012-04-16