Re: buildworld fails after patch (FreeBSD-SA-06:23.openssl)



On Fri, Sep 29, 2006 at 08:34:29PM +0200, Uwe Doering wrote:
Ruslan Ermilov wrote:
On Fri, Sep 29, 2006 at 05:40:36PM +0200, Uwe Doering wrote:
[...]
The same happened on my workstation, which runs 4.11. The cause of this
problem is that the openssl sources under '/usr/src' apparently use some
include files installed under '/usr/include/openssl' instead of those in
the '/usr/src' tree.

The fix for me was to copy the '*.h' files that changed into
'/usr/include/openssl' by hand. Afterwards things worked as expected.
This is of course just a workaround. The proper fix would be to modify
the respective makefiles to add all the directories where there are
header files to the list of include directories given to 'cc' with '-I'
options. This apparently hasn't been done so far. At least not
completely.

No. The correct way is to either do a full build (aka buildworld),
or a partial build by first installing headers, and then doing the
library build.

??????

Did you notice the subject of this thread? The problem occured while
running 'buildworld'.

It doesn't matter. What you suggest is not the correct way.
Perhaps the buildworld is broken, but that's a separate issue.

My understanding so far is that the files under
'/usr/include' don't get touched until I run 'installworld'. So the
'buildworld' universe has to be self-contained. That's what I was
trying to point out.

Yes, they are not touched. During buildworld, a special version
of the compiler is built that looks headers up in the temporary
location, normally /usr/obj/usr/src/tmp/usr/include. Then all
(new) headers are installed there, then new libraries are built,
then all the rest. If buildworld touched /usr/include, you
could easily end up with a partially upgraded system, e.g. if
build failed in the middle. If it still fails for you (the
buildworld), please collect and put the full combiled stdout +
stderr output from running "make buildworld" available somewhere
for download and analysis. Colin said he did build all worlds,
on all patched branches.

OK, you had 4.11 and what were you trying to build? RELENG_4?
So I can try to reproduce the problem here.


Cheers,
--
Ruslan Ermilov
ru@xxxxxxxxxxx
FreeBSD committer

Attachment: pgpwJZ9bOYzJt.pgp
Description: PGP signature



Relevant Pages

  • Re: buildworld fails after patch (FreeBSD-SA-06:23.openssl)
    ... or a partial build by first installing headers, ... Perhaps the buildworld is broken, ... Unfortunately I can no longer reproduce the error because I fixed the problem by hand, ...
    (freebsd-stable)
  • Re: [SLE] where is GLUT in SuSE 9.1 ?
    ... >> failed because GLUT seems to be gone. ... >> installing GLUT myself but it requires OpenGL. ... >> Do You Yahoo!? ... > Check the headers for your unsubscription address ...
    (SuSE)
  • Re: [SLE] libtiff-devel
    ... Andreas Winkelmann wrote: ... > Why do you need libtiff-devel? ... The headers are included in libtiff. ... Because if installing a software, one very often needs to also install ...
    (SuSE)
  • Re: NO_ knobs in /etc/make.conf
    ... during buildworld. ... In FreeBSD 7 they seem to be gone? ... added this to make.conf after installing Postfix, ... installworld won't overwrite my Postfix port. ...
    (freebsd-stable)
  • Re: Linking errors after conversion from VS2003 to VS2005
    ... and then installing VS2003 before installing VS2005. ... You should always rebuild everything with the correct headers and libraries. ... to see where the reference comes from (and actually the linker should give ... _Container_base (surprise, surprise). ...
    (microsoft.public.dotnet.languages.vc)