[Ace-users] [tao-users] Newbie Question: Two different TAO
tutorials end up with this compile error (PRF Form)
De Wit, Anne
ADeWit at raytheon.com.au
Thu Jul 26 01:20:43 CDT 2007
To: tao-bugs at cs.wustl.edu
Subject: [area]: [synopsis]
TAO VERSION: 1.5
ACE VERSION: 5.5
HOST MACHINE and OPERATING SYSTEM:
DELL Power Edge 6650 running Redhat 9.0 (Linux version 2.4.20-6smp)
(gcc version 3.2.2 (Redhat Linux 3.2.2-5))
HP Compaq running Fedore Core 5.0
TARGET MACHINE and OPERATING SYSTEM, if different from HOST:
COMPILER NAME AND VERSION (AND PATCHLEVEL):
DELL rpm gcc-3.2.2-5
HP rpm gcc-4.1.0-3
THE $ACE_ROOT/ace/config.h FILE [if you use a link to a platform-
specific file, simply state which one]: config-linux.h
THE $ACE_ROOT/include/makeinclude/platform_macros.GNU FILE [if you
use a link to a platform-specific file, simply state which one
(unless this isn't used in this case, e.g., with Microsoft Visual
C++)]: platform_linux.GNU
CONTENTS OF $ACE_ROOT/bin/MakeProjectCreator/config/default.features
(used by MPC when you generate your own makefiles):
There is no default.features file. Considering I use
mwc.pl -type gnuace, perhaps gnuace.features is
pertinent? this contains: ssl=1, qt=1,
fl=1, tk=1, xt=1, cidl=1, sctp=1.
AREA/CLASS/EXAMPLE AFFECTED:
AnyTypeCode class. I think.
DOES THE PROBLEM AFFECT:
COMPILATION? No...
If so, what do your $ACE_ROOT/ace/config.h and
$ACE_ROOT/include/makeinclude/platform_macros.GNU contain?
LINKING? Yes
On Unix systems, did you run make realclean first? Yes
EXECUTION? No
OTHER (please specify)? No
[Please indicate whether ACE/TAO, your application, or both are
affected.]
SYNOPSIS:
When attempting to 'make' basic tutorial code, get a "undefined
reference
to to 'vtable for TAO::TypeCode::Objref........."
DESCRIPTION:
Running very basic code as documented in:
http://download.theaceorb.nl/TPG.pdf The Remedy IT Programmers Guide
(Hello World Application)
REPEAT BY:
Error comes up during 'make' process.
SAMPLE FIX/WORKAROUND:
EXTRA INFO:
I just got a response from another employee of our company (Raytheon)
Who states "I think it is due to the way you compiled ACE/TAO and
The example program".
So to help that angle, I will describe the exact steps I used to compile
ACE/TAO:
1. Download & Untar ACE-5.5+TAO-1.5.tar.gz
2. export ACE_ROOT=/root/TAO/ACE_wrappers
export TAO_ROOT=$ACE_ROOT/TAO
export LD_LIBRARY_PATH=$ACE_ROOT/bin:$LD_LIBRARY_PATH
3. Create file $ACE_ROOT/ace/config.h
#include "ace/config-linux.h"
4. Create $ACE_ROOT/include/makeinclude/platform_macros.GNU
include $(ACE_ROOT)/include/makeinclude/platform_linux.GNU
5. Build ACE Libraries
$ACE_ROOT/ace/make (this is quick)
6. Build gperf application
$ACE_ROOT/apps/gperf/src/make
7. Build TAO libraries
$TAO_ROOT/make (this takes forever)
"This email (including all attachments) is for the use of the named addressee only. You must not use, disclose, or copy any part of this email if you are not the intended recipient. No rights of privacy, confidentiality, copyright or privilege are waived or lost by any mistransmission. If you receive this email in error, please immediately delete it from your system, destroy all copies, and notify the sender. Emails may be interfered with, may contain computer viruses or other defects, and may cause damage to your system. Raytheon gives no warranty in relation to the effect of this email on your system, or the accuracy or completeness of its contents."
More information about the Ace-users
mailing list