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!
Solaris 10 x86 U3
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
# Library Link Flags
LIBS="-lfasttime"
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/lib -R/usr/sfw/lib -L/usr/lib -R/usr/lib"
# Compiler Flags
CFLAGS="-fast -m32 -mt -lpthread"
CXX=CC
CXXFLAGS="-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
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.
[EMAIL PROTECTED] # 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 .
ldfs13 --> 1 job
/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
ldfs13 --> 2 jobs
/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
ldfs13 --> Job output
/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
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
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
ldfs13 --> 2 jobs
/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
ldfs13 --> Job output
/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
mkdir .libs
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
"event.c", line 168: warning: syntax error: empty declaration
"event.c", line 170: warning: syntax error: empty declaration
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
ldfs13 --> 2 jobs
/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
ldfs13 --> Job output
/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
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
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
ldfs13 --> 2 jobs
/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
ldfs13 --> Job output
/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
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
"event_tagging.c", line 153: syntax error before or at: decode_int_internal
"event_tagging.c", line 154: warning: old-style declaration or incorrect type
for: decode_int_internal
cc: acomp failed for event_tagging.c
*** Error code 1
dmake: Fatal error: Command failed for target `event_tagging.lo'
Current working directory /root/libevent-1.3b
Waiting for 1 job to finish
ldfs13 --> Job output
/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
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
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
*** Error code 1
The following command caused the error:
failcom='exit 1'; \
for f in x $MAKEFLAGS; do \
case $f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
esac; \
done; \
dot_seen=no; \
target=`echo all-recursive | sed s/-recursive//`; \
list='. sample test'; 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) \
|| eval $failcom; \
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/libevent-1.3b
*** Error code 1
dmake: Fatal error: Command failed for target `all'
[EMAIL PROTECTED] #
---------------------------------
Need a vacation? Get great deals to amazing places on Yahoo! Travel. _______________________________________________
Libevent-users mailing list
[email protected]
http://monkey.org/mailman/listinfo/libevent-users