Solaris 10 Sun Studio 12 & memcached 1.2.2

William Pool rotaecho at yahoo.com
Tue Jun 19 17:30:39 UTC 2007


I'm trying to get memcached compiled using Sun Studio 12 with libevent 1.3.a (which I have compiled and working).

This is the compiling options I'm giving:

PATH=/opt/SUNWspro/bin:/opt/sfw/bin:/opt/sfw/sbin:/usr/sfw/bin:/usr/sfw/sbin:/usr/bin:/usr/sbin:/sbin:/usr/ucb:/usr/ccs/bin

LD_PRELOAD=/usr/lib/libmtmalloc.so
LDFLAGS="-L/opt/yp/lib -R/opt/yp/lib -L/opt/sfw/lib -R/opt/sfw/lib -L/usr/sfw/li
b -R/usr/sfw/lib -L/usr/lib -R/usr/lib"

# Compiler Flags

CFLAGS="-fast -m32 -mt -lpthread"

# Include Flags
CPPFLAGS="-I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include"

# Export VARS

export CFLAGS CXX CXXFLAGS CPPFLAGS LDFLAGS LIBS LD_PRELOAD

./configure --prefix=/opt/yp  --enable-threads --with-libevent=/opt/yp

This is what happens when I compile any ideas?

root at ldfs13 # dmake
dmake: defaulting to parallel mode.
See the man page dmake(1) for more information on setting up the .dmakerc file.
dmake  all-recursive
Making all in doc
ldfs13 --> 1 job
source='memcached.c' object='memcached-memcached.o' libtool=no \
depfile='.deps/memcached-memcached.Po' tmpdepfile='.deps/memcached-memcached.TPo' \
depmode=none /bin/bash ./depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.  -DNDEBUG -I/opt/yp/include -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include  -fast -m32 -mt -lpthread -c -o memcached-memcached.o `test -f 'memcached.c' || echo './'`memcached.c
ldfs13 --> 2 jobs
source='slabs.c' object='memcached-slabs.o' libtool=no \
depfile='.deps/memcached-slabs.Po' tmpdepfile='.deps/memcached-slabs.TPo' \
depmode=none /bin/bash ./depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.  -DNDEBUG -I/opt/yp/include -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include  -fast -m32 -mt -lpthread -c -o memcached-slabs.o `test -f 'slabs.c' || echo './'`slabs.c
ldfs13 --> Job output
source='memcached.c' object='memcached-memcached.o' libtool=no \
depfile='.deps/memcached-memcached.Po' tmpdepfile='.deps/memcached-memcached.TPo' \
depmode=none /bin/bash ./depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.  -DNDEBUG -I/opt/yp/include -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include  -fast -m32 -mt -lpthread -c -o memcached-memcached.o `test -f 'memcached.c' || echo './'`memcached.c
"memcached.h", line 105: warning: zero or negative subscript
"memcached.c", line 522: warning: implicit function declaration: mt_assoc_move_next_bucket
"memcached.c", line 638: warning: assignment type mismatch:
        pointer to char "=" pointer to unsigned char
"memcached.c", line 821: reference to static identifier "out_string" in extern inline function
"memcached.c", line 825: reference to static identifier "out_string" in extern inline function
"memcached.c", line 834: reference to static identifier "conn_set_state" in extern inline function
"memcached.c", line 838: reference to static identifier "out_string" in extern inline function
"memcached.c", line 842: reference to static identifier "out_string" in extern inline function
"memcached.c", line 2249: warning: implicit function declaration: kill
"memcached.c", line 2469: warning: implicit function declaration: signal
"memcached.c", line 2668: warning: implicit function declaration: daemon
"memcached.c", line 2710: warning: implicit function declaration: sigemptyset
"memcached.c", line 2711: warning: implicit function declaration: sigaction
cc: acomp failed for memcached.c
*** Error code 2
dmake: Fatal error: Command failed for target `memcached-memcached.o'
Current working directory /root/memcached-1.2.2
Waiting for 1 job to finish
ldfs13 --> Job output
source='slabs.c' object='memcached-slabs.o' libtool=no \
depfile='.deps/memcached-slabs.Po' tmpdepfile='.deps/memcached-slabs.TPo' \
depmode=none /bin/bash ./depcomp \
cc -DHAVE_CONFIG_H -I. -I. -I.  -DNDEBUG -I/opt/yp/include -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include  -fast -m32 -mt -lpthread -c -o memcached-slabs.o `test -f 'slabs.c' || echo './'`slabs.c
"memcached.h", line 105: warning: zero or negative subscript
"slabs.c", line 234: warning: pointer to void or function used in arithmetic
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='doc'; for subdir in $list; do \
  echo "Making $target in $subdir"; \
  if test "$subdir" = "."; then \
    dot_seen=yes; \
    local_target="$target-am"; \
  else \
    local_target="$target"; \
  fi; \
  (cd $subdir && dmake  $local_target) \
   || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
done; \
if test "$dot_seen" = "no"; then \
  dmake  "$target-am" || exit 1; \
fi; test -z "$fail"
dmake: Fatal error: Command failed for target `all-recursive'
Current working directory /root/memcached-1.2.2
*** Error code 1
dmake: Fatal error: Command failed for target `all'
root at ldfs13 # 



       
---------------------------------
You snooze, you lose. Get messages ASAP with AutoCheck
 in the all-new Yahoo! Mail Beta. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20070619/66c45534/attachment.htm


More information about the memcached mailing list