Jake Colman <jake.colman(a)xemacs.org> writes:
When I build 21.4.14 using gcc 3.3, I get the following build error:
Loading site-load...
Finding pointers to doc strings...
Finding pointers to doc strings...done
Dumping under the name xemacs
unexec(): dldump(/homes/nj/colman/src/xemacs-21.4.14/src/xemacs): ld.so.1: ./temacs:
fatal: /homes/nj/colman/src/xemacs-21.4.14/src/xemacs: unknown dynamic entry: 1879048176
make[1]: *** [xemacs] Error 1
make[1]: Leaving directory `/homes/nj/colman/src/xemacs-21.4.14/src'
make: *** [src] Error 2
If I execute 'gmake' a second time, without doing anything else, it completes
building. The resultant executable seems ok.
It is not impossible that my gcc installation is screwed up but I don't think
so. So, where do I go from here?
Aren't you trying to use binutils? From the PROBLEMS file:
*** 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 these configure flags:
configure --with-ld=/usr/ccs/bin/ld --with-as=/usr/ccs/bin/as
- adding -B/usr/ccs/bin/ to CFLAGS used to configure XEmacs
(Note: The trailing '/' there is significant.)
- uninstalling GNU ld.
- Vin