[Pkg-ace-devel] More on your bug
Thomas Girard
thomas.g.girard@free.fr
Fri, 05 Nov 2004 09:12:53 +0100
Hello Joel,
I've made more investigation on your bug, and I'm now pretty sure
this is a TAO bug and not a packaging bug.
In your first mail you said the bug did not exhibit using a
hand-compiled TAO. Assuming you had been using the latest beta kit, I've
tried this myself. You example file did compiled. But *only* under some
circumstances. Here's what I've done:
tgg@aspire:/S$ tar xvfz ~/Download/ACE+TAO+CIAO.tar.gz
[...]
tgg@aspire:/S$ cd ACE_wrappers
(Here, I've prepared ACE for compilation (i.e. symlink config.h and
platform_macros.GNU). Also set ACE_ROOT, TAO_ROOT and
LD_LIBRARY_PATH)
tgg@aspire:/S/ACE_wrappers$ echo $ACE_ROOT ; echo $TAO_ROOT
/S/ACE_wrappers
/S/ACE_wrappers/TAO
tgg@aspire:/S/ACE_wrappers$ echo $LD_LIBRARY_PATH
/S/ACE_wrappers/lib
tgg@aspire:/S/ACE_wrappers$ make
[...]
tgg@aspire:/S/ACE_wrappers$ cd TAO
tgg@aspire:/S/ACE_wrappers/TAO$ make
[...]
tgg@aspire:/S/ACE_wrappers/TAO$ $ACE_ROOT/bin/tao_idl
-I$TAO_ROOT/orbsvcs /tmp/firsttry.idl
(This works fine in $TAO_ROOT)
tgg@aspire:/S/ACE_wrappers/TAO$ cd ..
tgg@aspire:/S/ACE_wrappers$ $ACE_ROOT/bin/tao_idl -I$TAO_ROOT/orbsvcs
/tmp/firsttry.idl
(This *does* exhibit the bug you're reporting)
So it seemed to me that your example only compiles in $TAO_ROOT. Let's
test with our Debian package:
tgg@aspire$ export ACE_ROOT=/usr/share/ace
tgg@aspire$ export TAO_ROOT=$ACE_ROOT/TAO
tgg@aspire$ unset LD_LIBRARY_PATH
tgg@aspire$ cd $TAO_ROOT
tgg@aspire:/usr/share/ace/TAO$ su
Password: ******
(We have to become root, because we don't have write right in
/usr/share/ace/TAO)
root@aspire:/usr/share/ace/TAO# tao_idl -I$TAO_ROOT/orbsvcs
/tmp/firsttry.idl
(It works)
That's it. I agree that the error message is very unclear about that,
but this only a -I issue.
In other words, if you add `-I$TAO_ROOT' to you tao_idl, it works.
Thomas