Stuart Henderson <[email protected]> writes: > On 2013/02/15 15:38, Jérémie Courrèges-Anglas wrote: >> >> Thanks for your report, however I find this rather weird... >> Excerpt from emacs23_make.log: > > gperf built ok on vax in the last -current package snapshot. > > emacs21,no_x11 fails reliably during link: > > cc -nostartfiles -L/usr/local/lib -o temacs pre-crt0.o /usr/lib/crt0.o > dispnew.o frame.o scroll.o xdisp.o xmenu.o window.o charset.o coding.o > category.o ccl.o cm.o term.o xfaces.o emacs.o keyboard.o macros.o keymap.o > sysdep.o buffer.o filelock.o insdel.o marker.o minibuf.o fileio.o dired.o > filemode.o cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o > alloc.o data.o doc.o editfns.o callint.o eval.o floatfns.o fns.o print.o > lread.o abbrev.o syntax.o unexsunos4.o mocklisp.o bytecode.o process.o > callproc.o region-cache.o sound.o atimer.o doprnt.o strftime.o intervals.o > textprop.o composite.o md5.o terminfo.o lastfile.o gmalloc.o ralloc.o > vm-limit.o -lossaudio -lncurses `cc -print-libgcc-file-name` -lm -lc > cc -print-libgcc-file-name` > <<snip 32 lines of 'XX is often misused'>> > /tmp//ccXwptf3.o: Definition of symbol `___CTOR_LIST__' (multiply defined) > /tmp//ccXwptf3.o: Definition of symbol `___DTOR_LIST__' (multiply defined) > <<snip another 6 lines>> > emacs.o: Definition of symbol `___CTOR_LIST__' (multiply defined) > emacs.o: Definition of symbol `___DTOR_LIST__' (multiply defined) > <<snip another 26 lines>> > collect2: ld returned 1 exit status
This particular issue should be fixed (see patch below). But there are other problems after link step. Trying to debug them. Index: patches/patch-src_s_openbsd_h =================================================================== RCS file: /cvs/ports/editors/emacs21/patches/patch-src_s_openbsd_h,v retrieving revision 1.2 diff -u -p -r1.2 patch-src_s_openbsd_h --- patches/patch-src_s_openbsd_h 15 Sep 2004 17:55:25 -0000 1.2 +++ patches/patch-src_s_openbsd_h 17 Feb 2013 08:54:39 -0000 @@ -1,7 +1,7 @@ $OpenBSD: patch-src_s_openbsd_h,v 1.2 2004/09/15 17:55:25 espie Exp $ --- src/s/openbsd.h.orig Wed Mar 22 13:08:40 2000 -+++ src/s/openbsd.h Mon Aug 30 12:04:49 2004 -@@ -9,3 +9,16 @@ ++++ src/s/openbsd.h Sun Feb 17 09:48:11 2013 +@@ -9,3 +9,21 @@ /* David Mazieres <[email protected]> says this is necessary. Otherwise Emacs dumps core when run -nw. */ #undef LIBS_TERMCAP @@ -17,4 +17,9 @@ $OpenBSD: patch-src_s_openbsd_h,v 1.2 20 +#define LD_SWITCH_SYSTEM -L/usr/X11R6/lib -L/usr/local/lib +#undef C_SWITCH_SYSTEM +#define C_SWITCH_SYSTEM -I/usr/X11R6/include -I/usr/local/include -L/usr/local/lib ++#endif ++ ++/* Else we get multiple definitions errors at link time */ ++#if defined(__vax__) && __GNUC__ == 2 ++#define GCC_CTORS_IN_LIBC +#endif
