Welcome! Log In Create A New Profile

Advanced

installing memcached on hp-ux

Posted by mca 
mca
installing memcached on hp-ux
October 05, 2010 09:50AM
Hello I am having problem installing memcached on my hp-ux box.
I have installed libevent-1.4.11-stable with configure make make-
install
But running ./configure on memcached-1.4.5 fails stating that it can't
find libevent.
Exact error message is "checking for libevent directory... configure:
error: libevent is required."

I have previously installed memcached on an Linux box but can't figure
out whats the problem on this one.
Any pointers appreciated

Thanks
Dustin
Re: installing memcached on hp-ux
October 05, 2010 10:00AM
On Oct 5, 12:44 am, mca <[email protected]> wrote:
> Hello I am having problem installing memcached on my hp-ux box.
> I have installed libevent-1.4.11-stable with configure make make-
> install
> But running ./configure on memcached-1.4.5 fails stating that it can't
> find libevent.
> Exact error message is "checking for libevent directory... configure:
> error: libevent is required."
>
> I have previously installed memcached on an Linux box but can't figure
> out whats the problem on this one.
> Any pointers appreciated

Read config.log -- it'll tell you what it means by that.
Murat Can ALPAY
Re: installing memcached on hp-ux
October 05, 2010 10:30AM
I think this is the relavent part of the config.log :
configure:5551: gcc -std=gnu99 -o conftest -g -O2 -pthread
-I/usr/local/include -I/usr/local/include -L/usr/local/lib conftest.c
-levent >&5
In file included from /usr/include/inttypes.h:688,
from /usr/include/stdint.h:18,
from /usr/local/include/event.h:170,
from conftest.c:20:
/usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:134: error: parse
error before "va_list"
/usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:135: error: parse
error before "va_list"
/usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:136: error: parse
error before "va_list"
configure:5558: $? = 1
configure: failed program was:
| /* confdefs.h. */
| #define PACKAGE_NAME "memcached"
| #define PACKAGE_TARNAME "memcached"
| #define PACKAGE_VERSION "1.4.5"
| #define PACKAGE_STRING "memcached 1.4.5"
| #define PACKAGE_BUGREPORT "[email protected]"
| #define PACKAGE "memcached"
| #define VERSION "1.4.5"
| #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_UNISTD_H 1
| /* end confdefs.h. */
| #include <sys/time.h>
| #include <sys/types.h>
| #include <event.h>
| int
| main ()
| {
| event_init();
| ;
| return 0;
| }
configure:5591: error: libevent is required. You can get it from
http://www.monkey.org/~provos/libevent/

If it's already installed, specify its path using
--with-libevent=/dir/

On Tue, Oct 5, 2010 at 10:51 AM, Dustin <[email protected]> wrote:

>
> On Oct 5, 12:44 am, mca <[email protected]> wrote:
> > Hello I am having problem installing memcached on my hp-ux box.
> > I have installed libevent-1.4.11-stable with configure make make-
> > install
> > But running ./configure on memcached-1.4.5 fails stating that it can't
> > find libevent.
> > Exact error message is "checking for libevent directory... configure:
> > error: libevent is required."
> >
> > I have previously installed memcached on an Linux box but can't figure
> > out whats the problem on this one.
> > Any pointers appreciated
>
> Read config.log -- it'll tell you what it means by that.




--
Murat Can ALPAY
http://mcatr.blogspot.com
Dustin
Re: installing memcached on hp-ux
October 05, 2010 11:00AM
On Oct 5, 1:25 am, Murat Can ALPAY <[email protected]> wrote:

> I think this is the relavent part of the config.log :
> configure:5551: gcc -std=gnu99 -o conftest -g -O2 -pthread
> -I/usr/local/include -I/usr/local/include  -L/usr/local/lib  conftest..c
>  -levent >&5
> In file included from /usr/include/inttypes.h:688,
>                  from /usr/include/stdint.h:18,
>                  from /usr/local/include/event.h:170,
>                  from conftest.c:20:
> /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:134: error: parse
> error before "va_list"
> /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:135: error: parse
> error before "va_list"
> /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:136: error: parse
> error before "va_list"


This says your compiler can't parse its headers. I cannot tell you
how to fix this other than to try to compile that standalone prog and
maybe try to include stdarg.h before event.h -- I'd kind of hope that
wouldn't work, but stdarg.h is probably included from stdio.h and
someone near HP or gcc probably doesn't expect anyone to write c
without stdio.h.
Murat Can ALPAY
Re: installing memcached on hp-ux
October 05, 2010 11:10AM
adding stdarg.h makes compile pass, I'll edit the configure script and see
anything else fails thanks

On Tue, Oct 5, 2010 at 11:59 AM, Dustin <[email protected]> wrote:

>
> On Oct 5, 1:25 am, Murat Can ALPAY <[email protected]> wrote:
>
> > I think this is the relavent part of the config.log :
> > configure:5551: gcc -std=gnu99 -o conftest -g -O2 -pthread
> > -I/usr/local/include -I/usr/local/include -L/usr/local/lib conftest.c
> > -levent >&5
> > In file included from /usr/include/inttypes.h:688,
> > from /usr/include/stdint.h:18,
> > from /usr/local/include/event.h:170,
> > from conftest.c:20:
> > /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:134: error:
> parse
> > error before "va_list"
> > /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:135: error:
> parse
> > error before "va_list"
> > /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:136: error:
> parse
> > error before "va_list"
>
>
> This says your compiler can't parse its headers. I cannot tell you
> how to fix this other than to try to compile that standalone prog and
> maybe try to include stdarg.h before event.h -- I'd kind of hope that
> wouldn't work, but stdarg.h is probably included from stdio.h and
> someone near HP or gcc probably doesn't expect anyone to write c
> without stdio.h.




--
Murat Can ALPAY
http://mcatr.blogspot.com
Murat Can ALPAY
Re: installing memcached on hp-ux
October 05, 2010 12:40PM
This time 'make' failed with, again I assume its something to do with
headers I guess though it just states warning exits with an error:

gcc -std=gnu99 -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall -Werror
-pedantic -Wmissing-prototypes -Wmissing-declarations -Wredun dant-decls -MT
memcached-memcached.o -MD -MP -MF .deps/memcached-memcached.Tpo -c -o
memcached-memcached.o `test -f 'memcached.c' || echo './'`mem cached.c
memcached.c: In function `add_msghdr':
memcached.c:228: warning: assignment from incompatible pointer type
memcached.c: At top level:
memcached.c:252: warning: missing braces around initializer
memcached.c:252: warning: (near initialization for `conn_lock.m_short')
memcached.c: In function `try_read_udp':
memcached.c:3206: warning: passing arg 6 of `recvfrom' from incompatible
pointer type
memcached.c: In function `drive_machine':
memcached.c:3432: warning: passing arg 3 of `accept' from incompatible
pointer type
memcached.c: In function `maximize_sndbuf':
memcached.c:3766: warning: passing arg 5 of `getsockopt' from incompatible
pointer type
memcached.c: In function `server_socket':
memcached.c:3888: warning: passing arg 3 of `getsockname' from incompatible
pointer type
*** Error exit code 1

Stop.
*** Error exit code 1

Stop.
*** Error exit code 1


On Tue, Oct 5, 2010 at 12:08 PM, Murat Can ALPAY <[email protected]> wrote:

> adding stdarg.h makes compile pass, I'll edit the configure script and see
> anything else fails thanks
>
>
> On Tue, Oct 5, 2010 at 11:59 AM, Dustin <[email protected]> wrote:
>
>>
>> On Oct 5, 1:25 am, Murat Can ALPAY <[email protected]> wrote:
>>
>> > I think this is the relavent part of the config.log :
>> > configure:5551: gcc -std=gnu99 -o conftest -g -O2 -pthread
>> > -I/usr/local/include -I/usr/local/include -L/usr/local/lib conftest.c
>> > -levent >&5
>> > In file included from /usr/include/inttypes.h:688,
>> > from /usr/include/stdint.h:18,
>> > from /usr/local/include/event.h:170,
>> > from conftest.c:20:
>> > /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:134: error:
>> parse
>> > error before "va_list"
>> > /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:135: error:
>> parse
>> > error before "va_list"
>> > /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:136: error:
>> parse
>> > error before "va_list"
>>
>>
>> This says your compiler can't parse its headers. I cannot tell you
>> how to fix this other than to try to compile that standalone prog and
>> maybe try to include stdarg.h before event.h -- I'd kind of hope that
>> wouldn't work, but stdarg.h is probably included from stdio.h and
>> someone near HP or gcc probably doesn't expect anyone to write c
>> without stdio.h.
>
>
>
>
> --
> Murat Can ALPAY
> http://mcatr.blogspot.com
>



--
Murat Can ALPAY
http://mcatr.blogspot.com
Murat Can ALPAY
Re: installing memcached on hp-ux
October 05, 2010 01:20PM
I removed the -Wall from the Makefile added the stdarg.h to memcached.h and
cache.c now the daemon seems to be running... I'll try and see if my
application functions the same thanks

On Tue, Oct 5, 2010 at 1:38 PM, Murat Can ALPAY <[email protected]> wrote:

> This time 'make' failed with, again I assume its something to do with
> headers I guess though it just states warning exits with an error:
>
> gcc -std=gnu99 -DHAVE_CONFIG_H -I. -DNDEBUG -g -O2 -pthread -Wall
> -Werror -pedantic -Wmissing-prototypes -Wmissing-declarations -Wredun
> dant-decls -MT memcached-memcached.o -MD -MP -MF
> .deps/memcached-memcached.Tpo -c -o memcached-memcached.o `test -f
> 'memcached.c' || echo './'`mem cached.c
> memcached.c: In function `add_msghdr':
> memcached.c:228: warning: assignment from incompatible pointer type
> memcached.c: At top level:
> memcached.c:252: warning: missing braces around initializer
> memcached.c:252: warning: (near initialization for `conn_lock.m_short')
> memcached.c: In function `try_read_udp':
> memcached.c:3206: warning: passing arg 6 of `recvfrom' from incompatible
> pointer type
> memcached.c: In function `drive_machine':
> memcached.c:3432: warning: passing arg 3 of `accept' from incompatible
> pointer type
> memcached.c: In function `maximize_sndbuf':
> memcached.c:3766: warning: passing arg 5 of `getsockopt' from incompatible
> pointer type
> memcached.c: In function `server_socket':
> memcached.c:3888: warning: passing arg 3 of `getsockname' from incompatible
> pointer type
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
> Stop.
> *** Error exit code 1
>
>
> On Tue, Oct 5, 2010 at 12:08 PM, Murat Can ALPAY <[email protected]>wrote:
>
>> adding stdarg.h makes compile pass, I'll edit the configure script and see
>> anything else fails thanks
>>
>>
>> On Tue, Oct 5, 2010 at 11:59 AM, Dustin <[email protected]> wrote:
>>
>>>
>>> On Oct 5, 1:25 am, Murat Can ALPAY <[email protected]> wrote:
>>>
>>> > I think this is the relavent part of the config.log :
>>> > configure:5551: gcc -std=gnu99 -o conftest -g -O2 -pthread
>>> > -I/usr/local/include -I/usr/local/include -L/usr/local/lib conftest.c
>>> > -levent >&5
>>> > In file included from /usr/include/inttypes.h:688,
>>> > from /usr/include/stdint.h:18,
>>> > from /usr/local/include/event.h:170,
>>> > from conftest.c:20:
>>> > /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:134: error:
>>> parse
>>> > error before "va_list"
>>> > /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:135: error:
>>> parse
>>> > error before "va_list"
>>> > /usr/local/lib/gcc/ia64-hp-hpux11.23/3.4.3/include/wchar.h:136: error:
>>> parse
>>> > error before "va_list"
>>>
>>>
>>> This says your compiler can't parse its headers. I cannot tell you
>>> how to fix this other than to try to compile that standalone prog and
>>> maybe try to include stdarg.h before event.h -- I'd kind of hope that
>>> wouldn't work, but stdarg.h is probably included from stdio.h and
>>> someone near HP or gcc probably doesn't expect anyone to write c
>>> without stdio.h.
>>
>>
>>
>>
>> --
>> Murat Can ALPAY
>> http://mcatr.blogspot.com
>>
>
>
>
> --
> Murat Can ALPAY
> http://mcatr.blogspot.com
>



--
Murat Can ALPAY
http://mcatr.blogspot.com
Sorry, only registered users may post in this forum.

Click here to login