Re: Compiling with Xorg 7.0
Bill Wohler wrote: By the way, here is what ./configure --with-gtk shows. Note all the none and no items that were previous all yes or something good. I am no expert on this, but here are my experiences of compiling CVS Emacs on Etch: I installed Debian packages libncurses5-dev, libxaw7-dev, xaw3dg-dev, libtiff4-dev, libungif4-dev and libpng12-dev to get good results from ./configure. But the build failed because of problems with the X11 ICE library: ICElib.h was searched in /usr/include/X11/ICE/ but located in /usr/X11R6/include/X11/ICE/ and libICE.a was searched in /usr/lib/ but located in /usr/X11R6/lib/ To fix the problem I made symlinks: # ln -s /usr/X11R6/include/X11/ICE/ /usr/include/X11/ # ln -s /usr/X11R6/lib/libICE.a /usr/lib I don't know if it is an Emacs problem, a Debian problem or an Xorg problem. ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: Compiling with Xorg 7.0
Lars Hansen [EMAIL PROTECTED] wrote: Bill Wohler wrote: By the way, here is what ./configure --with-gtk shows. Note all the none and no items that were previous all yes or something good. I am no expert on this, but here are my experiences of compiling CVS Emacs on Etch: I installed Debian packages libncurses5-dev, libxaw7-dev, xaw3dg-dev, libtiff4-dev, libungif4-dev and libpng12-dev to get good results from ./configure. Yes, I had done that long ago. I also installed libgtk2.0-dev. The problem was that the Xorg 7.0 upgrade removed the one file that ./configure uses to determine that there is a window system *at all*. But the build failed because of problems with the X11 ICE library: ICElib.h was searched in /usr/include/X11/ICE/ but located in /usr/X11R6/include/X11/ICE/ and libICE.a was searched in /usr/lib/ but located in /usr/X11R6/lib/ To fix the problem I made symlinks: # ln -s /usr/X11R6/include/X11/ICE/ /usr/include/X11/ # ln -s /usr/X11R6/lib/libICE.a /usr/lib I don't know if it is an Emacs problem, a Debian problem or an Xorg problem. I never hit that before. As I said previously, I had to install libxt-dev after upgrading to xorg 7.0. What I didn't mention is that the libxt-dev install also forced the installation of libice-dev and libsm-dev, which might be pertinent here. I'd suggest nuking your links before upgrading to 7.0 to keep the installation of xorg-common from failing (which wants to remove lots of stuff from /usr/X11R6). /usr/X11R6 will eventually go away entirely. Anyway, hope this helps someone else in a similar situation. -- Bill Wohler [EMAIL PROTECTED] http://www.newt.com/wohler/ GnuPG ID:610BD9AD ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Compiling with Xorg 7.0
I just upgraded to Xorg 7.0 (aka X11R7) over the weekend and now Emacs does not compile. Now that Xorg complies with FHS, the /usr/X11R6 directory is gone. I suspect that Emacs is looking for the various header files and libraries in /usr/X11R6. (Granted, I just updated Emacs too, so something might have changed in Emacs as well.) Has anyone compiled Emacs with Xorg 7.0? Here are some troubled lines in make bootstrap. gcc -c -D_BSD_SOURCE -Demacs -DHAVE_CONFIG_H -DUSE_GTK -I. -I/usr/local/src/mh-e/src/emacs/src -D_BSD_SOURCE -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -g xmenu.c In file included from xmenu.c:130: gtkutil.h:163: error: syntax error before '*' token gtkutil.h:165: warning: 'struct scroll_bar' declared inside parameter list gtkutil.h:165: warning: its scope is only this definition or declaration, which is probably not what you want gtkutil.h:179: warning: 'struct scroll_bar' declared inside parameter list gtkutil.h:192: error: syntax error before '*' token gtkutil.h:194: error: syntax error before 'Display' gtkutil.h:195: error: syntax error before '*' token gtkutil.h:196: error: syntax error before '*' token gtkutil.h:204: error: syntax error before 'Pixmap' xmenu.c: In function 'syms_of_xmenu': xmenu.c:3774: error: 'Smenu_bar_open' undeclared (first use in this function) xmenu.c:3774: error: (Each undeclared identifier is reported only once xmenu.c:3774: error: for each function it appears in.) make[2]: *** [xmenu.o] Error 1 make[2]: Leaving directory `/home/usr.local.src/mh-e/src/emacs/src' make[1]: *** [bootstrap-build] Error 2 make[1]: Leaving directory `/home/usr.local.src/mh-e/src/emacs' make: *** [bootstrap] Error 2 -- Bill Wohler [EMAIL PROTECTED] http://www.newt.com/wohler/ GnuPG ID:610BD9AD ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: Compiling with Xorg 7.0
By the way, here is what ./configure --with-gtk shows. Note all the none and no items that were previous all yes or something good. Configured for `i686-pc-linux-gnu'. Where should the build process find the source code? /usr/local/src/mh-e/src/emacs What operating system and machine description files should Emacs use? `s/gnu-linux.h' and `m/intel386.h' What compiler should emacs be built with? gcc -g Should Emacs use the GNU version of malloc? yes (Using Doug Lea's new malloc from the GNU C Library.) Should Emacs use a relocating allocator for buffers?yes Should Emacs use mmap(2) for buffer allocation? no What window system should Emacs use?none What toolkit should Emacs use? GTK Where do we find X Windows header files?NONE Where do we find X Windows libraries? NONE Does Emacs use -lXaw3d? no Does Emacs use -lXpm? no Does Emacs use -ljpeg? no Does Emacs use -ltiff? no Does Emacs use -lungif? no Does Emacs use -lpng? no Does Emacs use X toolkit scroll bars? yes ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug
Re: Compiling with Xorg 7.0
Fixed. I found that configure looks for X11/Intrinsic.h. This file was no longer present on my system, so the upgrade must have relocated it into a separate package, which I found is libxt-dev. After installing the libxt-dev package (on Debian etch), the output of configure looks reasonable and Emacs compiles as we speak (well, as I speak ;-). ___ emacs-pretest-bug mailing list emacs-pretest-bug@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-pretest-bug