HOST MACHINE and OPERATING SYSTEM: SGI - Irix 6.5
COMPILER NAME AND VERSION (AND PATCHLEVEL): MIPSPro v.7.41
CONTENTS OF $ACE_ROOT/ace/config.h [if you use a link to a platform- specific file, simply state which one]:
ln -s config_irix6.5.x-sgic++.h config.h
CONTENTS OF $ACE_ROOT/include/makeinclude/platform_macros.GNU (unless this isn't used in this case, e.g., with Microsoft Visual C++):
ln -s platform_irix6.x-sgic++.GNU platform_macros.GNU
AREA/CLASS/EXAMPLE AFFECTED:
Use of ACE_Svc_Handler with ACE_SOCK_Dgrams
DOES THE PROBLEM AFFECT: COMPILATION? LINKING?
Unable to compile
EXECUTION? OTHER (please specify)?
Application using ACE affected
SYNOPSIS:
ACE_SOCK_Dgram, ACE_SOCK_Dgram_Bcast, and ACE_SOCK_Dgram_Mcast don't have macros defined like ACE_SOCK_Stream has ACE_SOCK_STREAM
DESCRIPTION:
Get compile errors complaining about the number of template arguments given to ACE_Svc_Handler. For ACE_SOCK_Stream, this is resolved with the macro
ACE_SOCK_STREAM, which on this platform is defined as ACE_SOCK_Stream, ACE_INET_Addr. There is no such macro for ACE_SOCK_Dgrams
SAMPLE FIX/WORKAROUND: [If available ]
In ace/Global_Macros.h, Added
# define ACE_SOCK_DGRAM ACE_SOCK_Dgram
# define ACE_SOCK_DGRAM_BCAST ACE_SOCK_Dgram_Bcast
# define ACE_SOCK_DGRAM_MCAST ACE_SOCK_Dgram_Mcast
and
# define ACE_SOCK_DGRAM ACE_SOCK_Dgram, ACE_INET_Addr
# define ACE_SOCK_DGRAM_BCAST ACE_SOCK_Dgram_Bcast, ACE_INET_Addr
# define ACE_SOCK_DGRAM_MCAST ACE_SOCK_Dgram_Mcast, ACE_INET_Addr
in the approprate sections (Right after the definitions for ACE_SOCK_*)
These macros seemed to work under both the operating system/compilers noted above as well as RedHat Linux 8.0 (3.2-7) and gcc v.3.2
Brian J. Waltersdorf
Embedded Software Engineer
Boeing Virtual Warfare Center
P.O. Box 516 MC S064-1411
St. Louis, MO 63166-0516
Telephone 314-232-6052
Fax 314-777-5144
brian.j.w...@boeing.com
Thanks for using the PRF.
I've added this, thanks! Ossama, can I please have permission to
check in this fix?
Thanks,
Doug
--
Dr. Douglas C. Schmidt, Professor TEL: (615) 343-8197
Electrical Engineering and Computer Science FAX: (615) 343-7440
Vanderbilt University WEB: www.cs.wustl.edu/~schmidt/
Nashville, TN 37203 NET: d.sc...@vanderbilt.edu
On Fri, 2004-07-09 at 19:25, Douglas C. Schmidt wrote:
> I've added this, thanks! Ossama, can I please have permission to
> check in this fix?
Sure. Thanks for asking! You still have access so please go ahead.
Thanks,
-Ossama
--
Ossama Othman <ossama @ dre . vanderbilt . edu>
1024D/F7A394A8 - 84ED AA0B 1203 99E4 1068 70E6 5EB7 5E71 F7A3 94A8