<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.14.1">
</HEAD>
<BODY>
I've finally dealt with all the other problems.<BR>
<BR>
I've successfully compiled ACE for vxworks ( not tested yet). But now I have a problem compiling TAO it reports me an error:<BR>
<BR>
<TT>GNUmakefile: /home/jr-simoes/Applications/ACE_wrappers/TAO/tao/GNUmakefile.TAO MAKEFLAGS=w</TT><BR>
<BR>
<TT>/usr/local/bin/tao_idl -Wb,pre_include=ace/pre.h -Wb,post_include=ace/post.h -I.. -g /usr/local/bin/gperf -Wb,versioning_begin=TAO_BEGIN_VERSIONED_NAMESPACE_DECL </TT><BR>
<TT>-Wb,versioning_end=TAO_END_VERSIONED_NAMESPACE_DECL -SS -Sorb -GA -Gp -Gd -oA AnyTypeCode -Wb,export_macro=TAO_Export -Wb,export_include=tao/TAO_Export.h </TT><BR>
<TT>-Wb,anyop_export_macro=TAO_AnyTypeCode_Export -Wb,anyop_export_include=tao/AnyTypeCode/TAO_AnyTypeCode_Export.h GIOP.pidl</TT><BR>
<TT>IDL: I don't understand the '-Sorb' option</TT><BR>
<TT>make[1]: *** [GIOPC.h] Error 99</TT><BR>
<TT>make[1]: Leaving directory </TT><BR>
<TT>`/home/jr-simoes/Applications/ACE_wrappers/TAO/tao'</TT><BR>
<TT>make: *** [TAO] Error 2</TT><BR>
<BR>
Since it reports that it doesn't have the -Sorb option I run tao_idl --help and checked if the option was there or not. Did this option change? Is there any other problem.<BR>
<BR>
Kind Regards.<BR>
<BR>
On Mon, 2007-06-18 at 08:29 -0700, Thomas Lockhart wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">&gt; I've downloaded the correct sources and stated building ACE and TAO but </FONT>
<FONT COLOR="#000000">&gt; now it fails when compiling with this error:</FONT>
<FONT COLOR="#000000">...</FONT>
<FONT COLOR="#000000">&gt; g++    -I/home/jr-simoes/Applications/ACE_wrappers -DACE_NDEBUG </FONT>
<FONT COLOR="#000000">&gt; -DACE_USE_RCSID=0 -DACE_HAS_EXCEPTIONS -D__ACE_INLINE__ -I.. </FONT>
<FONT COLOR="#000000">&gt; -DACE_BUILD_DLL  -c  -o .shobj/Dirent.o Dirent.cpp</FONT>
<FONT COLOR="#000000">&gt; /usr/include/dirent.h: In function &#8216;int ACE_OS::readdir_r(ACE_DIR*, </FONT>
<FONT COLOR="#000000">&gt; dirent*, dirent**)&#8217;:</FONT>
<FONT COLOR="#000000">&gt; /usr/include/dirent.h:187: error: too few arguments to function &#8216;int </FONT>
<FONT COLOR="#000000">&gt; readdir_r(DIR*, dirent*, dirent**)&#8217;</FONT>

<FONT COLOR="#000000">You (probably) have the wrong compiler. And definitely have the wrong </FONT>
<FONT COLOR="#000000">include files. You might note the complaint about /usr/include/dirent.h, </FONT>
<FONT COLOR="#000000">but /usr/include should not show up in your build since everything </FONT>
<FONT COLOR="#000000">should be coming from your VxWorks installation.</FONT>

<FONT COLOR="#000000">I'm not sure what your cross-compiler is called, but plain &quot;g++&quot; is </FONT>
<FONT COLOR="#000000">probably not the right thing. For my PPC targets, the compiler is called </FONT>
<FONT COLOR="#000000">&quot;c++ppc&quot;. The implicit use of /usr/include in your search path is </FONT>
<FONT COLOR="#000000">probably coming from /usr/bin/g++.</FONT>

<FONT COLOR="#000000">hth</FONT>

<FONT COLOR="#000000">                      - Tom</FONT>

</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<H1>
<B><S><FONT SIZE="5"><FONT COLOR="#969696">_________________________</FONT></FONT></S></B>
</H1>
<B><FONT SIZE="4">Jos&#233; Rui Sim&#245;es</FONT></B> 
<H4>
<B><I><TT><FONT COLOR="#808080">Junior Engineer</FONT></TT></I></B>
</H4>
<BR>
<B><FONT SIZE="4"><FONT COLOR="#dc0000">Critical Software, SA</FONT></FONT></B><BR>
<FONT COLOR="#808080">Parque Industrial de Taveiro, Lote 48</FONT><BR>
<FONT COLOR="#808080">3045-504 Coimbra, Portugal</FONT><BR>
<FONT COLOR="#808080">Tel:+351.239 989 100 Fax:+351.239 989 119</FONT><BR>
<A HREF="http://www.criticalsoftware.com/">http://www.criticalsoftware.com</A><BR>
<A HREF="mailto:jose-r-simoes%40criticalsoftware.com">jose-r-simoes@criticalsoftware.com</A><BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>