Memcache installation on HP-Unix

Source: Internet
Author: User

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
  1. 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
  1. Extern int isspace_t _ (INT ));
  2. Int isspace_t (INT ch ){
  3. Return (unsigned INT) (CH-9) <5u | CH = '';
  4. }


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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.