>Number: 6620
>Category: system
>Synopsis: make build fails while building perl, unable to find libraries
>Confidential: yes
>Severity: serious
>Priority: medium
>Responsible: bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: unknown
>Arrival-Date: Mon May 30 03:20:01 GMT 2011
>Closed-Date:
>Last-Modified:
>Originator:
>Release:
>Organization:
>Environment:
System : OpenBSD 4.9
Details : OpenBSD 4.9 (GENERIC) #671: Wed Mar 2 07:09:00 MST 2011
[email protected]:/usr/src/sys/arch/i386/compile/GENERIC
Architecture: OpenBSD.i386
Machine : i386
>Description:
from a freshly installed openbsd 4.9 system, running "make build" in /usr/src
fails when building perl:
...
Running Makefile.PL in ext/B
../../miniperl
Makefile.PL INSTALLDIRS=perl INSTALLMAN1DIR=none INSTALLMAN3DIR=none
PERL_CORE=1 LIBPERL_A=libperl.so.12.0
Processing hints file hints/openbsd.pl
Writing Makefile for B
Making all in ext/B
make all PERL_CORE=1
LIBPERL_A=libperl.so.12.0
Skip ../../lib/B/Showlex.pm (unchanged)
Skip
../../lib/B.pm (unchanged)
Skip ../../lib/B/Concise.pm (unchanged)
Skip
../../lib/B/Terse.pm (unchanged)
Skip ../../lib/B/Xref.pm (unchanged)
Skip
../../lib/O.pm (unchanged)
../../miniperl "-I../../lib" "-I../../lib"
"-I../../lib" "-I../../lib" defsubs_h.PL defsubs.h ../..
Extracting
defsubs.h...
make: don't know how to make ExtUtils/xsubpp. Stop in
/usr/obj/gnu/usr.bin/perl/ext/B.
Unsuccessful make(ext/B): code=512 at
make_ext.pl line 449.
*** Error code 25
>How-To-Repeat:
1) install a
fresh 4.9 system
2) check out the src tree into /usr/src (I already
had a checkout on another system, and was mounting /usr/src read-only over
nfs)
3) run make obj
4) run make build
>Fix:
The
immediate error can be fixed with the attached patch, but paths to many
libraries are missing (all can be found in ../../cpan/... and ../../dist/...,
except for DynaLoader.pm which does not seem to be built yet):
---
ext/B/Makefile.orig Sun May 29 20:05:02 2011
+++ ext/B/Makefile Sun May
29 20:05:30 2011
@@ -216,7 +216,7 @@
# --- MakeMaker tool_xsubpp section:
-XSUBPPDIR = ExtUtils
+XSUBPPDIR = ../../cpan/ExtUtils-ParseXS/lib/ExtUtils
XSUBPP = $(XSUBPPDIR)$(DFSEP)xsubpp
XSUBPPRUN = $(PERLRUN) $(XSUBPP)
XSPROTOARG =
>Release-Note:
>Audit-Trail:
>Unformatted: