<BODY oncontextmenu="return false" dir=ltr style="OVERFLOW-Y: scroll" leftMargin=0 topMargin=0
rightMargin=0><DIV id=wrteplaceholder style="FONT-FAMILY: Arial" name="wrteplaceholder">
<DIV><BR>Hi <BR> Friends<BR> I am using the log4cxx
in my application And want to install it on solaris 8 having sparcv9 & sparc.<BR>while
installing that i am specifying options as<BR><BR><BR>
env CPPFLAGS="-xarch=generic" ./configure --with- SMTP=libsmtp<BR><BR>So
configuration is fine,But on make ,error occured at thread.cpp as<BR><BR><FONT
size=2>
<P>source='thread.cpp' object='thread.lo' libtool=yes \<BR>depfile='.deps/thread.Plo'
tmpdepfile='.deps/thread.TPlo' \<BR>depmode=none /bin/bash ../depcomp \<BR>/bin/bash
../libtool --mode=compile CC -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include -I/opt/csw/include/libxml2
-I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -xarch=generic -w -D_REENTRANT
-g -c -o thread.lo thread.cpp<BR>CC -DHAVE_CONFIG_H -I. -I. -I../include/log4cxx -I../include
-I/opt/csw/include/libxml2 -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include -xarch=generic
-w -D_REENTRANT -g -c thread.cpp -KPIC -DPIC -o .libs/thread.o<BR>"thread.cpp", line
94: Warning (Anachronism): Formal argument 3 of type extern "C" void*(*)(void*) in call to
pthread_create(unsigned*, const _pthread_attr*, extern "C" void*(*)(void*), void*) is being
passed void*(*)(void*).</P>
<P>1 Warning(s) detected.<BR><FONT size=2>"/tmp/yabeAAAZJaykN", line 2155:
error: cannot use v8plus instructions in a non-v8plus target binary<BR>Failure in /export/home/uxapps/workshop/SUNWspro/bin/../WS6U2/bin/fbe,
status = 0x100<BR>Fatal Error exec'ing /export/home/uxapps/workshop/SUNWspro/bin/../WS6U2/bin/fbe<BR>***
Error code 1<BR>make: Fatal error: Command failed for target `thread.lo'<BR>Current
working directory /home/it2005/Solaris/Packages/log4cxx-0.9.7/src<BR>*** Error code
1<BR>make: Fatal error: Command failed for target `all-recursive'<BR></FONT></FONT><BR>
Actually i found the statment creatting errors r<BR> In thead.cpp there is
a function <BR><BR><BR>1 #if defined(sparc) &&
defined(__SUNPRO_CC)<BR>2 extern "C" long sparc_atomic_add_32 (volatile long* p, long
val);</P>
<P>3 static void asm_code()<BR>4 {<BR>5
asm(".align 8"); \<BR>6
asm(".global sparc_atomic_add_32"); \<BR>7
asm(".type sparc_atomic_add_32, #function"); \<BR>8
asm("sparc_atomic_add_32:");<BR>9
asm(" membar #Lookaside | #LoadLoad | #LoadStore | #StoreLoad");<BR>10
asm(" ld [%o0], %l0");
// l0 = *p;<BR>11 asm("
add %l0, %o1, %l2"); // l2 = l0 + val<BR>12
asm(" cas [%o0], %l0, %l2"); // if (*p = l0) swap([o0], l2);<BR>13
asm(" cmp %l0, %l2");
// does it match<BR>14 asm("
bne sparc_atomic_add_32");// if not try again<BR>15
asm(" nop");
// delay slot filler<BR>16
asm(" add %l2, %o1, %o0"); // set return
code<BR>17 asm("
membar #Lookaside | #LoadLoad | #LoadStore | #StoreLoad");<BR>18
asm("retl");<BR>19 asm("nop");<BR>20
}<BR>21 #endif <BR><BR><BR> And when
i put statement 9 , 12 & 17 in comment so it compiled
successfully, But probelm occuerd is that ,the final library fail to support
any Dyanmic changes to config file and many more <BR> That
stament are<BR> 9
asm(" membar #Lookaside | #LoadLoad | #LoadStore | #StoreLoad");<BR> <BR>
12 asm("
cas [%o0], %l0, %l2"); // if (*p = l0) swap([o0], l2);<BR><BR> 17
asm(" membar #Lookaside | #LoadLoad | #LoadStore | #StoreLoad");<BR></P>
<P> So please somebody help me for this how can i replace
these instruction to compile the log4cxx<BR><BR><BR> Regards<BR>
Jayant<BR><BR><BR> <BR></P></DIV></DIV></BODY><hr><div
style="background-color:white;color:black;">Walla! Mail - <a href="http://www.walla.com"
style="color:blue">get your free 1G mail today</a></div> |