|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2003-04-22 15:03 UTC] pavel dot may at csun dot edu
Environment first:
OS - HP-UX 11.11 (11i)
C compiler: HP-UX ANSI C v B.11.11.06 with PHSS_28706 patch
PHP: 4.3.1
./configure arguments: --prefix=/opt/php-4.3.1 --enable-sigchild --with-openssl=/opt/openssl-0.9.7b --with-zlib --with-flatfile --with-mysql=/usr/MySQL-3.23.55 --disable-cgi
CFLAGS: +DD64 +z -I/usr/local/include -I/usr/include -I/usr/ccs/include -I/opt/include -g
LDFLAGS: +s +z +DD64 -L/lib/pa20_64 -L/opt/lib/pa20_64 -L/usr/local/lib -L/usr/ccs/lib -L/usr/lib
ZLib version: 1.1.4
OpenSSL version: 0.9.7b
MySQL version: 3.23.55 (binary install)
GDB backtrace:
[149]$ /opt/langtools/bin/gdb php core
Detected 64-bit executable.
Invoking /opt/langtools/bin/gdb64.
HP gdb 3.1 for PA-RISC 2.0 (wide), HP-UX 11.00.
Copyright 1986 - 2001 Free Software Foundation, Inc.
Hewlett-Packard Wildebeest 3.1 (based on GDB) is covered by the
GNU General Public License. Type "show copying" to see the conditions to
change it and/or distribute copies. Type "show warranty" for warranty/support.
..
Core was generated by `php'.
Program terminated with signal 10, Bus error.
warning: The shared libraries were not privately mapped; setting a
breakpoint in a shared library will not work until you rerun the program.
#0 0x400000000027b138 in OnUpdateInt (entry=0x80000001000d81c8, new_value=0x8000000100000478 "-1", new_value_length=2,
mh_arg1=0x8c <Address 0x8c out of bounds>, mh_arg2=0x8000000100060580 "", mh_arg3=0x0, stage=1)
at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/Zend/zend_ini.c:444
444 *p = zend_atoi(new_value, new_value_length);
(gdb) bt
#0 0x400000000027b138 in OnUpdateInt (entry=0x80000001000d81c8, new_value=0x8000000100000478 "-1", new_value_length=2,
mh_arg1=0x8c <Address 0x8c out of bounds>, mh_arg2=0x8000000100060580 "", mh_arg3=0x0, stage=1)
at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/Zend/zend_ini.c:444
#1 0x40000000000c9d90 in OnUpdate_zlib_output_compression_level (entry=0x80000001000d81c8, new_value=0x8000000100000478 "-1",
new_value_length=2, mh_arg1=0x8c <Address 0x8c out of bounds>, mh_arg2=0x8000000100060580 "", mh_arg3=0x0, stage=1)
at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/ext/zlib/zlib.c:170
#2 0x400000000027a290 in zend_register_ini_entries (ini_entry=0x8000000100000698, module_number=12)
at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/Zend/zend_ini.c:157
#3 0x40000000000c9f68 in zm_startup_zlib (type=1, module_number=12)
at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/ext/zlib/zlib.c:218
#4 0x400000000026a4e4 in zend_startup_module (module=0x8000000100000298)
at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/Zend/zend_API.c:1008
#5 0x4000000000206ba4 in php_startup_extensions (ptr=0x800000010001dfa8, count=12)
at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/main/main.c:986
#6 0x400000000028c354 in php_startup_internal_extensions () at main/internal_functions_cli.c:73
#7 0x40000000002073b4 in php_module_startup (sf=0x800000010001de88, additional_modules=0x0, num_additional_modules=0)
at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/main/main.c:1151
#8 0x4000000000289b7c in main (argc=1, argv=0x800003ffff7f0ac8)
at /home/users0/ccs/ulairi/sources/PHP/php-4.3.1/sapi/cli/php_cli.c:481
(gdb) quit
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 07 08:00:02 2026 UTC |
Re: GetTimeOfDay and UniqID: From the 4.3.2-RC config.log: configure:20209: checking for gettimeofday configure:20259: cc -o conftest +DD64 +z -I/usr/local/include -I/usr/include -I/usr/ccs/include -I/opt/include +DD64 +z -I/usr/local/include -I/usr/include -I/usr/ccs/include -I/opt/include +s +z +DD64 -L/lib/pa20_64 -L/opt/lib/pa20_64 -L/usr/local/lib -L/usr/ccs/lib -L/usr/lib -L/opt/local/appdev/software/oracle/product/8.1.7/lib64 -L/opt/local/appdev/software/oracle/product/8.1.7/lib conftes t.c -lm -lpthread -lcl -lnsl -lnm -ldld -lm -lc -lsec >&5 cc: warning 422: Unknown option "s" ignored. cc: "configure", line 20317: warning 573: Parameter list is inconsistent for "gettimeofday". cc: "configure", line 20317: error 1584: Inconsistent type declaration: "gettimeofday". cc: "configure", line 20324: warning 604: Pointers are not assignment-compatible. cc: "configure", line 20333: warning 605: Illegal pointer combination for !=. configure:20262: $? = 1 configure: failed program was: | #line 20214 "configure" | /* confdefs.h. */ | | #define PACKAGE_NAME "" | #define PACKAGE_TARNAME "" | #define PACKAGE_VERSION "" | #define PACKAGE_STRING "" | #define PACKAGE_BUGREPORT "" | #define YYTEXT_POINTER 1 | #define PHP_APACHE_HAVE_CLIENT_FD 1 | #define MISSING_LOCALTIME_R_DECL 1 | #define MISSING_GMTIME_R_DECL 1 | #define MISSING_ASCTIME_R_DECL 1 | #define MISSING_CTIME_R_DECL 1 | #define MISSING_STRTOK_R_DECL 1 | #define HAVE_SENDMAIL 1 | #define HAVE_SOCKET 1 | #define HAVE_GETHOSTNAME 1 | #define HAVE_GETHOSTBYADDR 1 | #define HAVE_YP_GET_DEFAULT_DOMAIN 1 | #define HAVE_DLOPEN 1 | #define HAVE_LIBDL 1 | #define HAVE_LIBM 1 | #define HAVE_RES_SEARCH 1 | #define HAVE_INET_ATON 1 | #define HAVE_DN_SKIPNAME 1 | #define STDC_HEADERS 1 | #define HAVE_DIRENT_H 1 | #define MISSING_FCLOSE_DECL 0 | #define HAVE_SYS_TYPES_H 1 | #define HAVE_SYS_TIME_H 1 | #define HAVE_NETINET_IN_H 1 | #define HAVE_ALLOCA_H 1 | #define HAVE_ARPA_INET_H 1 | #define HAVE_ARPA_NAMESER_H 1 | #define HAVE_ASSERT_H 1 | #define HAVE_CRYPT_H 1 | #define HAVE_FCNTL_H 1 | #define HAVE_GRP_H 1 | #define HAVE_LANGINFO_H 1 | #define HAVE_LIMITS_H 1 | #define HAVE_LOCALE_H 1 | #define HAVE_MONETARY_H 1 | #define HAVE_NETDB_H 1 | #define HAVE_PWD_H 1 | #define HAVE_RESOLV_H 1 | #define HAVE_SIGNAL_H 1 | #define HAVE_STDARG_H 1 | #define HAVE_STDLIB_H 1 | #define HAVE_STRING_H 1 | #define HAVE_SYSLOG_H 1 | #define HAVE_SYSEXITS_H 1 | #define HAVE_SYS_FILE_H 1 | #define HAVE_SYS_MMAN_H 1 | #define HAVE_SYS_MOUNT_H 1 | #define HAVE_SYS_POLL_H 1 | #define HAVE_SYS_RESOURCE_H 1 | #define HAVE_SYS_SOCKET_H 1 | #define HAVE_SYS_STATVFS_H 1 | #define HAVE_SYS_VFS_H 1 | #define HAVE_SYS_WAIT_H 1 | #define HAVE_UNISTD_H 1 | #define HAVE_UTIME_H 1 | #define HAVE_SYS_UTSNAME_H 1 | #define HAVE_SYS_IPC_H 1 | #define HAVE_BROKEN_GLIBC_FOPEN_APPEND 1 | #define HAVE_TZNAME 1 | #define HAVE_STRUCT_FLOCK 1 | #define HAVE_SOCKLEN_T 1 | #define SIZEOF_LONG 8 | #define SIZEOF_INT 4 | #define HAVE_VPRINTF 1 | #define HAVE_DOPRNT 1 | #define HAVE_ALPHASORT 1 | #define HAVE_ASCTIME_R 1 | #define HAVE_CHROOT 1 | #define HAVE_CTIME_R 1 | #define HAVE_CUSERID 1 | #define HAVE_CRYPT 1 | #define HAVE_FTOK 1 | #define HAVE_GCVT 1 | #define HAVE_GETLOGIN 1 | #define HAVE_GETPROTOBYNAME 1 | #define HAVE_GETPROTOBYNUMBER 1 | #define HAVE_GETSERVBYNAME 1 | #define HAVE_GETSERVBYPORT 1 | #define HAVE_GETRUSAGE 1 | /* end confdefs.h. */ | /* System header to define __stub macros and hopefully few prototypes, | which can conflict with char gettimeofday (); 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 | /* Override any gcc2 internal prototype to avoid an error. */ | #ifdef __cplusplus | extern "C" | { | #endif | /* We use char because int might match the return type of a gcc2 | builtin and then its argument prototype would still apply. */ | char gettimeofday (); | /* 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_gettimeofday) || defined (__stub___gettimeofday) | choke me | #else | char (*f) () = gettimeofday; | #endif | #ifdef __cplusplus | } | #endif | | int | main () | { | return f != gettimeofday; | ; | return 0; | } configure:20279: result: no Oddly enough, in 4.3.1 under 'you will compile HPPA 1.1/32bit targets' regime, config.log has: configure:13876: checking for gettimeofday configure:13904: cc -o conftest +DA1.1 +z -I/usr/local/include -I/usr/include -I/usr/ccs/include +DA1.1 +z -I/usr/local/include -I/usr/include -I/usr/ccs/include +s -L/usr/local/lib -L/usr/ccs/lib -L/usr/lib -L/opt/local/appdev/software/oracle/product/8.1.7/lib64 -L/opt/local/appdev/software/oracle/product/8.1.7/lib conftest.c -lm -lcl -lpthread -lnsl -lnm -ldld -lm -lc -lcrypt -lsec 1>&5 cc: warning 422: Unknown option "s" ignored.