On 16/06/2020 20:21, Helge Kreutzmann wrote:
Hello Matthew,
thanks for your reply.
On Tue, Jun 16, 2020 at 07:24:29PM +0100, Matthew Vernon wrote:
On 13/06/2020 20:44, Helge Kreutzmann wrote:
gcc -g -O2 -fdebug-prefix-map=/tmp/testfoo2/linuxinfo-3.1.2=.
-fstack-protector-strong -Wformat -Werror=format-security -lpcre2-8
-Wl,-z,relro -o linuxinfo linuxinfo.o linuxinfo_common.o linuxinfo_arm.o
linuxinfo_alpha.o linuxinfo_ia64.o linuxinfo_intel.o linuxinfo_m68k.o
linuxinfo_ppc.o linuxinfo_sh.o linuxinfo_hppa.o linuxinfo_s390.o
linuxinfo_avr.o linuxinfo_sparc.o linuxinfo_mips.o linuxinfo_unknown.o
/usr/bin/ld: linuxinfo_common.o: in function `regstrcmp':
./linuxinfo_common.c:224: undefined reference to `pcre2_compile_8'
This is a bit confusing to me, as I think the symbol is there -
if you do objdump -T [path to your libpcre2-8.so] do you see pcre2_compile_8
(et al) there?
In my sid chroot:
root@samd:/# objdump -T /usr/lib/x86_64-linux-gnu/libpcre2-8.so | grep
pcre2_compile_8
000000000000ba80 g DF .text 00000000000055cf Base pcre2_compile_8
On my testing system, I do...
Is this the expected output?
Yes, so the symbol pcre2_compile_8 is present, so I'm not sure why ld
isn't linking it...
[can you reproduce with a little test program? but I think this is a
build issue not a pcre2 one at the moment]
Regards,
Matthew