Subject: An odd build error in pkgsrc (help!)
To: None <netbsd-users@netbsd.org>
From: David Shaw <dave.shaw@gmail.com>
List: netbsd-users
Date: 05/04/2005 08:52:46
Hi guys. Before I start my new post, I just want to thank all of you
who replied to my last post about my RAM frying. You all helped out a
lot, and I'm very grateful.

However, now I have a fresh, new problem. I have NetBSD 2.0 (GENERIC)
on my Pentium III (1GHz) with 512 MB (working!) RAM. However, I seem
to be having problems with a package from pkgsrc:
/usr/pkgsrc/net/p5-Socket6-0.17

I need the package installed mainly as a required package for having
*other* things installed. However, when I attempt to `make install`, I
get the error:

=3D=3D=3D> Building for p5-Socket6-0.17nb1
make: cannot open Makefile.

make: stopped in /usr/pkgsrc/net/p5-Socket6/work/Socket6-0.17
*** Error code 2

Naturally, I check to see if there is a Makefile in
/usr/pkgsrc/net/p5-Socket6/work/Socket6-0.17. What I find is that
there is not a Makefile, but a Makefile.PL. Okay, I think, I can
manually execute that. I chmod +x Makefile.PL and run ./Makefile.PL,
and get the error:

# ./Makefile.PL
./Makefile.PL: Permission denied.

Hm. Alright, well, I can do it by using perl, right? `perl
Makefile.PL`. This is where it starts to get a little bit weird:

# perl Makefile.PL
/usr/pkg/bin/perl: Exec format error. Wrong Architecture.

Wrong architecture? This is an i386 install of NetBSD 2.0 (GENERIC), I
haven't installed perl via pksrc (it came with it on, I believe), but
perl itself works.

I need this package installed in order to have my machine working
properly... does anyone know what's wrong, and how I can fix it? Any
help would be greatly appreciated.

Thanks,

- David Shaw