Subject: problem building emacs on sparc64
To: None <port-sparc@netbsd.org>
From: Simon J. Gerraty <sjg@quick.com.au>
List: port-sparc
Date: 01/07/2001 19:31:36
I have an Ultra1 that was running a 1.5Q kernel on 1.5BETA userland.
I build pkgsrc/editors/emacs fine - but there was no X.

So I downloaded and installed the 1.5 sparc64 release including X.
By install I mean I unpacked the 1.5 sets (other than etc and kern),
so now its 1.5 userland with the 1.5Q kernel.

When I went to rebuild emacs (after rm -rf'ing the work dir), I get:

creating lib-src/Makefile
creating src/Makefile
===> Building for emacs-20.7
cd lib-src; gmake all  \
  CC='cc' CFLAGS='-O' CPPFLAGS='' \
  LDFLAGS='-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/X11R6/lib' MAKE='gmake'
gmake[1]: Entering directory `/var/obj/pkgsrc/editors/emacs/work/emacs-20.7/lib-src'
cc -DHAVE_CONFIG_H    -I. -I../src -I/var/obj/pkgsrc/editors/emacs/work/emacs-20.7/lib-src -I/var/obj/pkgsrc/editors/emacs/work/emacs-20.7/lib-src/../src -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -L/usr/pkg/lib -L/usr/X11R6/lib  -O -o test-distrib /var/obj/pkgsrc/editors/emacs/work/emacs-20.7/lib-src/test-distrib.c
./test-distrib /var/obj/pkgsrc/editors/emacs/work/emacs-20.7/lib-src/testfile
./test-distrib: Shared object has no run-time symbol table
gmake[1]: *** [test-distrib] Error 1
gmake[1]: Leaving directory `/var/obj/pkgsrc/editors/emacs/work/emacs-20.7/lib-src'
gmake: *** [lib-src] Error 2
*** Error code 2

Are the LDFLAGS settings above correct for sparc64?

Thanks
--sjg