pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bootstrapping on Solaris with symlinks


I am trying to bootstrap pkgsrc-2008Q2 on Solaris 10/i86pc, using
/usr/sfw/bin/gcc. Due to local customs, the installation path contains
a symlink (hiding versioning and architecture). To reproduce the
problem I have

- extract pkgsrc to /some/dir/foo/pkgsrc
- symlink /some/dir/bar to /some/dir/foo

Run bootstrap with

./bootstrap --prefix=/some/dir/bar --unprivileged

either in the bar or the foo branch. This fails like this (subsitute
/some/dir with /software/local/pkgsrc):


You can now run

        make -f makefile.boot bootstrap

to produce a fully functional bmake. You can then use:

        make -f makefile.boot install

for an initial installation.  If you already have macros installed
you can use:

        ./bmake -f Makefile

to install etc.

rm -f bmake *.[ado] */*.[ado] .*.done .depend
gcc -O -I. 
In file included from
sys/cdefs.h: No such file or directory
*** Error code 1

make: stopped in
*** Error code 1

bmake: stopped in /software/local/pkgsrc/foo/pkgsrc/devel/bmake
*** Error code 1

bmake: stopped in /software/local/pkgsrc/foo/pkgsrc/devel/bmake
===> exited with status 1


This is somewhere after pdksh is built and installed. As far as I can
see, bmake is built a second time for the real installation.

What I don't get: "sys/cdefs.h" is present in
I can cd to work/wrk/devel/bmake/work/SunOS and issue exactly the same
command, and it succeeds. Unfortunately, there seems to be no obvious
way to resume a failed bootstrap run.

Bootstrapping with --prefix=/some/dir/foo works fine, by the way.

Any help is appreciated.

Joern Clausen

Home | Main Index | Thread Index | Old Index