Summary: | cad/netgen: Fails to link: libinterface.so: undefined reference to pthread_create | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | smars | ||||||||||
Component: | Individual Port(s) | Assignee: | Stephen Montgomery-Smith <stephen> | ||||||||||
Status: | Closed FIXED | ||||||||||||
Severity: | Affects Only Me | Keywords: | needs-patch, needs-qa | ||||||||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(stephen) koobs: merge-quarterly? |
||||||||||
Version: | Latest | ||||||||||||
Hardware: | Any | ||||||||||||
OS: | Any | ||||||||||||
Attachments: |
|
Description
smars
2019-11-22 11:18:49 UTC
@Reporter, Could you please: 1) Provide additional information, including: - Exact FreeBSD versions (uname -a output) - /var/run/dmesg.boot output (as an attachment) - /etc/make.conf contents (if not empty, as an attachment) - pkg version -v output (as an attachment) - Full build log (as an attachment 2) Attach your proposed patch as an attachment Note: It may be worth attempting to modify the configure build at configure time, rather than patching configure.ac, which would additionally require running autoreconf to rebuild the configure file. ./configure --help output may provide the specific details on how to add libraries to that component/variable. Thanks! Created attachment 209342 [details]
make.conf
Created attachment 209343 [details]
dmesg.boot
Created attachment 209344 [details]
pkg version -v output
Created attachment 209345 [details]
cd /usr/ports/cad/netgen && make | tee log
FreeBSD *** 12.1-RELEASE-p1 FreeBSD 12.1-RELEASE-p1 r354703 GENERIC amd64 For the patch, sorry... I am not quite sure how to do with the 'configure built': I am using cmake for my projects. To make it work, I modified the Makefile and added the thread library link. (I use poudriere on another computer to build my packages; the files in attachment are reproducing the problem on my desktop) A commit references this bug: Author: stephen Date: Sun Nov 24 02:36:45 UTC 2019 New revision: 518291 URL: https://svnweb.freebsd.org/changeset/ports/518291 Log: - Add patch so that -pthreads is included in libraries. - Mild corrections to pkg-plist. - Bump portrevision. PR: 242154 Submitted by: smars@yuntech.edu.tw Changes: head/cad/netgen/Makefile head/cad/netgen/files/patch-configure.ac head/cad/netgen/pkg-plist I was able to reproduce the problem. I committed the patch. Thank you. Let's hope it doesn't mess up netgen for other versions of FreeBSD. (In reply to Stephen Montgomery-Smith from comment #8) Thanks! |