Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Jan 2002 18:02:28 +0200
From:      Ruslan Ermilov <ru@FreeBSD.ORG>
To:        "C. F. Disk" <cfdisk@icon.icon.bg>
Cc:        freebsd-stable@FreeBSD.ORG
Subject:   Re: make installworld err code 1 in 4.5-STABLE
Message-ID:  <20020129180228.C61992@sunbay.com>
In-Reply-To: <20020129155341.GB53473@icon.icon.bg>
References:  <20020129155341.GB53473@icon.icon.bg>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 29, 2002 at 05:53:41PM +0200, C. F. Disk wrote:
> 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?
> 
/usr/include/langinfo.h is installed from src/include/langinfo.h.

> 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.
> 
Because make(1) was running in the multi-job mode.
See the -P option to make(1).


Cheers,
-- 
Ruslan Ermilov		Sysadmin and DBA,
ru@sunbay.com		Sunbay Software AG,
ru@FreeBSD.org		FreeBSD committer,
+380.652.512.251	Simferopol, Ukraine

http://www.FreeBSD.org	The Power To Serve
http://www.oracle.com	Enabling The Information Age

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?20020129180228.C61992>