Re: ctl + gtk2 + xft build?
Prabhat Hegde <[email protected]> Wed, 20 Aug 2003 15:13:28 -0700
| Newsgroups | gmane.comp.mozilla.devel.unix,gmane.comp.mozilla.builds |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. --------------000403060708060103090107 Content-Type: multipart/alternative; boundary="------------020809040902010109000705" --------------020809040902010109000705 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit I had the same problem. The attached trunk patch for configure fixed it for me. prabhat. hugo vanwoerkom wrote: >Jungshik Shin <[email protected]> wrote in message news:<[email protected]>... > > >>I've been trying to build Mozilla with CTL, Xft and Gtk2, but >>'configure' failed around the end checking if gmodule is supported. >>The build log has the following: >> >>---------- >>checking MOZ_GTK2_CFLAGS... -I/usr/include/gtk-2.0 >>-I/usr/lib/gtk-2.0/include -I >>/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include >>-I/usr/includ >>e/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include >>checking MOZ_GTK2_LIBS... -Wl,--export-dynamic -lgtk-x11-2.0 >>-lgdk-x11-2.0 -latk >>-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 >>-lgobject-2.0 >>-lgmodule-2.0 -ldl -lglib-2.0 >>..... >> >>checking whether compiler supports -Wno-long-long... yes >>checking for libIDL-2.0 >= 0.8.0... yes >>checking LIBIDL_CFLAGS... -I/usr/include/libIDL-2.0 >>-I/usr/include/glib-2.0 -I/u >>sr/lib/glib-2.0/include >>checking LIBIDL_LIBS... -lIDL-2 -lglib-2.0 >>configure: error: Cannot build ctl without gmodule support in glib. >>*** Fix above errors and then restart with "make -f client.mk build" >>make: *** [/prj/moz/builds/debug.gtk2/Makefile] Error 1 >>--------------------- >> >>The following is from the config log. Somehow Glib version was not >>checked and '-I/usr/include/glib-2.0' and '-I/usr/lib/glib-2.0/include' >>were not used. >> >>-------------------- >>configure:14787: gcc -c -pthread -pipe -I/usr/X11R6/include >>conftest.c 1>&5 >>configure:14781:21: gmodule.h: No such file or directory >>configure: failed program was: >>#line 14780 "configure" >>#include "confdefs.h" >>#include <gmodule.h> >>int main() { >> int x = 1; x++; >>; return 0; } >>-------------------- >> >> >>I'm on RedHat 9 (upgraded from RH 8) with g++ (GCC) 3.2.2 20030222 (Red >>Hat Linux 3.2.2-5) and GNU Make version 3.79.1 >> >>I had no problem building Mozilla with gtk+ctl+xft enabled. >> >>Any idea what's wrong? >> >>TIA >> >>Jungshik >> >> > >What does your .mozconfig look like? > >Hugo > > > --------------020809040902010109000705 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title></title> </head> <body> I had the same problem. The attached trunk patch for configure fixed it for me.<br> <br> prabhat.<br> <br> hugo vanwoerkom wrote:<br> <blockquote type="cite" cite="[email protected]"> <pre wrap="">Jungshik Shin <a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a> wrote in message news:<a class="moz-txt-link-rfc2396E" href="mailto:[email protected]"><[email protected]></a>... </pre> <blockquote type="cite"> <pre wrap="">I've been trying to build Mozilla with CTL, Xft and Gtk2, but 'configure' failed around the end checking if gmodule is supported. The build log has the following: ---------- checking MOZ_GTK2_CFLAGS... -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I /usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/includ e/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include checking MOZ_GTK2_LIBS... -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk -1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 ..... checking whether compiler supports -Wno-long-long... yes checking for libIDL-2.0 >= 0.8.0... yes checking LIBIDL_CFLAGS... -I/usr/include/libIDL-2.0 -I/usr/include/glib-2.0 -I/u sr/lib/glib-2.0/include checking LIBIDL_LIBS... -lIDL-2 -lglib-2.0 configure: error: Cannot build ctl without gmodule support in glib. *** Fix above errors and then restart with "make -f client.mk build" make: *** [/prj/moz/builds/debug.gtk2/Makefile] Error 1 --------------------- The following is from the config log. Somehow Glib version was not checked and '-I/usr/include/glib-2.0' and '-I/usr/lib/glib-2.0/include' were not used. -------------------- configure:14787: gcc -c -pthread -pipe -I/usr/X11R6/include conftest.c 1>&5 configure:14781:21: gmodule.h: No such file or directory configure: failed program was: #line 14780 "configure" #include "confdefs.h" #include <gmodule.h> int main() { int x = 1; x++; ; return 0; } -------------------- I'm on RedHat 9 (upgraded from RH 8) with g++ (GCC) 3.2.2 20030222 (Red Hat Linux 3.2.2-5) and GNU Make version 3.79.1 I had no problem building Mozilla with gtk+ctl+xft enabled. Any idea what's wrong? TIA Jungshik </pre> </blockquote> <pre wrap=""><!----> What does your .mozconfig look like? Hugo </pre> </blockquote> <br> </body> </html> --------------020809040902010109000705-- --------------000403060708060103090107 Content-Type: text/plain; name="ctl_patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="ctl_patch" Index: configure =================================================================== RCS file: /cvsroot/mozilla/configure,v retrieving revision 1.1215 diff -u -r1.1215 configure --- configure 31 Jul 2003 20:04:25 -0000 1.1215 +++ configure 20 Aug 2003 22:03:56 -0000 @@ -11705,6 +11705,12 @@ fi fi +if test "$SUNCTL"; then + cat >> confdefs.h <<\EOF +#define SUNCTL 1 +EOF + +fi MOZ_VIEW_SOURCE=1 # Check whether --enable-view-source or --disable-view-source was given. @@ -14764,169 +14770,6 @@ LDAP_LIBS='-L${DIST}/bin -L${DIST}/lib -lldap50 -llber50 -lprldap50' fi fi - -if test "$SUNCTL"; then - _SAVE_CFLAGS=$CFLAGS - CFLAGS="$CFLAGS $GLIB_CFLAGS" - - ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - - cat > conftest.$ac_ext <<EOF -#line 14781 "configure" -#include "confdefs.h" -#include <gmodule.h> -int main() { - int x = 1; x++; -; return 0; } -EOF -if { (eval echo configure:14788: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then - : -else - echo "configure: failed program was:" >&5 - cat conftest.$ac_ext >&5 - rm -rf conftest* - { echo "configure: error: Cannot build ctl without gmodule support in glib." 1>&2; exit 1; } -fi -rm -f conftest* - ac_ext=c -# CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options. -ac_cpp='$CPP $CPPFLAGS' -ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5' -ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5' -cross_compiling=$ac_cv_prog_cc_cross - - CFLAGS=$_SAVE_CFLAGS - cat >> confdefs.h <<\EOF -#define SUNCTL 1 -EOF - -fi - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if test "$MOZ_BYPASS_PROFILE_AT_STARTUP"; then cat >> confdefs.h <<\EOF --------------000403060708060103090107--