f



[ace-users] Compiling ACE 5.3 with GCC 3.4.3

Hi,

I'm a newbie to ACE and this is my 1st posting to this alias, and would
appreciate any help.

I have a requirement to use ACE 5.3 on Solaris 10 SPARC.  I had followed
the building & installation information on ACE website to the letter and
had no problems compiling it with Sun Studio 11.

However, when I tried compiling it with GCC 3.4.3, I'm swamped with a
host of problems.  Being a newbie to ACE, I'm wondering 

a) if I'm setting the right config.h/platform_macros.GNU for GCC
compile; 
b) if I should be trying add flags into these files to get it to
compile.

Any pointers or advice is sincerely appreciated.


Thanks in advance.

Best Regards,
/SengQuee

-------- config.h for Studio 11 -----
#include "ace/config-sunos5.9.h"

-------- platform_macros.GNU for Studio 11 -----
include $(ACE_ROOT)/include/makeinclude/platform_sunos5_sunc++.GNU


-------- config.h for GCC 3.4.3 --------
#include "ace/config-sunos5.4-g++.h"

-------- platform_macros.GNU for GCC 3.4.3 ---------
include $(ACE_ROOT)/include/makeinclude/platform_sunos5_g++.GNU

--------- Compilation output with GCC ------------------------------
gmake[1]: Entering directory `/export/sw-images/ace/ACE_wrappers/ace'
g++ -W -Wall -Wpointer-arith -pipe  -O3 -g    -fno-exceptions
-fcheck-new -D_REENTRANT  -I/export/sw-images/ace/ACE_wrappers
-DACE_BUILD_DLL -DACE_OS_BUILD_DLL  -c -fPIC -o .shobj/Basic_Types.o
Basic_Types.cpp
In file included from
/export/sw-images/ace/ACE_wrappers/ace/OS_Dirent.h:130,
                 from /export/sw-images/ace/ACE_wrappers/ace/OS.h:31,
                 from Basic_Types.cpp:1:
/export/sw-images/ace/ACE_wrappers/ace/OS_Dirent.inl: In static member
function `static int ACE_OS_Dirent::readdir_r(ACE_DIR*, dirent*,
dirent**)':
/usr/include/dirent.h:175: error: too few arguments to function `int
readdir_r(DIR*, dirent*, dirent**)'
/export/sw-images/ace/ACE_wrappers/ace/OS_Dirent.inl:124: error: at this
point in file
/export/sw-images/ace/ACE_wrappers/ace/OS_Dirent.inl:124: error: invalid
conversion from `int' to `dirent*'
In file included from /export/sw-images/ace/ACE_wrappers/ace/OS.h:6979,
                 from Basic_Types.cpp:1:
/export/sw-images/ace/ACE_wrappers/ace/OS.i: In static member function
`static int ACE_OS::sigwait(sigset_t*, int*)':
/usr/include/signal.h:201: error: too few arguments to function `int
sigwait(const sigset_t*, int*)'
/export/sw-images/ace/ACE_wrappers/ace/OS.i:6966: error: at this point
in file

.... 
----------------------------------------------------------------------


0
Seng
2/7/2007 1:59:56 AM
comp.soft-sys.ace 20326 articles. 1 followers. marlow.andrew (167) is leader. Post Follow

0 Replies
782 Views

Similar Articles

[PageSpeed] 58

Reply: