Subject: Re: Something wrong with my build setup?
To: Jeff Rizzo <riz@boogers.sf.ca.us>
From: Luke Mewburn <lukem@netbsd.org>
List: current-users
Date: 01/08/2003 11:36:50
On Tue, Jan 07, 2003 at 11:22:12AM -0800, Jeff Rizzo wrote:
  | I'm trying to build -current (updated several times over the last
  | few days), and I've been getting some errors which now seem to
  | be related to either the toolchain or the libs which are installed
  | on the system:
  | 
  | cleandir ===> bin/rm
  | rm -f rm.o  rm.ln
  | ./rm: 1: Syntax error: "(" unexpected
  | *** Error code 2

Do you have "." in your path?
Is "." at the start of your path?

If so, `don't do that'.


  | now, looking at the "rm" it's trying to execute:
  | 
  | rm:      ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), for NetBSD, dynamically linked (uses shared libs), not stripped
  | 
  | 
  | random:riz  /usr/src/bin/rm/obj> ./rm
  | ./rm: Exec format error. Binary file not executable.

What does
	ldd rm
and
	objdump -s -j .interp rm
show?

Is the program trying to reference binaries or a shared linker that
you don't have installed (e.g., in /lib or /libexec) ?