Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jan 2002 17:53:41 +0200
From:      "C. F. Disk" <cfdisk@icon.icon.bg>
To:        freebsd-stable@freebsd.org
Subject:   make installworld err code 1 in 4.5-STABLE
Message-ID:  <20020129155341.GB53473@icon.icon.bg>

next in thread | raw e-mail | index | archive | help
cvsup date 2002.01.28 at about 15:00 (4.4-STABLE -> 4.5-STABLE)

PROBLEM:
cd /usr/src
make -j4 buildworld
make buildkernel
make installkernel
(no problem up to here)

make installworld
...
vm/vm_object.h -> vm/vm_object.ph
vm/vm_page.h -> vm/vm_page.ph
vm/vm_pageout.h -> vm/vm_pageout.ph
vm/vm_pager.h -> vm/vm_pager.ph
vm/vm_param.h -> vm/vm_param.ph
vm/vm_zone.h -> vm/vm_zone.ph
vm/vnode_pager.h -> vm/vnode_pager.ph
*** Error code 1

Stop in /usr/src/gnu/usr.bin/perl/utils/h2ph.

WHAT CAUSED IT:
i tought it is something about vnode_pager.h
(hacked file, FS err or something), but file was ok.
so next i tought that h2ph cannot convert it, but
using h2ph manually did the work, so having problems
with that file i removed it (mv not rm :) hoping that
there is no list for the files, that need to be converted
and * is used, so it will not notice the missing vnode_pager.h
and i got:
vm/vm_object.h -> vm/vm_object.ph
vm/vm_page.h -> vm/vm_page.ph
vm/vm_pageout.h -> vm/vm_pageout.ph
vm/vm_pager.h -> vm/vm_pager.ph
vm/vm_param.h -> vm/vm_param.ph
vm/vm_zone.h -> vm/vm_zone.ph
*** Error code 1

conclusion was that the problem is not around vnode_pager.h

after playing a while with it i discovered the command that
caused the problem:

cd /usr/include; \
/usr/obj/usr/src/gnu/usr.bin/perl/utils/h2ph/../../miniperl/miniperl \
-I/usr/obj/usr/src/gnu/usr.bin/perl/utils/h2ph/lib \
/usr/obj/usr/src/gnu/usr.bin/perl/utils/h2ph/h2ph -d \
/usr/libdata/perl/5.00503/mach * */*

after typing that on the command line no error messages
apeared (in last 37 linez), but echo $? gave me 1.
and i did > /dev/null to see only stderr the result
was (some PgUps were needed):

Can't open langinfo.h: No such file or directory

so the core of the problem was the link
/usr/include/langinfo.h -> /usr/src/lib/libc/locale/nl_langinfo.c
and the nonexistency of that file nl_langinfo.c

removing that link solved the problem.

WHY AM I WRITING THIS, AFTER I HAVE FIXATED THE PROBLEM?
1. to ask about that file nl_langinfo.c, does it exist in
other systems? (find(1) did not find anything in /usr)
and what about that link langinfo.h, pointing to it?

2. why the hell h2ph (or miniperl, or whatever)
does not quit immediately after ENOENT, but instead
continues to do the work and after all it returns 1!
this causes the "No such file or directory" message to
become *very* difficult to find (even after redirecting
stdout to /dev/null) and to understand what's happening at all.

Regards,
Vasil Dimov
vd@etrade.bg

===
im not writing this mail from vd@etrade.bg, because
freebsd-stable@freebsd.org does not accept mails
from me coz my reverse resolving does not work.
(cannot find your host).
fortunately majordomo@freebsd.org does not have this
restriction. Cheerz!
===

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-stable" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020129155341.GB53473>