pkgsrc-Users archive

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

bootstrapping on Solaris with symlinks



Hi!

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):

---8<--snip---

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. 
-I/software/local/pkgsrc/foo/pkgsrc/bootstrap/work/wrk/devel/bmake/work/bmake
-DHAVE_CONFIG_H -DHAVE_NBCOMPAT_H=1
-I/software/local/pkgsrc/foo/pkgsrc/bootstrap/work/wrk/devel/bmake/work/libnbcompat
-I/software/local/pkgsrc/foo/pkgsrc/bootstrap/work/wrk/devel/bmake/work/bmake/missing
-D__EXTENSIONS__
-D_PATH_DEFSYSPATH=\"/software/local/pkgsrc/bar/share/mk\"
-DHAVE_NBCOMPAT_H=1
-I/software/local/pkgsrc/foo/pkgsrc/bootstrap/work/wrk/devel/bmake/work/libnbcompat
-c 
/software/local/pkgsrc/foo/pkgsrc/bootstrap/work/wrk/devel/bmake/work/bmake/arch.c
In file included from
/software/local/pkgsrc/foo/pkgsrc/bootstrap/work/wrk/devel/bmake/work/bmake/arch.c:153:
/software/local/pkgsrc/foo/pkgsrc/bootstrap/work/wrk/devel/bmake/work/bmake/make.h:99:23:
sys/cdefs.h: No such file or directory
*** Error code 1

Stop.
make: stopped in
/software/local/pkgsrc/foo/pkgsrc/bootstrap/work/wrk/devel/bmake/work/SunOS
*** Error code 1

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

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

--->8--snap---

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
/software/local/pkgsrc/foo/pkgsrc/bootstrap/work/wrk/devel/bmake/work/bmake/missing.
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
joernc%gmail.com@localhost
http://www.oe-files.de/oefiles/
http://thebloeg.blogspot.com/


Home | Main Index | Thread Index | Old Index