Thread: [orbitcpp-list] error compiling orbitcpp
Status: Beta
Brought to you by:
philipd
From: Antony S. <an...@mi...> - 2001-05-27 05:07:26
|
Why am i getting these types of bugs when compiling? I have gcc 2.96-0.52 from Mandrake Cooker. Ignore the locale error unless it is relevant to the c++ error. --- [antony@gamut name]$ make /bin/sh ../../libtool --mode=compile c++ -DHAVE_CONFIG_H -I. -I. -I../../orb -I../.. -I../.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include -g -O0 -Wall -c CosNaming.cc rm -f .libs/CosNaming.lo c++ -DHAVE_CONFIG_H -I. -I. -I../../orb -I../.. -I../.. -I/usr/include/glib-1.2 -I/usr/lib/glib/include -I/usr/include -g -O0 -Wall -Wp,-MD,.deps/CosNaming.pp -c CosNaming.cc -fPIC -DPIC perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), LC_MESSAGES = "en_US", LC_TIME = "en_US", LC_NUMERIC = "en_US", LC_CTYPE = "en_US", LC_MONETARY = "en_US", LC_COLLATE = "en_US", LANG = "C" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). CosNaming.cc:352: redefinition of `void _orbitcpp::stub::CosNaming::NamingContext::bind (const Name &, CORBA::Object *)' CosNaming.cc:66: `void _orbitcpp::stub::CosNaming::NamingContext::bind (const Name &, CORBA::Object *)' previously defined here CosNaming.cc:384: redefinition of `void _orbitcpp::stub::CosNaming::NamingContext::rebind (const Name &, CORBA::Object *)' CosNaming.cc:98: `void _orbitcpp::stub::CosNaming::NamingContext::rebind (const Name &, CORBA::Object *)' previously defined here CosNaming.cc:411: redefinition of `void _orbitcpp::stub::CosNaming::NamingContext::bind_context (const Name &, _orbitcpp::stub::CosNaming::NamingContext *)' -- - Antony Suter (an...@mi...) "Exner" openpgp:7916EE67 - "...to condense fact from the vapor of nuance." |
From: Sam C. <sa...@to...> - 2001-05-27 11:56:53
|
Antony Suter <an...@mi...> wrote: >=20 > Why am i getting these types of bugs when compiling? Because your build is screwy for some reason. See below. > I have gcc 2.96-0.52 from Mandrake Cooker. > Ignore the locale error unless it is relevant to the c++ error. It's not, that's just perl. > CosNaming.cc:352: redefinition of `void=20 > _orbitcpp::stub::CosNaming::NamingContext::bind (const Name &,=20 > CORBA::Object *)' > CosNaming.cc:66: `void _orbitcpp::stub::CosNaming::NamingContext::bind=20 > (const Name &, CORBA::Object *)' previously defined here > CosNaming.cc:384: redefinition of `void=20 > _orbitcpp::stub::CosNaming::NamingContext::rebind (const Name &,=20 > CORBA::Object *)' > CosNaming.cc:98: `void=20 > _orbitcpp::stub::CosNaming::NamingContext::rebind (const Name &,=20 > CORBA::Object *)' previously defined here > CosNaming.cc:411: redefinition of `void=20 > _orbitcpp::stub::CosNaming::NamingContext::bind_context (const Name &,=20 > _orbitcpp::stub::CosNaming::NamingContext *)' These errors are ocurring on lines that don't even exist in the file (at least, not in the one that I just generated). I'd say that somehow you've ended up with the file concatenated onto itself, or something equally screwy and confusing. Try doing a make clean (and make sure the CosNaming.cc and CosNaming.hh files get deleted), and make again. You'll only need to make clean from that directory to get it to work, but if that directory is messed up, maybe others are as well. --=20 Sam Couter | Internet Engineer | http://www.topic.com.au/ sa...@to... | tSA Consulting | OpenPGP key ID: DE89C75C, available on key servers OpenPGP fingerprint: A46B 9BB5 3148 7BEA 1F05 5BD5 8530 03AE DE89 C75C |
From: Antony S. <an...@mi...> - 2001-05-27 14:01:29
|
Sam Couter wrote: > > Antony Suter <an...@mi...> wrote: > > > > Why am i getting these types of bugs when compiling? [snip] > Try doing a make clean (and make sure the CosNaming.cc and CosNaming.hh > files get deleted), and make again. You'll only need to make clean from that > directory to get it to work, but if that directory is messed up, maybe > others are as well. On further examination I found passing -j2 to make was causing the problem. I guess multiple processes (on my SMP system) somehow resulted in multiple copies of the data making it into that file. Thanks. -- - Antony Suter (an...@mi...) "Exner" openpgp:7916EE67 - "...to condense fact from the vapor of nuance." |
From: Sam C. <sa...@to...> - 2001-05-27 16:08:22
|
Antony Suter <an...@mi...> wrote: >=20 > On further examination I found passing -j2 to make was causing the > problem. I guess multiple processes (on my SMP system) somehow > resulted in multiple copies of the data making it into that file. That means the dependencies aren't specified correctly. Using the -j option means some dependencies can be built in parallel, but if the Makefiles aren't correct then sometimes stuff breaks. --=20 Sam Couter | Internet Engineer | http://www.topic.com.au/ sa...@to... | tSA Consulting | OpenPGP key ID: DE89C75C, available on key servers OpenPGP fingerprint: A46B 9BB5 3148 7BEA 1F05 5BD5 8530 03AE DE89 C75C |