Subject: Compile error emacs-nox11 and SunOS 5.11 snv_28 i86pc i386
To: None <tech-pkg@NetBSD.org>
From: Claes Leufven <rinsan@lysator.liu.se>
List: tech-pkg
Date: 01/30/2006 17:22:41
Hi,

I have problem building emacs-nox11 on SunOS 5.11 snv_28 x86. I have
built apache and a few other pkgs so my build environment seems to
work fine. First I get an "Fatal error (11)" but can do "bmake
install" anyway. Then install fails at blessmail. Google was kind
enough to show me that I wasn't alone with this problem:

http://public.enst.fr/pkgsrc/pkgstat/SunOS-5.10-20051114.0125/editors/emacs/.broken.html

I tried to cvs update my pkgsrc-tree (2006-01-27) but that didn't
help. And cvsweb doesn't seem to show any specific changes that should
resolve it.

Regards
Claes Leufvén


From "bmake" in pkgsrc/editors/emacs-nox11

<snip>
Finding pointers to doc strings...
Finding pointers to doc strings...done
Loading site-init (source)...
Wrote /tmp/editors/emacs-nox11/work.rei/emacs-21.4/lib-src/fns-21.4.1.el
Dumping under names emacs and emacs-21.4.1
680784 pure bytes used
./emacs -q -batch -f list-load-path-shadows
Fatal error (11).gmake[1]: *** [emacs] Segmentation Fault (core dumped)
gmake[1]: Leaving directory `/tmp/editors/emacs-nox11/work.rei/emacs-21.4/src'
(export PARALLEL; PARALLEL=0; cd leim; /opt/pkg/bin/gmake all  \
  CC='gcc' CFLAGS='-O -fno-zero-initialized-in-bss -I/opt/pkg/include' CPPFLAGS='-I/opt/pkg/include' \
  LDFLAGS='-L/opt/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.5 -Wl,-R/opt/pkg/gcc3/lib/gcc-lib/i386-sun-solaris2/3.3.5 -L/opt/pkg/gcc3/lib -Wl,-R/opt/pkg/gcc3/lib -L/opt/pkg/lib -Wl,-R/opt/pkg/lib' MAKE='/opt/pkg/bin/gmake')
gmake[1]: Entering directory `/tmp/editors/emacs-nox11/work.rei/emacs-21.4/leim'
<snap>

And then later from "bmake install"

<snip>
cd leim; /opt/pkg/bin/gmake install
gmake[1]: Entering directory `/tmp/editors/emacs-nox11/work.rei/emacs-21.4/leim'
gmake[1]: Nothing to be done for `install'.
gmake[1]: Leaving directory `/tmp/editors/emacs-nox11/work.rei/emacs-21.4/leim'
cd lib-src; /opt/pkg/bin/gmake maybe-blessmail  \
  MAKE='/opt/pkg/bin/gmake' archlibdir='/opt/pkg/libexec/emacs/21.4/i386-sun-solaris2'
gmake[1]: Entering directory `/tmp/editors/emacs-nox11/work.rei/emacs-21.4/lib-src'
../src/emacs -batch -l /tmp/editors/emacs-nox11/work.rei/emacs-21.4/lib-src/../lisp/mail/blessmail.el
Wrote /tmp/editors/emacs-nox11/work.rei/emacs-21.4/lib-src/blessmail
Fatal error (11).gmake[1]: *** [blessmail] Segmentation Fault (core dumped)
gmake[1]: *** Deleting file `blessmail'
gmake[1]: Leaving directory `/tmp/editors/emacs-nox11/work.rei/emacs-21.4/lib-src'
gmake: *** [blessmail] Error 2
*** Error code 2

Stop.
bmake: stopped in /mp/pkgsrc/editors/emacs-nox11
*** Error code 1
<snap>

My etc/mk.conf

# Example /opt/pkg/etc/mk.conf file produced by bootstrap-pkgsrc
# Mon Jan  9 14:31:37 CET 2006

.ifdef BSD_PKG_MK       # begin pkgsrc settings
USE_PKGSRC_GCC=YES
GCC_REQD+=3
_ACCEPTABLE=yes
OBJHOSTNAME=yes
PKGSRC_LOCKTYPE=sleep
PKG_RESUME_TRANSFERS?=yes
PASSIVE_FETCH=yes
WRKOBJDIR=/tmp
DISTDIR?=/mp/pkgsrc_distfiles
PKGSRC_SLEEPSECS=30
FAILOVER_FETCH=YES
MASTER_SITE_OVERRIDE+= \
 ftp://ftp.de.netbsd.org/pub/NetBSD/packages/distfiles/ \
 ftp://ftp.fi.netbsd.org/pub/NetBSD/packages/distfiles/ \
 ftp://ftp.at.netbsd.org/pub/NetBSD/packages/distfiles/ \
 ftp://ftp.netbsd.org/pub/NetBSD/packages/distfiles/

PKG_DBDIR=/var/db/pkg
LOCALBASE=/opt/pkg
VARBASE=/var
FETCH_CMD=/opt/pkg/bin/ftp
PAX=/opt/pkg/bin/pax
SED=/opt/pkg/bin/nbsed

.endif                  # end pkgsrc settings