Mercurial > hg > xemacs-beta
comparison PROBLEMS @ 2648:68a5da07c189
[xemacs-hg @ 2005-03-10 11:49:00 by malcolmp]
Autoconf 2.5 documentation updates.
| author | malcolmp |
|---|---|
| date | Thu, 10 Mar 2005 11:49:00 +0000 |
| parents | 7edc33019aa4 |
| children | 0f411920c8db |
comparison
equal
deleted
inserted
replaced
| 2647:89e2f8e3f660 | 2648:68a5da07c189 |
|---|---|
| 45 INSTALL, we don't repeat it here. | 45 INSTALL, we don't repeat it here. |
| 46 | 46 |
| 47 *** How do I configure to get the buffer tabs/progress bars? | 47 *** How do I configure to get the buffer tabs/progress bars? |
| 48 | 48 |
| 49 These features depend on support for "native widgets". Use the | 49 These features depend on support for "native widgets". Use the |
| 50 --with-widgets option to configure. Configuration of widgets is | 50 --enable-widgets option to configure. Configuration of widgets is |
| 51 automatic for "modern" toolkits (MS Windows, GTK, and Motif), but if | 51 automatic for "modern" toolkits (MS Windows, GTK, and Motif), but if |
| 52 you are using Xt and the Athena widgets, you will probably want to | 52 you are using Xt and the Athena widgets, you will probably want to |
| 53 specify a "3d" widget set. See configure --usage, and don't forget to | 53 specify a "3d" widget set. See configure --usage, and don't forget to |
| 54 install the corresponding development libraries. | 54 install the corresponding development libraries. |
| 55 | 55 |
| 276 *** Motif dialog boxes lose on Irix. | 276 *** Motif dialog boxes lose on Irix. |
| 277 | 277 |
| 278 Larry Auton <lda@control.att.com> writes: | 278 Larry Auton <lda@control.att.com> writes: |
| 279 Beware of not specifying | 279 Beware of not specifying |
| 280 | 280 |
| 281 --with-dialogs=athena | 281 --enable-dialogs=athena |
| 282 | 282 |
| 283 if it builds with the motif dialogs [boom!] you're a dead man. | 283 if it builds with the motif dialogs [boom!] you're a dead man. |
| 284 | 284 |
| 285 | 285 |
| 286 ** AIX | 286 ** AIX |
| 299 | 299 |
| 300 (For the record, the same issue affects a number of other functions | 300 (For the record, the same issue affects a number of other functions |
| 301 defined in string.h - basically anything the compiler knows how to | 301 defined in string.h - basically anything the compiler knows how to |
| 302 inline.) | 302 inline.) |
| 303 | 303 |
| 304 *** On AIX 4.3, you must specify --with-dialogs=athena with configure | 304 *** On AIX 4.3, you must specify --enable-dialogs=athena with configure |
| 305 | 305 |
| 306 *** The libXt shipped with AIX 4.3 up to 4.3.2 is broken. This causes | 306 *** The libXt shipped with AIX 4.3 up to 4.3.2 is broken. This causes |
| 307 xemacs -nw to fail in various ways. The official APAR is this: | 307 xemacs -nw to fail in various ways. The official APAR is this: |
| 308 | 308 |
| 309 APAR NUMBER: <IX89470> RESOLVED AS: PROGRAM ERROR | 309 APAR NUMBER: <IX89470> RESOLVED AS: PROGRAM ERROR |
| 367 1879048176 | 367 1879048176 |
| 368 | 368 |
| 369 are caused by using GNU ld. There are several workarounds available: | 369 are caused by using GNU ld. There are several workarounds available: |
| 370 | 370 |
| 371 In XEmacs 21.2 or later, configure using the new portable dumper | 371 In XEmacs 21.2 or later, configure using the new portable dumper |
| 372 (--pdump). | 372 (--enable-pdump). |
| 373 | 373 |
| 374 Alternatively, you can link using the Sun version of ld, which is | 374 Alternatively, you can link using the Sun version of ld, which is |
| 375 normally held in /usr/ccs/bin. This can be done by one of: | 375 normally held in /usr/ccs/bin. This can be done by one of: |
| 376 | 376 |
| 377 - building gcc with these configure flags: | 377 - building gcc with these configure flags: |
| 534 sort of thing to you with little or no clue what's wrong (often you | 534 sort of thing to you with little or no clue what's wrong (often you |
| 535 get screwed when one routine does an malloc(sizeof(foo_struct)) and | 535 get screwed when one routine does an malloc(sizeof(foo_struct)) and |
| 536 passes the result to something that things foo_struct is a bit bigger, | 536 passes the result to something that things foo_struct is a bit bigger, |
| 537 trashing memory.... | 537 trashing memory.... |
| 538 | 538 |
| 539 Here's typical crash backtrace. With --pdump, this occurs usually at | 539 Here's typical crash backtrace. With --enable-pdump, this occurs |
| 540 startup under X windows and xemacs -nw at least starts, while without | 540 usually at startup under X windows and xemacs -nw at least starts, while |
| 541 --pdump a similar crash is observed during build. | 541 without --pdump a similar crash is observed during build. |
| 542 | 542 |
| 543 #0 0x0fa460b8 in kill () at regcomp.c:637 | 543 #0 0x0fa460b8 in kill () at regcomp.c:637 |
| 544 637 regcomp.c: No such file or directory. | 544 637 regcomp.c: No such file or directory. |
| 545 in regcomp.c | 545 in regcomp.c |
| 546 (gdb) where | 546 (gdb) where |
| 557 | 557 |
| 558 *** On Irix 6.5, the MIPSpro compiler gets an internal compiler error | 558 *** On Irix 6.5, the MIPSpro compiler gets an internal compiler error |
| 559 | 559 |
| 560 The MIPSpro Compiler (at least version 7.2.1) can't seem to handle the | 560 The MIPSpro Compiler (at least version 7.2.1) can't seem to handle the |
| 561 union type properly, and fails to compile src/glyphs.c. To avoid this | 561 union type properly, and fails to compile src/glyphs.c. To avoid this |
| 562 problem, always build ---use-union-type=no (but that's the default, so | 562 problem, always build --enable-union-type=no (but that's the default, so |
| 563 you should only see this problem if you're an XEmacs maintainer). | 563 you should only see this problem if you're an XEmacs maintainer). |
| 564 | 564 |
| 565 *** Linking with -rpath on IRIX. | 565 *** Linking with -rpath on IRIX. |
| 566 | 566 |
| 567 Darrell Kindred <dkindred@cmu.edu> writes: | 567 Darrell Kindred <dkindred@cmu.edu> writes: |
| 568 There are a couple of problems [with use of -rpath with Irix ld], though: | 568 There are a couple of problems [with use of -rpath with Irix ld], though: |
| 569 | 569 |
| 570 1. The ld in IRIX 5.3 ignores all but the last -rpath | 570 1. The ld in IRIX 5.3 ignores all but the last -rpath |
| 571 spec, so the patched configure spits out a warning | 571 spec, so the patched configure spits out a warning |
| 572 if --x-libraries or --site-runtime-libraries are | 572 if --x-libraries or --with-site-runtime-libraries are |
| 573 specified under irix 5.x, and it only adds -rpath | 573 specified under irix 5.x, and it only adds -rpath |
| 574 entries for the --site-runtime-libraries. This bug was | 574 entries for the --with-site-runtime-libraries. This bug was |
| 575 fixed sometime between 5.3 and 6.2. | 575 fixed sometime between 5.3 and 6.2. |
| 576 | 576 |
| 577 2. IRIX gcc 2.7.2 doesn't accept -rpath directly, so | 577 2. IRIX gcc 2.7.2 doesn't accept -rpath directly, so |
| 578 it would have to be prefixed by -Xlinker or "-Wl,". | 578 it would have to be prefixed by -Xlinker or "-Wl,". |
| 579 This would be fine, except that configure compiles with | 579 This would be fine, except that configure compiles with |
| 580 ${CC-cc} $CFLAGS $LDFLAGS ... | 580 ${CC-cc} $CFLAGS $LDFLAGS ... |
| 581 rather than quoting $LDFLAGS with prefix-args, like | 581 rather than quoting $LDFLAGS with prefix-args, like |
| 582 src/Makefile does. So if you specify --x-libraries | 582 src/Makefile does. So if you specify --x-libraries |
| 583 or --site-runtime-libraries, you must use --use-gcc=no, | 583 or --with-site-runtime-libraries, you must use |
| 584 or configure will fail. | 584 --with--gcc=no, or configure will fail. |
| 585 | 585 |
| 586 *** On Irix 6.3, the SGI ld quits with segmentation fault when linking temacs | 586 *** On Irix 6.3, the SGI ld quits with segmentation fault when linking temacs |
| 587 | 587 |
| 588 This occurs if you use the SGI linker version 7.1. Installing the | 588 This occurs if you use the SGI linker version 7.1. Installing the |
| 589 patch SG0001872 fixes this problem. | 589 patch SG0001872 fixes this problem. |
| 684 Unlike XEmacs 19.13, building with the native cc on SCO OpenServer 5 | 684 Unlike XEmacs 19.13, building with the native cc on SCO OpenServer 5 |
| 685 now produces a functional binary. I will typically build this | 685 now produces a functional binary. I will typically build this |
| 686 configuration for COFF with: | 686 configuration for COFF with: |
| 687 | 687 |
| 688 /path_to_xemacs_source/configure --with-gcc=no \ | 688 /path_to_xemacs_source/configure --with-gcc=no \ |
| 689 --site-includes=/usr/local/include --site-libraries=/usr/local/lib \ | 689 --with-site-includes=/usr/local/include \ |
| 690 --with-xpm --with-xface --with-sound=nas | 690 --with-site-libraries=/usr/local/lib \ |
| 691 --with-xpm --with-xface --enable-sound=nas | |
| 691 | 692 |
| 692 This version now supports ELF builds. I highly recommend this to | 693 This version now supports ELF builds. I highly recommend this to |
| 693 reduce the in-core footprint of XEmacs. This is now how I compile | 694 reduce the in-core footprint of XEmacs. This is now how I compile |
| 694 all my test releases. Build it like this: | 695 all my test releases. Build it like this: |
| 695 | 696 |
| 696 /path_to_XEmacs_source/configure --with-gcc=no \ | 697 /path_to_XEmacs_source/configure --with-gcc=no \ |
| 697 --site-includes=/usr/local/include --site-libraries=/usr/local/lib \ | 698 --with-site-includes=/usr/local/include |
| 698 --with-xpm --with-xface --with-sound=nas --dynamic | 699 --with-site-libraries=/usr/local/lib \ |
| 700 --with-xpm --with-xface --enable-sound=nas --with-dynamic | |
| 699 | 701 |
| 700 The compiler known as icc [ supplied with the OpenServer 5 Development | 702 The compiler known as icc [ supplied with the OpenServer 5 Development |
| 701 System ] generates a working binary, but it takes forever to generate | 703 System ] generates a working binary, but it takes forever to generate |
| 702 XEmacs. ICC also whines more about the code than /bin/cc does. I do | 704 XEmacs. ICC also whines more about the code than /bin/cc does. I do |
| 703 believe all its whining is legitimate, however. Note that you do | 705 believe all its whining is legitimate, however. Note that you do |
| 704 have to 'cd src ; make LD=icc' to avoid linker errors. | 706 have to 'cd src ; make LD=icc' to avoid linker errors. |
| 705 | 707 |
| 706 The way I handle the build procedure is: | 708 The way I handle the build procedure is: |
| 707 | 709 |
| 708 /path_to_XEmacs_source/configure --with-gcc=no \ | 710 /path_to_XEmacs_source/configure --with-gcc=no \ |
| 709 --site-includes=/usr/local/include --site-libraries=/usr/local/lib \ | 711 --with-site-includes=/usr/local/include \ |
| 710 --with-xpm --with-xface --with-sound=nas --dynamic --compiler="icc" | 712 --with-site-libraries=/usr/local/lib \ |
| 713 --with-xpm --with-xface --enable-sound=nas --with-dynamic \ | |
| 714 --with-compiler="icc" | |
| 711 | 715 |
| 712 NOTE I have the xpm, xface, and audio libraries and includes in | 716 NOTE I have the xpm, xface, and audio libraries and includes in |
| 713 /usr/local/lib, /usr/local/include. If you don't have these, | 717 /usr/local/lib, /usr/local/include. If you don't have these, |
| 714 don't include the "--with-*" arguments in any of my examples. | 718 don't include the "--with-*" arguments in any of my examples. |
| 715 | 719 |
| 1359 | 1363 |
| 1360 *** When I try to use the PostgreSQL functions, I get a message about | 1364 *** When I try to use the PostgreSQL functions, I get a message about |
| 1361 undefined symbols. | 1365 undefined symbols. |
| 1362 | 1366 |
| 1363 The only known case in which this happens is if you are using gcc, you | 1367 The only known case in which this happens is if you are using gcc, you |
| 1364 configured with --error-checking=all and --with-modules, and you | 1368 configured with --enable-error-checking=all and --enable-modules, and |
| 1365 compiled with no optimization. If you encounter this problem in any | 1369 you compiled with no optimization. If you encounter this problem in any |
| 1366 other situation, please inform xemacs-beta@xemacs.org. | 1370 other situation, please inform xemacs-beta@xemacs.org. |
| 1367 | 1371 |
| 1368 This problem stems from a gcc bug. With no optimization, functions | 1372 This problem stems from a gcc bug. With no optimization, functions |
| 1369 declared `extern inline' sometimes are not completely compiled away. An | 1373 declared `extern inline' sometimes are not completely compiled away. An |
| 1370 undefined symbol with the function's name is put into the resulting | 1374 undefined symbol with the function's name is put into the resulting |
| 1599 | 1603 |
| 1600 Typically the Lisp backtrace includes | 1604 Typically the Lisp backtrace includes |
| 1601 | 1605 |
| 1602 make-frame(nil #<x-device on ":0.0" 0x2558>) | 1606 make-frame(nil #<x-device on ":0.0" 0x2558>) |
| 1603 | 1607 |
| 1604 somewhere near the top. The problem is due to an improvement in GNU | 1608 somewhere near the top. The problem is due to an improvement in GNU ld |
| 1605 ld that sorts the ELF reloc sections in the executable, giving | 1609 that sorts the ELF reloc sections in the executable, giving dramatic |
| 1606 dramatic speedups in startup for large executables. It also confuses | 1610 speedups in startup for large executables. It also confuses the |
| 1607 the traditional unexec code in XEmacs, leading to the core dump. The | 1611 traditional unexec code in XEmacs, leading to the core dump. The |
| 1608 solution is to use the --pdump or --ldflags='-z nocombreloc' options | 1612 solution is to use the --enable-pdump or --with-ldflags='-z nocombreloc' |
| 1609 to configure. Recent 21.4 and 12.5 autodetect this in configure. | 1613 options to configure. Recent 21.4 and 12.5 autodetect this in |
| 1614 configure. | |
| 1610 | 1615 |
| 1611 Red Hat and SuSE (at least) distributed a prerelease version of ld | 1616 Red Hat and SuSE (at least) distributed a prerelease version of ld |
| 1612 (versions around 2.11.90.x.y) where autodetection is impossible. The | 1617 (versions around 2.11.90.x.y) where autodetection is impossible. The |
| 1613 recommended procedure is to upgrade to binutils >= 2.12 and rerun | 1618 recommended procedure is to upgrade to binutils >= 2.12 and rerun |
| 1614 configure. Otherwise you must apply the flags by hand. --pdump is | 1619 configure. Otherwise you must apply the flags by hand. --enable-pdump |
| 1615 recommended. | 1620 is recommended. |
| 1616 | 1621 |
| 1617 *** I want XEmacs to use the Alt key, not the XXX key, for Meta commands | 1622 *** I want XEmacs to use the Alt key, not the XXX key, for Meta commands |
| 1618 | 1623 |
| 1619 For historical reasons, XEmacs looks for a Meta key, then an Alt key. | 1624 For historical reasons, XEmacs looks for a Meta key, then an Alt key. |
| 1620 It binds Meta commands to the X11 modifier bit attached to the first | 1625 It binds Meta commands to the X11 modifier bit attached to the first |
| 1772 *** On Irix, I don't see the toolbar icons and I'm getting lots of | 1777 *** On Irix, I don't see the toolbar icons and I'm getting lots of |
| 1773 entries in the warnings buffer. | 1778 entries in the warnings buffer. |
| 1774 | 1779 |
| 1775 SGI ships a really old Xpm library in /usr/lib which does not work at | 1780 SGI ships a really old Xpm library in /usr/lib which does not work at |
| 1776 all well with XEmacs. The solution is to install your own copy of the | 1781 all well with XEmacs. The solution is to install your own copy of the |
| 1777 latest version of Xpm somewhere and then use the --site-includes and | 1782 latest version of Xpm somewhere and then use the --with-site-includes |
| 1778 --site-libraries flags to tell configure where to find it. | 1783 and --with-site-libraries flags to tell configure where to find it. |
| 1779 | 1784 |
| 1780 *** Trouble using ptys on IRIX, or running out of ptys. | 1785 *** Trouble using ptys on IRIX, or running out of ptys. |
| 1781 | 1786 |
| 1782 The program mkpts (which may be in `/usr/adm' or `/usr/sbin') needs to | 1787 The program mkpts (which may be in `/usr/adm' or `/usr/sbin') needs to |
| 1783 be set-UID to root, or non-root programs like Emacs will not be able | 1788 be set-UID to root, or non-root programs like Emacs will not be able |
