[blfs-support] pcre-8.30

Fernando de Oliveira famobr at yahoo.com.br
Sun Feb 12 07:36:36 PST 2012


LFS 6.5, 6.7, 6.8 and SVN-20111210.

Building pcre-8.30 was a little difficult.

First attempt, grep stopped working, with message:

"grep: error while loading shared libraries: libpcre.so.0: cannot open shared object file: No such file or directory".

Boot failed, to my scare...

I had to make the symlink:

"ln -v -sf libpcre.so.1.0.0 /lib/libpcre.so.0"

in order to boot and have a working grep back.

Build still failed:

<<
ln -s pcre_assign_jit_stack.3           /usr/share/man/man3/pcre16_assign_jit_stack.3
ln: failed to create symbolic link "/usr/share/man/man3/pcre16_assign_jit_stack.3": Arquivo existe
make[3]: ** [install-data-hook] Erro 1
make[3]: Saindo do diretório `/media/dados/home/fernando/tmp/paco-build-2012.02.11/pcre-8.30'
make[2]: ** [install-data-am] Erro 2
>>

Build succeeded when the symlink was made after the removal of previous build, and, before starting build, I removed previous entries for man:

<<
mkdir -vp /home/fernando/usr-share-man-man3-pcre16 &&
mv -v /usr/share/man/man3/pcre16* /home/fernando/usr-share-man-man3-pcre16
>>

I believe these issues are due to the use of paco. I have:

      INSTALLCOMMAND="ln -v -sf libpcre.so.1.0.0 /lib/libpcre.so.0 &&
                      make install" &&

      ./configure \
                  --prefix=/usr \
                  --disable-static \
                  --libdir=/lib \
                  --docdir=/usr/share/doc/pcre-8.30 \
                  --enable-utf8 \
                  --enable-unicode-properties \
                  --enable-pcregrep-libz \
                  --enable-pcregrep-libbz2 \
                  --enable-jit &&

      time make -j4 &&

      if [ $PIPESTATUS = 0 ]; then

          paco -r --batch pcre-8.21 || continue &&
          paco -U pcre-8.21 || continue &&
          paco -lp pcre-8.30 "$INSTALLCOMMAND" &&

          echo "`date` pcre-8.30 $SOURCEDIR/pcre-8.30.tar.bz2" >> \
                /usr/src/packages.log &&

          ldconfig

      fi &&

[]s,
Fernando



More information about the blfs-support mailing list