Subject: pkg/36361: emacs does not build on netbsd4-beta2/hpcmips
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <syamajala@gamebox.net>
List: pkgsrc-bugs
Date: 05/20/2007 18:25:00
>Number: 36361
>Category: pkg
>Synopsis: emacs does not build on netbsd4-beta2/hpcmips
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 20 18:25:00 +0000 2007
>Originator: Seshu Yamajala
>Release: netbsd4-beta2
>Organization:
>Environment:
NetBSD netbsd.genesis.blogdns.net 4.0_BETA2 NetBSD 4.0_BETA2 (GENERIC) #0: Thu May 10 07:31:44 PDT 2007 builds@wb33:/home/builds/ab/netbsd-4/hpcmips/200705100002Z-obj/home/builds/ab/netbsd-4/src/sys/arch/hpcmips/compile/GENERIC hpcmips
>Description:
It seems that the Makefile for emacs is looking for crt0.o in the wrong place.
=> Required installed package digest>=20010302: digest-20060302 found
===> Skipping vulnerability checks.
WARNING: No /usr/pkgsrc/distfiles/pkg-vulnerabilities file found.
WARNING: To fix, install the pkgsrc/security/audit-packages
WARNING: package and run: ``/usr/pkg/sbin/download-vulnerability-list''.
===> Building for emacs-21.4anb10
if [ ! -f /usr/pkgsrc/editors/emacs/work/emacs-21.4/lisp/abbrev.elc ]; then \
/usr/pkg/bin/gmake bootstrap; \
fi
cd lib-src; /usr/pkg/bin/gmake all \
CC='cc' CFLAGS='-O2 -I/usr/pkg/include -I/usr/X11R6/include -I/usr/include' CPPFLAGS='-I/usr/X11R6/include -I/usr/pkg/include -I/usr/local/include -L/usr/pkg/lib -L/usr/local/lib -DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include -I/usr/X11R6/include -I/usr/include' \
LDFLAGS='-Wl,-z,nocombreloc -L/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib' MAKE='/usr/pkg/bin/gmake'
gmake[1]: Entering directory `/usr/pkgsrc/editors/emacs/work/emacs-21.4/lib-src'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/usr/pkgsrc/editors/emacs/work/emacs-21.4/lib-src'
cd src; /usr/pkg/bin/gmake all \
CC='cc' CFLAGS='-O2 -I/usr/pkg/include -I/usr/X11R6/include -I/usr/include' CPPFLAGS='-I/usr/X11R6/include -I/usr/pkg/include -I/usr/local/include -L/usr/pkg/lib -L/usr/local/lib -DPNG_NO_ASSEMBLER_CODE -I/usr/pkg/include -I/usr/X11R6/include -I/usr/include' \
LDFLAGS='-Wl,-z,nocombreloc -L/usr/pkg/lib -L/usr/X11R6/lib -Wl,-R/usr/X11R6/lib -Wl,-R/usr/pkg/lib -L/usr/lib -Wl,-R/usr/lib -L/usr/X11R6/lib' MAKE='/usr/pkg/bin/gmake'
gmake[1]: Entering directory `/usr/pkgsrc/editors/emacs/work/emacs-21.4/src'
gmake[1]: *** No rule to make target `/lib/crt0.o', needed by `temacs'. Stop.
gmake[1]: Leaving directory `/usr/pkgsrc/editors/emacs/work/emacs-21.4/src'
gmake: *** [src] Error 2
*** Error code 2
Stop.
make: stopped in /usr/pkgsrc/editors/emacs
*** Error code 1
Stop.
make: stopped in /usr/pkgsrc/editors/emacs
>How-To-Repeat:
cd /usr/pkgsrc/editors/emacs && make
>Fix:
I changed the line STARTFILES = pre-crt0.o /lib/crt0.o in /usr/pkgsrc/editors/emacs/work/emacs-21.4/src/Makefile to STARTFILES = pre-crt0.o /usr/lib/crt0.o
I am not sure if this is the proper way to fix the bug, but it seems to be building.