Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-12798

configure: error: Unable to use libpcre (libpcre check failed) on HP-UX

XMLWordPrintable

    • Team A
    • Sprint 21
    • 0.25

      pcre libs from http://hpux.connect.org.uk/hppd/hpux/Languages/pcre-8.41/

      Configuring source with options:
      ./configure --enable-agent --with-iconv-include=/usr/local/include --with-iconv-lib=/usr/local/lib/hpux32 --with-libpcre=/usr/local/lib/hpux32 --with-libpcre-include=/usr/local/include
      fails with:
      checking for libpcre support... configure: error: Unable to use libpcre (libpcre check failed)

      According to config.log, pcreposix lib is wrongly expected at /usr/local/lib/hpux32/lib, though should be at /usr/local/lib/hpux32/
      configure:10511: gcc -o conftest -g -O2 -I/usr/local/include -L/usr/local/lib/hpux32/lib conftest.c -lm -lpcreposix -lpcre >&5
      ld: Can't find library for -lpcreposix
      Fatal error.

      Configuring --with-libpcre=/usr/local/lib/hpux32/lib fails when searching in /usr/local/lib/hpux32/lib/lib

      Workaround:
      Create /usr/local/lib/hpux32/lib and link libpcre*, libpcreposix* files to /usr/local/lib/hpux32/
      -bash-4.4# ll /usr/local/lib/hpux32/lib
      lrwxr-xr-x 1 root sys 31 Sep 29 14:42 libpcre.a -> /usr/local/lib/hpux32/libpcre.a
      lrwxr-xr-x 1 root sys 32 Sep 29 14:42 libpcre.la -> /usr/local/lib/hpux32/libpcre.la
      lrwxr-xr-x 1 root sys 32 Sep 29 14:42 libpcre.so -> /usr/local/lib/hpux32/libpcre.so
      lrwxr-xr-x 1 root sys 36 Sep 22 00:56 libpcreposix.a -> /usr/local/lib/hpux32/libpcreposix.a
      lrwxr-xr-x 1 root sys 37 Sep 22 00:57 libpcreposix.la -> /usr/local/lib/hpux32/libpcreposix.la
      lrwxr-xr-x 1 root sys 37 Sep 22 00:57 libpcreposix.so -> /usr/local/lib/hpux32/libpcreposix.so

            valdis Valdis Kauķis (Inactive)
            andrws Andrius Umbrasas
            Team A
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: