[Fresco-devel] Problems compiling sample code

Sean Rae <[email protected]>
Newsgroups gmane.comp.video.fresco.devel
Message-ID <[email protected]>
I'm sending this to both the fresco and omniorb lists because the sample
code is from the fresco configure script but I'm guessing that it's more
of an omniORB (or, more likely, user error) problem.  The configure (in
config/Warsaw/configure) script tries to compile with the string:

g++ -o conftest -g -O2 blah.cxx -lpthread -lomnithread

where blah.cxx is:
#include "confdefs.h"
#include <omnithread.h>

int main()
{
  omni_mutex my_mutex;
  return 0;
}

and the error it spits out is:
from blah.cxx's line 6: 
 "undefined reference to 'omni_mutex::omni_mutex[in-charge]()"
and from line 7:
 "undefined reference to 'omni_mutex::~omni_mutex [in-charge]()"
then I get an error from the __status_initialization_and_destruction_0
function from like 541 in omnithread.h:
 "undefined reference to 'omni_thread::init_t::init_t[in-charge]()'

but my "ldconfig -v | grep omni" yields:
  libomnithread.so.2 -> libomnithread.so.2.1
  libomniORB3.so.0 -> libomniORB3.so.0.5
  libomniDynamic3.so.0 -> libomniDynamic.so.0.5

so it looks like the libraries are installed but there's just an actual
linking problem, like it can't find those construct/destructor symbols.
I did some installing/uninstalling but from what I can tell, I have a
(possibly nonworking) omniORB 3.0.5 installed.  Oh yeah, the only thing
that is still nonworking is when I run 'nameclt list' I get
"list: Cannot contact the Naming Service because of COMM_FAILURE."

But whenever I run omniNames manually it spits out a Root Context
IOR:a135135 etc etc like it should.  Any help will be appreciated.  :)


 - - - - - - - - - - - - - - - - - -
           Sean Rae / es9
        cool and calculating
       www.birdnest.org/raes1
 - - - - - - - - - - - - - - - - - -
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.