I'm trying to get memcached compiled using Sun Studio 12 with libevent 1.3.a (which I have compiled and working).<br><br>This is the compiling options I'm giving:<br><br>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<br><br>LD_PRELOAD=/usr/lib/libmtmalloc.so<br>LDFLAGS="-L/opt/yp/lib -R/opt/yp/lib -L/opt/sfw/lib -R/opt/sfw/lib -L/usr/sfw/li<br>b -R/usr/sfw/lib -L/usr/lib -R/usr/lib"<br><br># Compiler Flags<br><br>CFLAGS="-fast -m32 -mt -lpthread"<br><br># Include Flags<br>CPPFLAGS="-I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include"<br><br># Export VARS<br><br>export CFLAGS CXX CXXFLAGS CPPFLAGS LDFLAGS LIBS LD_PRELOAD<br><br>./configure --prefix=/opt/yp --enable-threads --with-libevent=/opt/yp<br><br>This is what happens when I compile any ideas?<br><br>root@ldfs13 # dmake<br>dmake: defaulting to parallel mode.<br>See the man page dmake(1) for more information on setting up the .dmakerc
file.<br>dmake all-recursive<br>Making all in doc<br>ldfs13 --> 1 job<br>source='memcached.c' object='memcached-memcached.o' libtool=no \<br>depfile='.deps/memcached-memcached.Po' tmpdepfile='.deps/memcached-memcached.TPo' \<br>depmode=none /bin/bash ./depcomp \<br>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<br>ldfs13 --> 2 jobs<br>source='slabs.c' object='memcached-slabs.o' libtool=no \<br>depfile='.deps/memcached-slabs.Po' tmpdepfile='.deps/memcached-slabs.TPo' \<br>depmode=none /bin/bash ./depcomp \<br>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<br>ldfs13 --> Job output<br>source='memcached.c'
object='memcached-memcached.o' libtool=no \<br>depfile='.deps/memcached-memcached.Po' tmpdepfile='.deps/memcached-memcached.TPo' \<br>depmode=none /bin/bash ./depcomp \<br>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<br>"memcached.h", line 105: warning: zero or negative subscript<br>"memcached.c", line 522: warning: implicit function declaration: mt_assoc_move_next_bucket<br>"memcached.c", line 638: warning: assignment type mismatch:<br> pointer to char "=" pointer to unsigned char<br>"memcached.c", line 821: reference to static identifier "out_string" in extern inline function<br>"memcached.c", line 825: reference to static identifier "out_string" in extern inline function<br>"memcached.c", line 834: reference to static identifier "conn_set_state" in
extern inline function<br>"memcached.c", line 838: reference to static identifier "out_string" in extern inline function<br>"memcached.c", line 842: reference to static identifier "out_string" in extern inline function<br>"memcached.c", line 2249: warning: implicit function declaration: kill<br>"memcached.c", line 2469: warning: implicit function declaration: signal<br>"memcached.c", line 2668: warning: implicit function declaration: daemon<br>"memcached.c", line 2710: warning: implicit function declaration: sigemptyset<br>"memcached.c", line 2711: warning: implicit function declaration: sigaction<br>cc: acomp failed for memcached.c<br>*** Error code 2<br>dmake: Fatal error: Command failed for target `memcached-memcached.o'<br>Current working directory /root/memcached-1.2.2<br>Waiting for 1 job to finish<br>ldfs13 --> Job output<br>source='slabs.c' object='memcached-slabs.o' libtool=no \<br>depfile='.deps/memcached-slabs.Po' tmpdepfile='.deps/memcached-slabs.TPo'
\<br>depmode=none /bin/bash ./depcomp \<br>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<br>"memcached.h", line 105: warning: zero or negative subscript<br>"slabs.c", line 234: warning: pointer to void or function used in arithmetic<br>*** Error code 1<br>The following command caused the error:<br>set fnord $MAKEFLAGS; amf=$2; \<br>dot_seen=no; \<br>target=`echo all-recursive | sed s/-recursive//`; \<br>list='doc'; for subdir in $list; do \<br> echo "Making $target in $subdir"; \<br> if test "$subdir" = "."; then \<br> dot_seen=yes; \<br> local_target="$target-am"; \<br> else \<br> local_target="$target"; \<br> fi; \<br> (cd $subdir && dmake $local_target) \<br> || case "$amf" in *=*) exit 1;; *k*)
fail=yes;; *) exit 1;; esac; \<br>done; \<br>if test "$dot_seen" = "no"; then \<br> dmake "$target-am" || exit 1; \<br>fi; test -z "$fail"<br>dmake: Fatal error: Command failed for target `all-recursive'<br>Current working directory /root/memcached-1.2.2<br>*** Error code 1<br>dmake: Fatal error: Command failed for target `all'<br>root@ldfs13 # <br><br><br><p> 
<hr size=1>You snooze, you lose. <a href="http://us.rd.yahoo.com/evt=47959/*http://advision.webevents.yahoo.com/mailbeta/newmail_html.html">Get messages ASAP with AutoCheck</a><br>
in the all-new Yahoo! Mail Beta.