[CWB] Segmentation fault
Hardie, Andrew
a.hardie at lancaster.ac.uk
Sat May 2 04:47:57 CEST 2020
Trying to create a 3.0.3 binary release has revealed what may be the problem.
With the configuration "site=standard", the build is fine. With the configuration "site=linux-release", the linker fails with the following messages:
ascii-print.c:(.text+0x1e0): undefined reference to `setupterm'
/usr/bin/ld: ascii-print.c:(.text+0x208): undefined reference to `tigetstr'
/usr/bin/ld: ascii-print.c:(.text+0x242): undefined reference to `tigetstr'
/usr/bin/ld: ascii-print.c:(.text+0x25c): undefined reference to `tigetstr'
/usr/bin/ld: ascii-print.c:(.text+0x276): undefined reference to `tigetstr'
/usr/bin/ld: ascii-print.c:(.text+0x292): undefined reference to `tigetstr'
/usr/bin/ld: ascii-print.o:ascii-print.c:(.text+0x29e): more undefined references to `tigetstr' follow
/usr/bin/ld: ../editline/libeditline.a(editline.o): in function `readline':
editline.c:(.text+0x373e): undefined reference to `tgetent'
/usr/bin/ld: editline.c:(.text+0x375c): undefined reference to `tgetstr'
/usr/bin/ld: editline.c:(.text+0x3781): undefined reference to `tgetstr'
/usr/bin/ld: editline.c:(.text+0x3799): undefined reference to `tgetstr'
/usr/bin/ld: editline.c:(.text+0x37b1): undefined reference to `tgetstr'
/usr/bin/ld: editline.c:(.text+0x37c9): undefined reference to `tgetstr'
/usr/bin/ld: ../editline/libeditline.a(editline.o):editline.c:(.text+0x385a): more undefined references to `tgetstr' follow
/usr/bin/ld: ../editline/libeditline.a(editline.o): in function `readline':
editline.c:(.text+0x3886): undefined reference to `tgetnum'
/usr/bin/ld: editline.c:(.text+0x389a): undefined reference to `tgetnum'
/usr/bin/ld: editline.c:(.text+0x3a1b): undefined reference to `tgetstr'
collect2: error: ld returned 1 exit status
The only setting that's different seems to be
SITE_LDFLAGS = -static
... in the case which failed. So, I have turned that off that to create a 3.0.3 release, which I will post to the site presently.
(This makes me suspect that something in static vs dynamic linking having changed may be the reason the old binaries segfault in buster. Though if so it would be weird that it does not also affect Ubuntu etc.)
Andrew.
=================================================
From: cwb-bounces at sslmit.unibo.it <cwb-bounces at sslmit.unibo.it> On Behalf Of Maarten Janssen
Sent: 01 May 2020 21:50
To: CWBdev Mailing List <cwb at sslmit.unibo.it>
Subject: Re: [CWB] Segmentation fault
Right - so it might just be wrong version; I will adapt the script and test it again next time I install Debian for my test; but it might be a good plan in that case to update the SourceForge page, since I just copied the links from what I thought was the recommended source:
More information about the CWB
mailing list