Jdesk / memcached

Automatically exported from code.google.com/p/memcached
0 stars 0 forks source link

I can't install memcached on HP-UNIX,can you help me? #138

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
When I compiler memcache ,system repot error:

make
        make  all-recursive
Making all in doc
No suffix list.
        make  all-am
No suffix list.
        gcc -std=gnu99 -DHAVE_CONFIG_H -I.  -DNDEBUG
-I/echnapp/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
cc1: 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_sndbuf':
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 'getsockname' from
incompatible pointer type
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.

I found   struct msghdr memcache.h of different msghdr struct in
/usr/include/sys/socket.h ,but I don't know how to modify it,I hope for you
help,Thanks!                     

Original issue reported on code.google.com by yuther...@gmail.com on 5 May 2010 at 9:44

GoogleCodeExporter commented 9 years ago
which version of HP-UX?  You might try compiling like this

make clean
env CFLAGS=-D_XOPEN_SOURCE_EXTENDED ./configure
make

Original comment by lind...@inuus.com on 5 May 2010 at 1:13

GoogleCodeExporter commented 9 years ago
My OS:HP-UX B.11.23 U ia64

Very thanks  lindner.profile,I have been compile success! but run ./memcached 
-d -m
10 -u root -l 127.0.0.1 -p 12000 -c 256 -P /tmp/memcached.pid ,system report 
error:

/usr/lib/hpux32/dld.so: Unable to find library 'libgcc_s.so.0'.
Killed

Original comment by yuther...@gmail.com on 5 May 2010 at 4:48

GoogleCodeExporter commented 9 years ago
Hi, you probably need to set LD_LIBRARY_PATH to find the gcc shared library.  
You can also add --no-shared to 
your configure command to get a static binary.

Original comment by lind...@inuus.com on 5 May 2010 at 6:06

GoogleCodeExporter commented 9 years ago
Seems like you figured this one out. I'm closing the issue now that you've got 
a workaround. 

It would be nice if you could provide a patch that detects if this is HPUX and 
adds the _XOPEN_SOURCE_EXTENDED to cppflags... (or if you provide us access to 
a buildbot slave we can test on hpux as well)

Original comment by trond.no...@gmail.com on 11 Nov 2010 at 12:11