[pcre-dev] Make fails to create static libraries after confi…

Kezdőlap
Üzenet törlése
Szerző: MR ZenWiz
Dátum:  
Címzett: Pcre-dev
Tárgy: [pcre-dev] Make fails to create static libraries after configure is run
Greetings,

I am new to this list, so please bear with me. I did check to see if
this is listed in the archives and did not see it.

I am trying to build PCRE on a Linux system (RHEL4_64) and I keep
running into this problem:

$ make
rm -f pcre_chartables.c
ln -s ./pcre_chartables.c.dist pcre_chartables.c
make  all-am
make[1]: Entering directory
`/home/richtm/indio3/external/3rdparty/pcre/pcre-v8.34/src'
  CC       libpcre_la-pcre_byte_order.lo
  CC       libpcre_la-pcre_compile.lo
  CC       libpcre_la-pcre_config.lo
  CC       libpcre_la-pcre_dfa_exec.lo
  CC       libpcre_la-pcre_exec.lo
  CC       libpcre_la-pcre_fullinfo.lo
  CC       libpcre_la-pcre_get.lo
  CC       libpcre_la-pcre_globals.lo
  CC       libpcre_la-pcre_jit_compile.lo
  CC       libpcre_la-pcre_maketables.lo
  CC       libpcre_la-pcre_newline.lo
  CC       libpcre_la-pcre_ord2utf8.lo
  CC       libpcre_la-pcre_refcount.lo
  CC       libpcre_la-pcre_string_utils.lo
  CC       libpcre_la-pcre_study.lo
  CC       libpcre_la-pcre_tables.lo
  CC       libpcre_la-pcre_ucd.lo
  CC       libpcre_la-pcre_valid_utf8.lo
  CC       libpcre_la-pcre_version.lo
  CC       libpcre_la-pcre_xclass.lo
  CC       libpcre_la-pcre_chartables.lo
  CCLD     libpcre.la
ranlib: '.libs/libpcre.a': No such file
  CC       libpcreposix_la-pcreposix.lo
  CCLD     libpcreposix.la
ranlib: '.libs/libpcreposix.a': No such file
  CXX      libpcrecpp_la-pcrecpp.lo
  CXX      libpcrecpp_la-pcre_scanner.lo
  CXX      libpcrecpp_la-pcre_stringpiece.lo
  CXXLD    libpcrecpp.la
ranlib: '.libs/libpcrecpp.a': No such file
  CC       pcretest-pcretest.o
  CC       pcretest-pcre_printint.o
  CCLD     pcretest
  CC       pcregrep-pcregrep.o
  CCLD     pcregrep
  CXX      pcrecpp_unittest-pcrecpp_unittest.o
  CXXLD    pcrecpp_unittest
  CXX      pcre_scanner_unittest-pcre_scanner_unittest.o
  CXXLD    pcre_scanner_unittest
  CXX      pcre_stringpiece_unittest-pcre_stringpiece_unittest.o
  CXXLD    pcre_stringpiece_unittest
make[1]: Leaving directory
`/home/richtm/indio3/external/3rdparty/pcre/pcre-v8.34/src'
$ la .libs
libpcrecpp.la@  libpcre_la-pcre_exec.o  libpcre_la-pcre_xclass.o
libpcrecpp.lai  libpcre_la-pcre_fullinfo.o  libpcreposix.la@
libpcrecpp_la-pcrecpp.o  libpcre_la-pcre_get.o  libpcreposix.lai
libpcrecpp_la-pcre_scanner.o  libpcre_la-pcre_globals.o
libpcreposix_la-pcreposix.o
libpcrecpp_la-pcre_stringpiece.o  libpcre_la-pcre_jit_compile.o
libpcreposix.so@
libpcrecpp.so@  libpcre_la-pcre_maketables.o  libpcreposix.so.0@
libpcrecpp.so.0@  libpcre_la-pcre_newline.o  libpcreposix.so.0.0.2*
libpcrecpp.so.0.0.0*  libpcre_la-pcre_ord2utf8.o  libpcre.so@
libpcre.la@  libpcre_la-pcre_refcount.o  libpcre.so.1@
libpcre.lai  libpcre_la-pcre_string_utils.o  libpcre.so.1.2.2*
libpcre_la-pcre_byte_order.o  libpcre_la-pcre_study.o  pcrecpp_unittest*
libpcre_la-pcre_chartables.o  libpcre_la-pcre_tables.o  pcregrep*
libpcre_la-pcre_compile.o  libpcre_la-pcre_ucd.o  pcre_scanner_unittest*
libpcre_la-pcre_config.o  libpcre_la-pcre_valid_utf8.o
pcre_stringpiece_unittest*
libpcre_la-pcre_dfa_exec.o  libpcre_la-pcre_version.o  pcretest*


Note that the *.a libraries were not built. I have also had this
problem with the --disable-shared option, in which case it does not
create any of the .so* files, but still not static libraries.

I am using the following script to run the configure (so I don't have
to keep remembering all the options):

#!/bin/bash

# Run this to configure the build for PCRE

base=`pwd`
targ=`dirname $base`/linux64    # this only works for certain linux
systems right now - fix later


if [[ ! -x ./configure ]]; then
    echo "Can't find './configure' in the current directory - you must
run me there...."
    exit 1
fi


./configure --enable-unicode-properties --enable-newline-is-anycrlf
--prefix=$targ CFLAGS="-O2" # --disable-shared

I'm sure this is fairly trivial, but I have no idea what.

Any suggestions?

Many thanks!

MR