Re: [GnomeMeeting-list] Compile error with version 0.96.1



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Sonntag, 16. März 2003 18:16 schrieb Damien Sandras:
> Le dim 16/03/2003 à 18:13, Joao Fraga a écrit :
> > After successfully compiling the latest PWLib (1.4.11) and OpenH323
> > (1.11.7), and successfully running Gnomeeting 'configure' using the
> > paths for the recently compiled version of PWLib and OpenH323, I
> > received the following error:
> >
> > #--------------------------------------------------------------------
> > g++ -DHAVE_CONFIG_H -I. -I. -I..
> > -DGNOMELOCALEDIR=\""/usr/share/locale"\" -I../src -I../lib
> > -I../lib/widgets -I../lib/xdap  -I/home/jf/pwlib/include/ptlib//unix
> > -I/home/jf/pwlib/include/ptlib//..
> > -I/home/jf/pwlib/include/ptlib//../ptclib -I/usr/include
> > -I/home/jf/openh323/include/ -DSPEEX_CODEC -DP_LINUX -D_REENTRANT
> > -DP_HAS_SEMAPHORES -DP_PTHREADS  -DPBYTE_ORDER=PLITTLE_ENDIAN -DHAS_OSS
> > -O3 -DNDEBUG -fPIC -g -DPHAS_TEMPLATES -Wall -DHAS_IXJ
> > -I/opt/gnome2/include/libgnomeui-2.0 -I/opt/gnome2/include/libgnome-2.0
> > -I/opt/gnome2/include/libgnomecanvas-2.0 -I/usr/include/gtk-2.0
> > -I/usr/include/libart-2.0 -I/opt/gnome2/include/gconf/2
> > -I/opt/gnome2/include/libbonoboui-2.0 -I/usr/include/glib-2.0
> > -I/usr/lib/glib-2.0/include -I/usr/include/orbit-2.0
> > -I/opt/gnome2/include/libbonobo-2.0 -I/opt/gnome2/include/gnome-vfs-2.0
> > -I/opt/gnome2/lib/gnome-vfs-2.0/include -I/usr/include/linc-1.0
> > -I/opt/gnome2/include/bonobo-activation-2.0 -I/usr/include/libxml2
> > -I/usr/include/pango-1.0 -I/usr/include/freetype2
> > -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/X11R6/include
> >   -I/usr/include/openssl
> > -DGNOMEMEETING_IMAGES=\""/usr/share/pixmaps"\" -DSCHEMA_AGE=24
> > -DDATADIR=\""/usr/share"\" -DG_DISABLE_DEPRECATED
> > -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED
> > -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED
> > -DGNOME_DISABLE_DEPRECATED    -O3  -c common.cpp
> > cc1plus: warning: changing search order for system directory
> > "/usr/include" cc1plus: warning:   as it has already been specified as a
> > non-system directory
> > In file included from /usr/include/glib-2.0/glib/galloca.h:30,
> >                   from /usr/include/glib-2.0/glib.h:30,
> >                   from /usr/include/gtk-2.0/gdk/gdktypes.h:32,
> >                   from /usr/include/gtk-2.0/gdk/gdkcolor.h:4,
> >                   from /usr/include/gtk-2.0/gdk/gdk.h:30,
> >                   from /usr/include/gtk-2.0/gtk/gtk.h:31,
> >                   from /opt/gnome2/include/libgnomeui-2.0/gnome.h:4,
> >                   from common.h:31,
> >                   from common.cpp:24:
> > /usr/include/glib-2.0/glib/gtypes.h:41: syntax error before `typedef'
> > #--------------------------------------------------------------------
> >
> > What is the cause for this error?

Don't know if I'm correct on my interpretation, but I think the warning of gcc 
has to be taken seriously:

gtypes.h includes glibconfig.h, but it first finds the glibconfig.h of 
glib-1.2, which is located under /usr/include.

The problem is in the configure script, apply the appended patch to 
configure.in and tell if this helps. There may be some warnings as this was a 
patch for 0.96.0. After applying the patch (cd gnomemeeting-0.96.1; patch -p0 
< gnomemeeting_ldap_inc.diff) run autoconf and rerun configure.

@Damien: I think this patch should be applied to configure.in generally, 
adding /usr/include to the search path is a bad idea, the system search 
pathes should be searched last. Send questions to me directly.

> Probably a bad installation of your GNOME packages. I see that you have
> some headers in /usr/include and others in /opt/gnome2/ I don't know if
> it is normal or not.

No, nothing wrong ...

Greetings,

Stefan

- -- 
Stefan Brüns  /  Kastanienweg 6 - Zimmer 1206  /  52074 Aachen
mailto:lurch gmx li  http://www.kawo1.rwth-aachen.de/~lurchi/
      fax: +49-89-1488204565   phone: +49-160-7532733 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+dPD7b39KPYz+qlMRApu4AKCvVnCKdsTt4NLxNkCHLpHT+QYAtwCfSJPk
Ofykc+WoEdxP0TIsjYYOnPE=
=JDHq
-----END PGP SIGNATURE-----
--- configure.in.orig	2003-01-26 22:18:22.000000000 +0100
+++ configure.in	2003-01-26 22:29:24.000000000 +0100
@@ -299,7 +299,7 @@
 dnl ###########################################################################
 dnl LDAP Checks                                                                
 dnl ###########################################################################
-AC_ARG_WITH(openldap-includes, [  --with-openldap-includes=PFX   Location of OpenLDAP includes.], with_openldap_includes="$withval", with_openldap_includes="/usr/include")
+AC_ARG_WITH(openldap-includes, [  --with-openldap-includes=PFX   Location of OpenLDAP includes.], with_openldap_includes="$withval")
                                                                                
 have_openldap_includes="no"                                                    
                                                                                
@@ -308,7 +308,9 @@
         AC_MSG_CHECKING(for OpenLDAP includes)                                 
         AC_MSG_RESULT()                                                        
                                                                                
-        CPPFLAGS="$CPPFLAGS -I${with_openldap_includes}"                       
+	if test "x${with_openldap_includes}" != "x" ; then                           
+		CPPFLAGS="$CPPFLAGS -I${with_openldap_includes}"                       
+	fi
                                                                                
         AC_CHECK_HEADER(ldap.h, [ openldap_includes="yes" ])                   
                                                                                
@@ -316,7 +318,9 @@
 
         if test "x${openldap_includes}" != "xno" -a "x${openldap_includes}" != "x"; then
                 have_openldap_includes="yes"                                   
-                LDAP_INCLUDES="-I${with_openldap_includes}"                    
+		if test "x${with_openldap_includes}" != "x" ; then                           
+                	LDAP_INCLUDES="-I${with_openldap_includes}"                    
+		fi
         else                                                                   
                 AC_MSG_ERROR([You need OpenLDAP's header files to build GnomeMeeting])
         fi                                                                     


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]