logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jayant Dusane <jayd_fcp...@walla.com>
Subject Problem in installing log4cxx in Solaris 8 sparc
Date Fri, 18 Mar 2005 05:57:51 GMT

<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>&nbsp; Friends<BR>&nbsp;I am using the log4cxx
in my application And want to install it on solaris 8 having sparcv9 &amp; sparc.<BR>while
installing that i am specifying options as<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;env CPPFLAGS="-xarch=generic" ./configure&nbsp; --with- SMTP=libsmtp<BR><BR>So
configuration is fine,But&nbsp; 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>&nbsp;
Actually i found the statment creatting errors r<BR>&nbsp;In thead.cpp there is
a function&nbsp;<BR><BR><BR>1 #if defined(sparc) &amp;&amp;
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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
asm(".align 8"); \<BR>6&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
asm(".global sparc_atomic_add_32"); \<BR>7&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
asm(".type sparc_atomic_add_32, #function"); \<BR>8&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
asm("sparc_atomic_add_32:");<BR>9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
asm("&nbsp;&nbsp;&nbsp; membar #Lookaside | #LoadLoad | #LoadStore | #StoreLoad");<BR>10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
asm("&nbsp;&nbsp;&nbsp; ld [%o0], %l0");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
// l0 = *p;<BR>11&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; asm("&nbsp;&nbsp;&nbsp;
add %l0, %o1, %l2");&nbsp;&nbsp; // l2 = l0 + val<BR>12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
asm("&nbsp;&nbsp;&nbsp; cas [%o0], %l0, %l2"); // if (*p = l0) swap([o0], l2);<BR>13&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
asm("&nbsp;&nbsp;&nbsp; cmp %l0, %l2");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
// does it match<BR>14&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; asm("&nbsp;&nbsp;&nbsp;
bne sparc_atomic_add_32");// if not try again<BR>15&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
asm("&nbsp;&nbsp;&nbsp; nop");&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
// delay slot filler<BR>16&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
asm("&nbsp;&nbsp;&nbsp; add %l2, %o1, %o0");&nbsp;&nbsp; // set return
code<BR>17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; asm("&nbsp;&nbsp;&nbsp;
membar #Lookaside | #LoadLoad | #LoadStore | #StoreLoad");<BR>18&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
asm("retl");<BR>19&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; asm("nop");<BR>20&nbsp;
}<BR>21 #endif&nbsp;&nbsp;<BR><BR><BR>&nbsp; And when
i&nbsp;put statement&nbsp; 9&nbsp;, 12 &amp; 17 in comment so it compiled
successfully, But probelm occuerd is that ,the final library&nbsp;fail&nbsp;to &nbsp;support
any Dyanmic&nbsp;changes to config file and many more&nbsp;<BR>&nbsp;That
stament are<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 9&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
asm("&nbsp;&nbsp;&nbsp; membar #Lookaside | #LoadLoad | #LoadStore | #StoreLoad");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<BR>&nbsp;&nbsp;&nbsp;&nbsp;
&nbsp;12&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; asm("&nbsp;&nbsp;&nbsp;
cas [%o0], %l0, %l2"); // if (*p = l0) swap([o0], l2);<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;17&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
asm("&nbsp;&nbsp;&nbsp; membar #Lookaside | #LoadLoad | #LoadStore | #StoreLoad");<BR></P>
<P>&nbsp;&nbsp; So please&nbsp;somebody help me for this how can i replace
these instruction to compile the log4cxx<BR><BR><BR>&nbsp;Regards<BR>&nbsp;&nbsp;
Jayant<BR><BR><BR>&nbsp; <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>
Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
    • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message