[Bug 208265] net-p2p/gtk-gnutella: Fix build of gtk-gnutella 1.1.9 on FreeBSD 9
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Thu Mar 24 19:15:18 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208265
Bug ID: 208265
Summary: net-p2p/gtk-gnutella: Fix build of gtk-gnutella 1.1.9
on FreeBSD 9
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: freebsd-ports-bugs at FreeBSD.org
Reporter: woodsb02 at gmail.com
Created attachment 168577
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=168577&action=edit
Patch to fix gtk-gnutella 1.1.9 build errors on FreeBSD 9
* Apply upstream patch to prevent pragmas being used for disabling warnings
locally before gcc 4.8 [1]. This was introduced when a change was made in
gtk-gnutella 1.1.9 to add pragmas to silence spurious warnings with the clang
3.4.1 compiler [2].
Build error on FreeBSD 9:
...
cc -c -I../.. -I.. -I/usr/local/include/glib-2.0
-I/usr/local/lib/glib-2.0/include -I/usr/local/include -pthread
-DCURDIR=src/lib -O2 -pipe -isystem /usr/local/include -fstack-protector
-fno-strict-aliasing -pthread -momit-leaf-frame-pointer -W -Wall -Wformat=2
-Wshadow -isystem /usr/local/include glog.c
glog.c: In function 'gl_logv':
glog.c:66: error: #pragma GCC diagnostic not allowed inside functions
glog.c:66: error: #pragma GCC diagnostic not allowed inside functions
glog.c:73: error: #pragma GCC diagnostic not allowed inside functions
*** [glog.o] Error code 1
[1]
https://github.com/gtk-gnutella/gtk-gnutella/commit/e6f3adc8436a82ded5e8db3656eb5b6b3e64ddf4
[2]
https://github.com/gtk-gnutella/gtk-gnutella/commit/3d47182ee7442373ecbc8785a696c631855d54f1
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list