news/pan crashes when started. The fix is to force libs from gcc: --- Makefile.orig 2015-04-08 15:11:52.476348502 -0700 +++ Makefile 2015-04-08 15:12:02.859348409 -0700 @@ -22,7 +22,7 @@ USE_GCC= any GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -lgnuregex ${ICONV_LIB} +LDFLAGS+= -static-libgcc -static-libstdc++ -L${LOCALBASE}/lib -lgnuregex ${ICONV_LIB} OPTIONS_DEFINE= GTKSPELL GTK3 OPTIONS_DEFAULT=GTKSPELL
Is there a chance this patch is commited to the port of pan? The problem still exists. I've installed FreeBSD 10.2-RELEASE (AMD64): $ uname -a FreeBSD fbsd 10.2-RELEASE FreeBSD 10.2-RELEASE #0 r286666: Wed Aug 12 15:26:37 UTC 2015 root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 I've installed the pan package ("pkg install pan"). The following version is installed: $ pkg info | grep pan-0 pan-0.139_2 Threaded GTK+ newsreader based on Agent for Windows When I try to start pan the following error occurs: $ pan & $ [1] Segmentation fault (core dumped) pan
@Andrew, could you please attach your diff in comment 0 as an attachment? Thanks!
This issue has reached maintainer-timeout (incl. discretionary time). @Gnome can this be bumped up the list?
Created attachment 163929 [details] svn diff The patch that fixes the crash.
@Kubilay Kocak I attached the diff generated by svn. Alternatively you can build a working version of pan by using the following command: cd /usr/ports/news/pan make LDFLAGS="-static-libgcc -static-libstdc++"
Thank you Andrew :) @Committer We may want to put some of those flags in LIBS, rather than LDFLAGS
A commit references this bug: Author: kwm Date: Sat Dec 12 23:37:57 UTC 2015 New revision: 403639 URL: https://svnweb.freebsd.org/changeset/ports/403639 Log: Staticly link to libgcc and libstdc++. This fixes a segmentation fault when trying to run pan on a libc++ based system. PR: 199303 Submitted by: Andrew <andrew_terekhov@yahoo.com> Changes: head/news/pan/Makefile
Assign to committer that resolved
Kurt dropped the change in ports r412967. If USE_GCC is still required one should spell it as USES=compiler:gcc-c++11-lib rather than resort to static linking.
*** Bug 208763 has been marked as a duplicate of this bug. ***
*** Bug 212635 has been marked as a duplicate of this bug. ***
A commit references this bug: Author: kwm Date: Mon Jan 9 22:21:30 UTC 2017 New revision: 431039 URL: https://svnweb.freebsd.org/changeset/ports/431039 Log: Drop USE_GCC, this fixed a segfault crash when starting the program. PR: 199303 MFH: 2017Q1 Changes: head/news/pan/Makefile
A commit references this bug: Author: kwm Date: Wed Jan 11 13:32:58 UTC 2017 New revision: 431179 URL: https://svnweb.freebsd.org/changeset/ports/431179 Log: MFH: r431039 Drop USE_GCC, this fixed a segfault crash when starting the program. PR: 199303 Approved by: ports-secteam (feld@) Changes: _U branches/2017Q1/ branches/2017Q1/news/pan/Makefile
should be fixed now.