Installation environment
HP-UX 125 ritec B .11.31 U IA64 0942432495
GCC (GCC) 4.3.1
Libevent-1.4.14b-stable.tar.gz
Memcached-1.4.13.tar.gz (Installation failed)
Memcached-1.4.5-LINUX.tar.gz (installed successfully)
1,./configure prompts error make failed
Solution: replace memcached-1.4.5-linux.tar.gzwith the original version memcached-1.4.13.tar.gz.
Checking for endianness... little
Checking for htonll... no
Checking for library containing pthread_create... no
Configure: Error: Can't enable threads without the POSIX thread library.
Wapapp:/wapapp/keld/tools/memcache/memcached-1.4.13> make
Make: no arguments or description file. Stop.
Wapapp:/wapapp/keld/tools/memcache/memcached-1.4.13> make
Make: no arguments or description file. Stop.
2. Make returns an error.
Solution: add the environment variable settings before configure execution: ENV cflags =-d_xopen_source_extended
Shell code
- Env cflags =-d_xopen_source_extended./configure -- With-libevent =/wapapp/tools/installed/libevent -- prefix =/wapapp/tools/installed/memcache
Wapapp:/wapapp/keld/tools/memcache/memcached-1.4.5> make
Make all-recursive
Making all in Doc
No Suffix List.
Make all-AM
No Suffix List.
/Bin/sh./config. Status
Config. Status: Creating makefile
Config. Status: Creating DOC/makefile
Config. Status: Creating config. h
Config. Status: config. H is unchanged
Config. Status: executing depfiles commands
Gcc-STD = gnu99-dhave_config_h-I. -dndebug-I/wapapp/tools/installed/libevent/include-g-O2-pthread-wall-werror-pedantic-wmissing-prototypes-wmissing-declarations-wredundant-decls-MT memcached-memcached.o-MD-MP-MF. deps/memcached-memcached.Tpo-c-o memcached-memcached.o 'test-F' memcached. c' | echo '. /''memcached. c
C0: warnings being treated as errors
Memcached. C: In function 'add _ msghdr ':
Memcached. C: 228: Error: assignment from incompatible pointer type
Memcached. C: In function 'try _ read_udp ':
Memcached. C: 3206: Error: Passing argument 6 of 'recvfrom' from incompatible pointer type
Memcached. C: In function 'Drive _ machine ':
Memcached. C: 3432: Error: Passing argument 3 of 'accept' from incompatible pointer type
Memcached. C: In function 'maximize _ sndbu ':
Memcached. C: 3766: Error: Passing argument 5 of 'getsockopt' from incompatible pointer type
Memcached. C: In function 'server _ socket ':
Memcached. C: 3888: Error: Passing argument 3 of 'getname name' from incompatible pointer type
* ** Error exit code 1
Stop.
* ** Error exit code 1
Stop.
* ** Error exit code 1
Stop.
3. Make reports an error
Solution: add the following function (isspace_t) to util. C and replace all isspaces in util. C with isspace_t.
C code
- Extern int isspace_t _ (INT ));
- Int isspace_t (INT ch ){
- Return (unsigned INT) (CH-9) <5u | CH = '';
- }
Wmissing-prototypes-wmissing-declarations-wredundant-decls-MT memcached-util.o-MD-MP-MF. deps/memcached-util.Tpo-c-o memcached-util.o 'test-F' util. c' | echo '. /''util. c
C0: warnings being treated as errors
Util. C: In function 'safe _ strtoull ':
Util. C: 19: Error: array subscript has type 'Char'
Util. C: In function 'safe _ strtoll ':
Util. C: 42: Error: array subscript has type 'Char'
Util. C: In function 'safe _ strtoul ':
Util. C: 62: Error: array subscript has type 'Char'
Util. C: In function 'safe _ strtol ':
Util. C: 86: Error: array subscript has type 'Char'
* ** Error exit code 1
Stop.
* ** Error exit code 1
Stop.
* ** Error exit code 1
Stop.
Memcache installation on HP-Unix