Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Feb 2004 18:22:54 -0500
From:      Joe Marcus Clarke <marcus@marcuscom.com>
To:        rschi@rsmba.biz
Cc:        freebsd-stable@freebsd.org
Subject:   Re: libbonobo install fails - due to bad ORBit output?
Message-ID:  <1077837774.45850.14.camel@shumai.marcuscom.com>
In-Reply-To: <20040226143906.B26403@localhost.foghorn.dmz.rsmba.biz>
References:  <20040226143906.B26403@localhost.foghorn.dmz.rsmba.biz>

next in thread | previous in thread | raw e-mail | index | archive | help

--=-SbLvPS4p+7XL9/OpvsgF
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Thu, 2004-02-26 at 17:55, Richard Schilling wrote:
> Trying to install /usr/ports/devel/libbonobo, and it fails on `make
> install'.
>=20
> Looks like the cause of the install error has to do with the code that is
> generated by orbit-idl-2:
>=20
> /usr/local/bin/orbit-idl-2 -I../idl "-D__Bonobo_GenericFactory_COMPILATIO=
N" --deps ./.deps/Bonobo_GenericFactory.idl.P ../idl/Bonobo_GenericFactory.=
idl
>=20
>=20
> On `make install' in the bonobo package, I get this error:
>=20
> (rm -f Bonobo_ActivationContext.h Bonobo_ActivationContext-stubs.c Bonobo=
_ActivationContext-skels.c Bonobo_ActivationContext-common.c Bonobo_Activat=
ionContext-imodule.c Bonobo_ActivationContext-skelimpl.c || true) > /dev/nu=
ll
> /usr/local/bin/orbit-idl-2 -I../idl "-D__Bonobo_ActivationContext_COMPILA=
TION" --deps ./.deps/Bonobo_ActivationContext.idl.P ../idl/Bonobo_Activatio=
nContext.idl
> orbit-idl-2 2.8.3 compiling
>=20
> And here is the last 50 lines of the install output (notice the syntax
> error in Bonobo_GenericFactory.h
>=20
>=20
>   mode, show preprocessor errors, passes: stubs skels common headers skel=
_impl imodule
>=20
> source=3D'Bonobo_Unknown-common.c' object=3D'Bonobo_Unknown-common.lo' li=
btool=3Dyes \
> depfile=3D'.deps/Bonobo_Unknown-common.Plo' tmpdepfile=3D'.deps/Bonobo_Un=
known-common.TPlo' \
> depmode=3Dgcc /bin/sh ../depcomp \
> /bin/sh ../libtool --mode=3Dcompile cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. =
-I.. -DSERVER_LIBEXECDIR=3D\""/usr/local/libexec\"" -DBONOBO_ACTIVATION_LOC=
ALEDIR=3D\""/usr/local/share/locale"\" -DORBIT2=3D1 -D_THREAD_SAFE -I/usr/l=
ocal/include/orbit-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-=
2.0/include   -DVERSION=3D\"2.4.3\" -DG_DISABLE_DEPRECATED   -I/usr/local/i=
nclude  -O -pipe  -c -o Bonobo_Unknown-common.lo `test -f 'Bonobo_Unknown-c=
ommon.c' || echo './'`Bonobo_Unknown-common.c
>  cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -DSERVER_LIBEXECDIR=3D\"/usr/l=
ocal/libexec\" -DBONOBO_ACTIVATION_LOCALEDIR=3D\"/usr/local/share/locale\" =
-DORBIT2=3D1 -D_THREAD_SAFE -I/usr/local/include/orbit-2.0 -I/usr/local/inc=
lude/glib-2.0 -I/usr/local/lib/glib-2.0/include -DVERSION=3D\"2.4.3\" -DG_D=
ISABLE_DEPRECATED -I/usr/local/include -O -pipe -c Bonobo_Unknown-common.c =
-Wp,-MD,.deps/Bonobo_Unknown-common.TPlo  -fPIC -DPIC -o .libs/Bonobo_Unkno=
wn-common.o
>  cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -DSERVER_LIBEXECDIR=3D\"/usr/l=
ocal/libexec\" -DBONOBO_ACTIVATION_LOCALEDIR=3D\"/usr/local/share/locale\" =
-DORBIT2=3D1 -D_THREAD_SAFE -I/usr/local/include/orbit-2.0 -I/usr/local/inc=
lude/glib-2.0 -I/usr/local/lib/glib-2.0/include -DVERSION=3D\"2.4.3\" -DG_D=
ISABLE_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/n=
ull 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-activ=
ation/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_Unkn=
own_COMPILATION" --deps ../bonobo-activation/.deps/Bonobo_Unknown.idl.P ../=
bonobo-activation/../idl/Bonobo_Unknown.idl
> :0: malformed option `-D __../bonobo-activation/Bonobo_Unknown_COMPILATIO=
N'
> orbit-idl-2 2.8.3 compiling
>   mode, show preprocessor errors, passes: stubs skels common headers skel=
_impl imodule
>=20
> 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-activatio=
n/Bonobo_Activation_types-stubs.c ../bonobo-activation/Bonobo_Activation_ty=
pes-skels.c ../bonobo-activation/Bonobo_Activation_types-common.c ../bonobo=
-activation/Bonobo_Activation_types-imodule.c ../bonobo-activation/Bonobo_A=
ctivation_types-skelimpl.c || true) > /dev/null
> /usr/local/bin/orbit-idl-2 -I../idl "-D__../bonobo-activation/Bonobo_Acti=
vation_types_COMPILATION" --deps ../bonobo-activation/.deps/Bonobo_Activati=
on_types.idl.P ../bonobo-activation/../idl/Bonobo_Activation_types.idl
> :0: malformed option `-D __../bonobo-activation/Bonobo_Activation_types_C=
OMPILATION'
> orbit-idl-2 2.8.3 compiling
>   mode, show preprocessor errors, passes: stubs skels common headers skel=
_impl imodule
>=20
> source=3D'Bonobo_GenericFactory-common.c' object=3D'Bonobo_GenericFactory=
-common.lo' libtool=3Dyes \
> depfile=3D'.deps/Bonobo_GenericFactory-common.Plo' tmpdepfile=3D'.deps/Bo=
nobo_GenericFactory-common.TPlo' \
> depmode=3Dgcc /bin/sh ../depcomp \
> /bin/sh ../libtool --mode=3Dcompile cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. =
-I.. -DSERVER_LIBEXECDIR=3D\""/usr/local/libexec\"" -DBONOBO_ACTIVATION_LOC=
ALEDIR=3D\""/usr/local/share/locale"\" -DORBIT2=3D1 -D_THREAD_SAFE -I/usr/l=
ocal/include/orbit-2.0 -I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-=
2.0/include   -DVERSION=3D\"2.4.3\" -DG_DISABLE_DEPRECATED   -I/usr/local/i=
nclude  -O -pipe  -c -o Bonobo_GenericFactory-common.lo `test -f 'Bonobo_Ge=
nericFactory-common.c' || echo './'`Bonobo_GenericFactory-common.c
>  cc -DHAVE_CONFIG_H -I. -I. -I.. -I.. -I.. -DSERVER_LIBEXECDIR=3D\"/usr/l=
ocal/libexec\" -DBONOBO_ACTIVATION_LOCALEDIR=3D\"/usr/local/share/locale\" =
-DORBIT2=3D1 -D_THREAD_SAFE -I/usr/local/include/orbit-2.0 -I/usr/local/inc=
lude/glib-2.0 -I/usr/local/lib/glib-2.0/include -DVERSION=3D\"2.4.3\" -DG_D=
ISABLE_DEPRECATED -I/usr/local/include -O -pipe -c Bonobo_GenericFactory-co=
mmon.c -Wp,-MD,.deps/Bonobo_GenericFactory-common.TPlo  -fPIC -DPIC -o .lib=
s/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
>=20
> Stop in /bugs/ports/devel/libbonobo.
>=20
>=20
>=20
> Any one have a clue as to why the code OBRit generates code causes this
> error?
>=20
> To make things worse, I don't see any problem with the code itself:
>=20
> /*
>  * This file was generated by orbit-idl-2 - DO NOT EDIT!
>  */
>=20
> /** code omitted for brevity **/
>   /** Line 108, where the syntax error occurs, is marked below **/
>=20
> /** 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;
>=20
>=20
>=20
> /** LINE 108 **/  POA_Bonobo_Unknown__epv *Bonobo_Unknown_epv;
>=20
>=20
>=20
>   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 servan=
t, CORBA_Environment *ev);
> extern void POA_Bonobo_GenericFactory__fini(PortableServer_Servant servan=
t, CORBA_Environment *ev);
> #endif /* _defined_POA_Bonobo_GenericFactory */

This works fine for me on -STABLE from the 8th of this month.  I
recommend you reinstall ORBit2 and libIDL, then do a make clean in
libbonobo, and try to build again.

Joe

>=20
>=20
>=20
>=20
> Richard Schilling
>=20
> _______________________________________________
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
--=20
PGP Key : http://www.marcuscom.com/pgp.asc

--=-SbLvPS4p+7XL9/OpvsgF
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQBAPn/Ob2iPiv4Uz4cRAnsTAKCFuqFBjssg9zDBk9ZpyAtwagVQdQCeKuRD
0UOhGrbAGnDnm4bJ+jpHBIQ=
=FkBg
-----END PGP SIGNATURE-----

--=-SbLvPS4p+7XL9/OpvsgF--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1077837774.45850.14.camel>