libbonobo install fails - due to bad ORBit output?
Richard Schilling
rschi at rsmba.biz
Thu Feb 26 14:55:49 PST 2004
Trying to install /usr/ports/devel/libbonobo, and it fails on `make
install'.
Looks like the cause of the install error has to do with the code that is
generated by orbit-idl-2:
/usr/local/bin/orbit-idl-2 -I../idl "-D__Bonobo_GenericFactory_COMPILATION" --deps ./.deps/Bonobo_GenericFactory.idl.P ../idl/Bonobo_GenericFactory.idl
On `make install' in the bonobo package, I get this error:
(rm -f Bonobo_ActivationContext.h Bonobo_ActivationContext-stubs.c Bonobo_ActivationContext-skels.c Bonobo_ActivationContext-common.c Bonobo_ActivationContext-imodule.c Bonobo_ActivationContext-skelimpl.c || true) > /dev/null
/usr/local/bin/orbit-idl-2 -I../idl "-D__Bonobo_ActivationContext_COMPILATION" --deps ./.deps/Bonobo_ActivationContext.idl.P ../idl/Bonobo_ActivationContext.idl
orbit-idl-2 2.8.3 compiling
And here is the last 50 lines of the install output (notice the syntax
error in Bonobo_GenericFactory.h
mode, show preprocessor errors, passes: stubs skels common headers skel_impl imodule
source='Bonobo_Unknown-common.c' object='Bonobo_Unknown-common.lo' libtool=yes \
depfile='.deps/Bonobo_Unknown-common.Plo' tmpdepfile='.deps/Bonobo_Unknown-common.TPlo' \
depmode=gcc /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -DSERVER_LIBEXECDIR=\""/usr/local/libexec\"" -DBONOBO_ACTIVATION_LOCALEDIR=\""/usr/local/share/locale"\" -DORBIT2=1 -D_THREAD_SAFE -I/usr/local/include/orbit-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DVERSION=\"2.4.3\" -DG_DISABLE_DEPRECATED -I/usr/local/include -O -pipe -c -o Bonobo_Unknown-common.lo `test -f 'Bonobo_Unknown-common.c' || echo './'`Bonobo_Unknown-common.c
cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -DSERVER_LIBEXECDIR=\"/usr/local/libexec\" -DBONOBO_ACTIVATION_LOCALEDIR=\"/usr/local/share/locale\" -DORBIT2=1 -D_THREAD_SAFE -I/usr/local/include/orbit-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DVERSION=\"2.4.3\" -DG_DISABLE_DEPRECATED -I/usr/local/include -O -pipe -c Bonobo_Unknown-common.c -Wp,-MD,.deps/Bonobo_Unknown-common.TPlo -fPIC -DPIC -o .libs/Bonobo_Unknown-common.o
cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -DSERVER_LIBEXECDIR=\"/usr/local/libexec\" -DBONOBO_ACTIVATION_LOCALEDIR=\"/usr/local/share/locale\" -DORBIT2=1 -D_THREAD_SAFE -I/usr/local/include/orbit-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DVERSION=\"2.4.3\" -DG_DISABLE_DEPRECATED -I/usr/local/include -O -pipe -c Bonobo_Unknown-common.c -Wp,-MD,.deps/Bonobo_Unknown-common.TPlo -o Bonobo_Unknown-common.o >/dev/null 2>&1
echo "top_srcdir: .."
top_srcdir: ..
echo "IDL_DIR: ../idl/"
IDL_DIR: ../idl/
echo "IDL file: ../bonobo-activation/../idl/Bonobo_Unknown.idl"
IDL file: ../bonobo-activation/../idl/Bonobo_Unknown.idl
(rm -f ../bonobo-activation/Bonobo_Unknown.h ../bonobo-activation/Bonobo_Unknown-stubs.c ../bonobo-activation/Bonobo_Unknown-skels.c ../bonobo-activation/Bonobo_Unknown-common.c ../bonobo-activation/Bonobo_Unknown-imodule.c ../bonobo-activation/Bonobo_Unknown-skelimpl.c || true) > /dev/null
/usr/local/bin/orbit-idl-2 -I../idl "-D__../bonobo-activation/Bonobo_Unknown_COMPILATION" --deps ../bonobo-activation/.deps/Bonobo_Unknown.idl.P ../bonobo-activation/../idl/Bonobo_Unknown.idl
:0: malformed option `-D __../bonobo-activation/Bonobo_Unknown_COMPILATION'
orbit-idl-2 2.8.3 compiling
mode, show preprocessor errors, passes: stubs skels common headers skel_impl imodule
echo "top_srcdir: .."
top_srcdir: ..
echo "IDL_DIR: ../idl/"
IDL_DIR: ../idl/
echo "IDL file: ../bonobo-activation/../idl/Bonobo_Activation_types.idl"
IDL file: ../bonobo-activation/../idl/Bonobo_Activation_types.idl
(rm -f ../bonobo-activation/Bonobo_Activation_types.h ../bonobo-activation/Bonobo_Activation_types-stubs.c ../bonobo-activation/Bonobo_Activation_types-skels.c ../bonobo-activation/Bonobo_Activation_types-common.c ../bonobo-activation/Bonobo_Activation_types-imodule.c ../bonobo-activation/Bonobo_Activation_types-skelimpl.c || true) > /dev/null
/usr/local/bin/orbit-idl-2 -I../idl "-D__../bonobo-activation/Bonobo_Activation_types_COMPILATION" --deps ../bonobo-activation/.deps/Bonobo_Activation_types.idl.P ../bonobo-activation/../idl/Bonobo_Activation_types.idl
:0: malformed option `-D __../bonobo-activation/Bonobo_Activation_types_COMPILATION'
orbit-idl-2 2.8.3 compiling
mode, show preprocessor errors, passes: stubs skels common headers skel_impl imodule
source='Bonobo_GenericFactory-common.c' object='Bonobo_GenericFactory-common.lo' libtool=yes \
depfile='.deps/Bonobo_GenericFactory-common.Plo' tmpdepfile='.deps/Bonobo_GenericFactory-common.TPlo' \
depmode=gcc /bin/sh ../depcomp \
/bin/sh ../libtool --mode=compile cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -DSERVER_LIBEXECDIR=\""/usr/local/libexec\"" -DBONOBO_ACTIVATION_LOCALEDIR=\""/usr/local/share/locale"\" -DORBIT2=1 -D_THREAD_SAFE -I/usr/local/include/orbit-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DVERSION=\"2.4.3\" -DG_DISABLE_DEPRECATED -I/usr/local/include -O -pipe -c -o Bonobo_GenericFactory-common.lo `test -f 'Bonobo_GenericFactory-common.c' || echo './'`Bonobo_GenericFactory-common.c
cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -DSERVER_LIBEXECDIR=\"/usr/local/libexec\" -DBONOBO_ACTIVATION_LOCALEDIR=\"/usr/local/share/locale\" -DORBIT2=1 -D_THREAD_SAFE -I/usr/local/include/orbit-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -DVERSION=\"2.4.3\" -DG_DISABLE_DEPRECATED -I/usr/local/include -O -pipe -c Bonobo_GenericFactory-common.c -Wp,-MD,.deps/Bonobo_GenericFactory-common.TPlo -fPIC -DPIC -o .libs/Bonobo_GenericFactory-common.o
In file included from Bonobo_GenericFactory-common.c:9:
Bonobo_GenericFactory.h:108: syntax error before `POA_Bonobo_Unknown__epv'
gmake[2]: *** [Bonobo_GenericFactory-common.lo] Error 1
gmake[2]: Leaving directory `/bugs/ports/devel/libbonobo/work/libbonobo-2.4.3/bonobo-activation'
gmake[1]: *** [install] Error 2
gmake[1]: Leaving directory `/bugs/ports/devel/libbonobo/work/libbonobo-2.4.3/bonobo-activation'
gmake: *** [install-recursive] Error 1
*** Error code 2
Stop in /bugs/ports/devel/libbonobo.
Any one have a clue as to why the code OBRit generates code causes this
error?
To make things worse, I don't see any problem with the code itself:
/*
* This file was generated by orbit-idl-2 - DO NOT EDIT!
*/
/** code omitted for brevity **/
/** Line 108, where the syntax error occurs, is marked below **/
/** POA structures **/
#ifndef _defined_POA_Bonobo_GenericFactory
#define _defined_POA_Bonobo_GenericFactory 1
typedef struct {
void *_private;
CORBA_Object (*createObject)(PortableServer_Servant _servant, const CORBA_char * iid, CORBA_Environment *ev);
} POA_Bonobo_GenericFactory__epv;
typedef struct {
PortableServer_ServantBase__epv *_base_epv;
/** LINE 108 **/ POA_Bonobo_Unknown__epv *Bonobo_Unknown_epv;
POA_Bonobo_GenericFactory__epv *Bonobo_GenericFactory_epv;
} POA_Bonobo_GenericFactory__vepv;
typedef struct {
void *_private;
POA_Bonobo_GenericFactory__vepv *vepv;
} POA_Bonobo_GenericFactory;
extern void POA_Bonobo_GenericFactory__init(PortableServer_Servant servant, CORBA_Environment *ev);
extern void POA_Bonobo_GenericFactory__fini(PortableServer_Servant servant, CORBA_Environment *ev);
#endif /* _defined_POA_Bonobo_GenericFactory */
Richard Schilling
More information about the freebsd-stable
mailing list