Day: October 21, 2009

Glib compilation error

If you got this error message:

….. gnulib/.libs/libgnulib.a pcre/.libs/libpcre.a | | /bin/sed ‘s/.* //’ | sort | uniq > .libs/libglib-2.0.exp
../libtool: eval: line 964: syntax error near unexpected token `|’

Then you can edit your libtool script and replace \$global_symbol_pipe in export_symbols_cmds to this command:

sed -n -e ‘s/^.*[ ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p’