Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
camlidl test build failure Re: [Caml-list] CamlIDL question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-11-01 (21:57)
From: Igor Pechtchanski <pechtcha@c...>
Subject: Re: camlidl test build failure Re: [Caml-list] CamlIDL question
On Thu, 27 Oct 2005, Kip Macy wrote:

> the tests in camlidl-1.0.5 won't build:
> > ocamlc -v
> The Objective Caml compiler, version 3.08.2
> Standard library directory: /usr/local/lib/ocaml
> > cpp --version
> cpp (GCC) 3.4.4 [FreeBSD] 20050518
> Copyright (C) 2004 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> > make
> ocamlc -I ../lib -cc cc -custom -o testcomp com.cmo comcomp.o component.o component.cmo testcomponent.cmo ../runtime/libcamlidl.a
Since nobody replied, I'll take a stab at it.  Shouldn't the above line be

ocamlc -I ../lib -cc g++ -custom -o testcomp com.cmo comcomp.o component.o component.cmo testcomponent.cmo ../runtime/libcamlidl.a

at least?  All of the errors below look like they stem from the fact that
"cc" is used to compile C++ code (newer GCCs are stricter in this regard).

BTW, "cpp" is the C preprocessor, not the C++ compiler -- why do you think
its version is relevant?

> comcomp.o(.text+0xd): In function `create_instance':/home/kmacy/camlidl-1.05/tests/comcomp.cpp:115: undefined reference to `operator new(unsigned int)'
> comcomp.o(.gnu.linkonce.r._ZTV2IY+0x8):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:115: undefined reference to `__cxa_pure_virtual'
> comcomp.o(.gnu.linkonce.r._ZTV2IY+0xc):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:115: undefined reference to `__cxa_pure_virtual'
> comcomp.o(.gnu.linkonce.r._ZTV2IY+0x10):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:122: undefined reference to `__cxa_pure_virtual'
> comcomp.o(.gnu.linkonce.r._ZTV2IY+0x14):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:122: undefined reference to `__cxa_pure_virtual'
> comcomp.o(.gnu.linkonce.r._ZTV2IY+0x18):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:122: undefined reference to `__cxa_pure_virtual'
> comcomp.o(.gnu.linkonce.r._ZTV2IY+0x1c):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:106: more undefined references to `__cxa_pure_virtual' follow
> comcomp.o(.gnu.linkonce.t._ZN2CA7ReleaseEv+0x6b): In function `CA::Release()':/home/kmacy/camlidl-1.05/tests/comcomp.cpp:148: undefined reference to `operator delete(void*)'
> comcomp.o(.gnu.linkonce.r._ZTI8IUnknown+0x0): undefined reference to `vtable for __cxxabiv1::__class_type_info'
> comcomp.o(.gnu.linkonce.r._ZTI2IX+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
> comcomp.o(.gnu.linkonce.r._ZTI2IY+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
> comcomp.o(.gnu.linkonce.r._ZTI2CA+0x0): undefined reference to `vtable for __cxxabiv1::__vmi_class_type_info'
> comcomp.o(.eh_frame+0x11):/home/kmacy/camlidl-1.05/tests/comcomp.cpp:122: undefined reference to `__gxx_personality_v0'
> Error while building custom runtime system
> *** Error code 2

      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

If there's any real truth it's that the entire multidimensional infinity
of the Universe is almost certainly being run by a bunch of maniacs. /DA