Subject: pkg/33145: pcre won't build on Linux
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <zafer.aydogan@googlemail.com>
List: pkgsrc-bugs
Date: 03/24/2006 21:30:03
>Number:         33145
>Category:       pkg
>Synopsis:       pcre won't build on Linux
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Mar 24 21:30:03 +0000 2006
>Originator:     Zafer Aydogan
>Release:        none, Linux
>Organization:
>Environment:
Linux with pkgsrc
>Description:
it starts compiling a while, then breaks with this:
...
-DPIC -o .libs/pcre_valid_utf8.o
 gcc -c -O2 -I. -DSUPPORT_UTF8 -DPOSIX_MALLOC_THRESHOLD=10 ./pcre_valid_utf8.c -o pcre
_valid_utf8.o >/dev/null 2>&1
 gcc -c -O2 -I. -DSUPPORT_UTF8 -DPOSIX_MALLOC_THRESHOLD=10 ./pcre_version.c  -fPIC -DP
IC -o .libs/pcre_version.o
 gcc -c -O2 -I. -DSUPPORT_UTF8 -DPOSIX_MALLOC_THRESHOLD=10 ./pcre_version.c -o pcre_ve
rsion.o >/dev/null 2>&1
 gcc -c -O2 -I. -DSUPPORT_UTF8 -DPOSIX_MALLOC_THRESHOLD=10 ./pcre_xclass.c  -fPIC -DPI
C -o .libs/pcre_xclass.o
 gcc -c -O2 -I. -DSUPPORT_UTF8 -DPOSIX_MALLOC_THRESHOLD=10 ./pcre_xclass.c -o pcre_xcl
ass.o >/dev/null 2>&1
rm -f libpcre.la
/bin/sh ./libtool --mode=link --tag=CC gcc -export-symbols-regex '^[^_]' -Wl,-R/usr/pk
g/lib -I. -I. -rpath /usr/pkg/lib -version-info  '0:1:0' -o libpcre.la pcre_chartables
.lo  pcre_compile.lo  pcre_config.lo  pcre_dfa_exec.lo  pcre_exec.lo  pcre_fullinfo.lo
  pcre_get.lo  pcre_globals.lo  pcre_info.lo  pcre_maketables.lo  pcre_ord2utf8.lo  pc
re_refcount.lo  pcre_study.lo  pcre_tables.lo  pcre_try_flipped.lo  pcre_ucp_searchfun
cs.lo  pcre_valid_utf8.lo  pcre_version.lo  pcre_xclass.lo
generating symbol list for `libpcre.la'
nm  .libs/pcre_chartables.o .libs/pcre_compile.o .libs/pcre_config.o .libs/pcre_dfa_ex
ec.o .libs/pcre_exec.o .libs/pcre_fullinfo.o .libs/pcre_get.o .libs/pcre_globals.o .li
bs/pcre_info.o .libs/pcre_maketables.o .libs/pcre_ord2utf8.o .libs/pcre_refcount.o .li
bs/pcre_study.o .libs/pcre_tables.o .libs/pcre_try_flipped.o .libs/pcre_ucp_searchfunc
s.o .libs/pcre_valid_utf8.o .libs/pcre_version.o .libs/pcre_xclass.o  |  | /bin/sed 's
/.* //' | sort | uniq > .libs/libpcre.exp
/usr/pkg/bin/libtool: eval: line 1: syntax error near unexpected token `|'
/usr/pkg/bin/libtool: eval: line 1: `nm  .libs/pcre_chartables.o .libs/pcre_compile.o
.libs/pcre_config.o .libs/pcre_dfa_exec.o .libs/pcre_exec.o .libs/pcre_fullinfo.o .lib
s/pcre_get.o .libs/pcre_globals.o .libs/pcre_info.o .libs/pcre_maketables.o .libs/pcre
_ord2utf8.o .libs/pcre_refcount.o .libs/pcre_study.o .libs/pcre_tables.o .libs/pcre_tr
y_flipped.o .libs/pcre_ucp_searchfuncs.o .libs/pcre_valid_utf8.o .libs/pcre_version.o
.libs/pcre_xclass.o  |  | /bin/sed 's/.* //' | sort | uniq > .libs/libpcre.exp'
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/pcre/work/pcre-6.6
*** Error code 1

Stop.
bmake: stopped in /usr/pkgsrc/devel/pcre
#
>How-To-Repeat:
try to build devel/pcre on Linux.
>Fix: