[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: mico 2.2.6 ? doesn't compile for me - here's the fix
From:       Russell Coker <russell () coker ! com ! au>
Date:       1999-05-24 16:37:18
[Download RAW message or body]

On Fri, 21 May 1999, David Faure wrote:
> in mico/idl :
> 
> c++  -DCPP=\"mico-cpp\" -I. -I../include -O   -fno-exceptions -fexceptions -O0 -L. \
> -L../orb -L/usr/local/lib  -rdynamic main.o  -lidl -lmico2.2.6 -lreadline -lncurses \
>                 -ldl -lelf -lbsd -lm   -o idl
> ../orb/libmico2.2.6.so: undefined reference to \
>                 `CORBA::StringValue_Factory::CORBA::ValueFactoryBase virtual table'
> .../orb/libmico2.2.6.so: undefined reference to \
>                 `CORBA::WStringValue_Factory::CORBA::ValueFactoryBase virtual \
>                 table'
> ccollect2: ld returned 1 exit status
> make[1]: *** [idl] Error 1
> 
> Anyone experienced this ?

Apply the attached patch and mico-2.2.6 will compile with --enable-final.  I
have sent this patch to the MICO bug-reporting email address and I expect that
it will be incorporated into future releases.

This is the problem with enable-final functionality, when you change the
names of source files or add new files you also have to change the file which
includes them (I've been bitten by this last time I tried using such features
in my own projects).
I think that the solution might be to have the file which includes the rest be
partially generated automatically.  If you have two files in each source
directory called final-first and final-last containing lists of source files
which should be first and last respectively in the list to be included (these
things always seem to have some order dependencies) then it wouldn't be
difficult to write a little Perl script to include things in that order and
have unlisted files included in alphabetical order in the middle.


PS  FWIW, I had my laptop compiling non-stop for about 6 hours while I worked
on this MICO problem - a MICO build takes me about 2 hours...

--
I am in London and would like to meet any Linux users here.
I plan to work in London until April and then move to another
place where the pay is good.


["bug-fix.diff" (text/x-c)]

diff -ru mico-old/orb/orb_all.cc mico-new/orb/orb_all.cc
--- mico-old/orb/orb_all.cc	Sun May 23 18:13:04 1999
+++ mico-new/orb/orb_all.cc	Sun May 23 18:13:47 1999
@@ -33,3 +33,5 @@
 #include "ioptypes.cc"
 #include "ssliop.cc"
 #include "CORBA-c.cc"
+#include "valuetype.cc"
+#include "valuetype_impl.cc"


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic