Robert, thanks for the contribution.
Being an incorrigible fiddler, I modified your patch as below:
>>>> "Robert" == Robert Pluim
<rpluim(a)bigfoot.com> writes:
Robert> 2001-01-16 Robert Pluim <rpluim(a)bigfoot.com>
Robert> * PROBLEMS (SunOS/Solaris): Document workaround for GNU ld bug on
Robert> Solaris. Half mine, half Raymond Toy.
Index: ChangeLog
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/ChangeLog,v
retrieving revision 1.155.2.232
diff -u -w -U0 -r1.155.2.232 ChangeLog
--- ChangeLog 2001/01/17 08:36:19 1.155.2.232
+++ ChangeLog 2001/01/17 12:09:41
@@ -0,0 +1,5 @@
+2001-01-16 Robert Pluim <rpluim(a)bigfoot.com>
+
+ * PROBLEMS (SunOS/Solaris): Document workaround for GNU ld bug on
+ Solaris. Half mine, half Raymond Toy, half Martin Buchholz.
+
Index: PROBLEMS
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/PROBLEMS,v
retrieving revision 1.26.2.22
diff -u -w -r1.26.2.22 PROBLEMS
--- PROBLEMS 2001/01/16 08:44:26 1.26.2.22
+++ PROBLEMS 2001/01/17 12:09:45
@@ -187,6 +187,36 @@
** SunOS/Solaris
+*** Dumping error when using GNU binutils / GNU ld on a Sun.
+
+Errors similar to the following:
+
+ Dumping under the name xemacs unexec():
+ dldump(/space/rpluim/xemacs-obj/src/xemacs): ld.so.1: ./temacs:
+ fatal: /space/rpluim/xemacs-obj/src/xemacs: unknown dynamic entry:
+ 1879048176
+
+are caused by using GNU ld. There are several workarounds available:
+
+In XEmacs 21.2 or later, configure using the new portable dumper
+(--pdump).
+
+Alternatively, you can link using the Sun version of ld, which is
+normally held in /usr/ccs/bin. This can be done by one of:
+
+- building gcc with the --with-gnu-ld=no configure flag
+
+- adding -B/usr/ccs/bin/ to CFLAGS used to configure XEmacs
+ (Note: The trailing '/' there is significant.)
+
+- uninstalling GNU ld.
+
+The Solaris2 FAQ claims:
+
+ When you install gcc, don't make the mistake of installing
+ GNU binutils or GNU libc, they are not as capable as their
+ counterparts you get with Solaris 2.x.
+
*** Link failure when using acc on a Sun.
To use acc, you need additional options just before the libraries, such as