Rebind mount? On Nov 16, 2011 5:45 PM, "Allan Gottlieb" <gottl...@nyu.edu> wrote:
> On Wed, Nov 16 2011, Allan Gottlieb wrote: > > > I am reinstalling gentoo on a Dell inspiron 6400 laptop > > I am (again) using lvm2. > > > > I just built the kernel and then (following the lvm2 guide) tried > > > > emerge lvm2 > > > > This required a build of help2man, which failed with > > > >>>> Configuring source in > /mnt/var/tmp/portage/sys-apps/help2man-1.38.2/work/help2man-1.38.2 ... > > ./configure --prefix=/usr --build=x86_64-pc-linux-gnu > --host=x86_64-pc-linux-gnu --mandir=/usr/share/man > --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc > --localstatedir=/var/lib --libdir=/usr/lib64 --enable-nls > > checking for perl... perl > > checking for module Locale::gettext... yes > > checking for msgfmt... /usr/bin/msgfmt > > checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc > > checking whether the C compiler works... yes > > checking for C compiler default output file name... a.out > > checking for suffix of executables... > > checking whether we are cross compiling... no > > checking for suffix of object files... o > > checking whether we are using the GNU C compiler... yes > > checking whether x86_64-pc-linux-gnu-gcc accepts -g... yes > > checking for x86_64-pc-linux-gnu-gcc option to accept ISO C89... none > needed > > checking for library containing dlsym... no > > checking for library containing bindtextdomain... none required > > configure: error: dlsym() required > > > > !!! Please attach the following file when seeking support: > > !!! > /mnt/var/tmp/portage/sys-apps/help2man-1.38.2/work/help2man-1.38.2/config.log > > I thought that instead of mounting /dev/vg/usr on /usr > I would mount it at /mnt/usr and have /usr a symlink to /mnt/usr > > (Similarly for opt et al) > > This worked for a while but > /usr/lib/libdl.so is a symlink to ../../lib64/libdl.so.2 > and the symlink uses physical not logical interpretation of .. > > Hence /usr/lib/../.. is /mnt instead of / > > oops. > > allan > >