Had a pcre_info issue crop up on Slackware 14.1
[ installed ] - pcre-8.39-x86_64-1_slack14.1
[ installed ] - php-5.6.29-x86_64-1_slack14.1
[ installed ] - kdevelop-php-1.5.2-x86_64-1
[ installed ] - kdevelop-php-docs-1.5.2-x86_64-1
gcc -o tf attr.o command.o dstring.o expand.o expr.o help.o history.o keyboard.o macro.o main.o malloc.o output.o pattern.o process.o search.o signals.o socket.o tfio.o tty.o util.o variable.o world.o -lz -lm -ltermcap -lssl -lcrypto -lpcre
macro.o: In function complete_macro':
/software/tf-50b8/src/macro.c:896: undefined reference to
pcre_info'
pattern.o: In function tf_reg_compile_fl':
/software/tf-50b8/src/pattern.c:154: undefined reference to
pcre_info'
collect2: error: ld returned 1 exit status
make[1]: [tf] Error 1
make[1]: Leaving directory `/software/tf-50b8/src'
make: [files] Error 2
Some research showed that pcre_info was deprecated and replaced with pcre_fullinfo. Found the references in the pattern.c file and macro.c files, changed info to fullinfo and everything seemed to compile fine and operate normally.
Great package, first time ever catching a bug? decades of happy use! thanks everybody.
Had a similar problem on opensuse 15.1. Did the replacement to pcre_fullinfo, then it core dumped instantly on start.
Problem was that -lpcre was finding the system pcre library, which was a much newer version.
Solved it by adding --with-libdirs=
pwd
/src/pcre-2.08 to the configure command line, so the -lpcre would get the version expected by tf. No code change needed, just to use the included library instead of the system one.Last edit: Louis Erickson 2020-04-17