I'm trying to get libevent compiled with Sun Studio 12, but keep running into problems. Below is my compile line / options and the error. Any help would be appreciated. Thanks!<br><br>Solaris 10 x86 U3<br><br>PATH=/opt/yp/bin:/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># Library Link Flags<br>LIBS="-lfasttime"<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/lib -R/usr/sfw/lib -L/usr/lib -R/usr/lib"<br><br># Compiler Flags<br><br>CFLAGS="-fast -m32 -mt -lpthread"<br><br>CXX=CC<br><br>CXXFLAGS="-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<br><br><br>Configure shows no errors then I run dmake (make or gmake all
produce the same) giving no special cc flags also provides the same error.<br><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 .<br>ldfs13 --> 1 job<br>/bin/bash ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c -o event.lo event.c<br>ldfs13 --> 2 jobs<br>/bin/bash ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c -o buffer.lo buffer.c<br>ldfs13 --> Job output<br>/bin/bash ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt
-lpthread -c -o buffer.lo buffer.c<br> cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c buffer.c -KPIC -DPIC -o .libs/buffer.o<br> cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c buffer.c -o buffer.o >/dev/null 2>&1<br>ldfs13 --> 2 jobs<br>/bin/bash ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c -o evbuffer.lo evbuffer.c<br>ldfs13 --> Job output<br>/bin/bash ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c -o event.lo event.c<br>mkdir .libs<br> cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include
-I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c event.c -KPIC -DPIC -o .libs/event.o<br>"event.c", line 168: warning: syntax error: empty declaration<br>"event.c", line 170: warning: syntax error: empty declaration<br> cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c event.c -o event.o >/dev/null 2>&1<br>ldfs13 --> 2 jobs<br>/bin/bash ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c -o log.lo log.c<br>ldfs13 --> Job output<br>/bin/bash ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c -o evbuffer.lo evbuffer.c<br> cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat
-I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c evbuffer.c -KPIC -DPIC -o .libs/evbuffer.o<br> cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c evbuffer.c -o evbuffer.o >/dev/null 2>&1<br>ldfs13 --> 2 jobs<br>/bin/bash ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c -o event_tagging.lo event_tagging.c<br>ldfs13 --> Job output<br>/bin/bash ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c -o event_tagging.lo event_tagging.c<br> cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c
event_tagging.c -KPIC -DPIC -o .libs/event_tagging.o<br>"event_tagging.c", line 153: syntax error before or at: decode_int_internal<br>"event_tagging.c", line 154: warning: old-style declaration or incorrect type for: decode_int_internal<br>cc: acomp failed for event_tagging.c<br>*** Error code 1<br>dmake: Fatal error: Command failed for target `event_tagging.lo'<br>Current working directory /root/libevent-1.3b<br>Waiting for 1 job to finish<br>ldfs13 --> Job output<br>/bin/bash ./libtool --tag=CC --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c -o log.lo log.c<br> cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32 -mt -lpthread -c log.c -KPIC -DPIC -o .libs/log.o<br> cc -DHAVE_CONFIG_H -I. -I. -I. -Icompat -I/opt/yp/include -I/opt/sfw/include -I/usr/sfw/include -fast -m32
-mt -lpthread -c log.c -o log.o >/dev/null 2>&1<br>*** Error code 1<br>The following command caused the error:<br>failcom='exit 1'; \<br>for f in x $MAKEFLAGS; do \<br> case $f in \<br> *=* | --[!k]*);; \<br> *k*) failcom='fail=yes';; \<br> esac; \<br>done; \<br>dot_seen=no; \<br>target=`echo all-recursive | sed s/-recursive//`; \<br>list='. sample test'; 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> || eval $failcom; \<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/libevent-1.3b<br>*** Error code 1<br>dmake: Fatal error: Command failed for target `all'<br>root@ldfs13 # <br><br><p> 
<hr size=1>Need a vacation? <a href="http://us.rd.yahoo.com/evt=48256/*http://travel.yahoo.com/;_ylc=X3oDMTFhN2hucjlpBF9TAzk3NDA3NTg5BHBvcwM1BHNlYwNncm91cHMEc2xrA2VtYWlsLW5jbQ--">Get great deals
to amazing places </a>on Yahoo! Travel.