Bug 267758 - textproc/link-grammar: Undefined symbol call_once
Summary: textproc/link-grammar: Undefined symbol call_once
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: amd64 Any
: --- Affects Many People
Assignee: freebsd-gnome (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-11-14 10:54 UTC by David
Modified: 2022-11-28 08:55 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (gnome)


Attachments
patch (537 bytes, patch)
2022-11-28 08:55 UTC, Tijl Coosemans
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description David 2022-11-14 10:54:46 UTC
call_once is undefined when the Link-Parser tries to exit causing it to crash. 

Example console:


link-grammar: Error: Could not open dictionary "C.UTF/4.0.dict"
link-grammar: Info: Dictionary found at ./data/en/4.0.dict
link-grammar: Info: Dictionary version 5.11.0, locale en_US.UTF-8
link-grammar: Info: Library version link-grammar-5.11.0. Enter "!help" for help.
linkparser> hello world
ld-elf.so.1: /root/link-grammar-5.11.0/link-grammar/.libs/liblink-grammar.so.5: Undefined symbol "call_once"


I suspect the C11 Threads Library should be linked in to provide "call_once"
Comment 1 Tijl Coosemans freebsd_committer freebsd_triage 2022-11-28 08:55:58 UTC
Created attachment 238392 [details]
patch

Try this patch for textproc/link-grammar.