[Bug 196576] [patch] graphics/svgalib build broken with WITH_DEBUG=YES

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jan 6 22:04:45 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=196576

            Bug ID: 196576
           Summary: [patch] graphics/svgalib build broken with
                    WITH_DEBUG=YES
           Product: Ports & Packages
           Version: Latest
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: zeising at FreeBSD.org
          Reporter: mizhka at gmail.com
          Assignee: zeising at FreeBSD.org
             Flags: maintainer-feedback?(zeising at FreeBSD.org)

Created attachment 151431
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=151431&action=edit
svn patch

Hi,

In case of WITH_DEBUG=YES, graphics/svgalib build is broken using clang (at
least under FreeBSD 10.1). The root cause is different behaviour of "inline" in
GNU89 & C99: http://clang.llvm.org/compatibility.html#inline. As quick fix, the
attached patch adds "static" for inline function outb. 

The issue is reproduced only if cc doesn't do optimization like removal of
inline function. If you define WITH_DEBUG as yes, cc will use -O0 instead of
-O2. 

Please find attached patch to fix this issue. Patch is verified by poudriere,
log is attached.

--- Comment #1 from Bugzilla Automation <bugzilla at FreeBSD.org> ---
Auto-assigned to maintainer zeising at FreeBSD.org

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-ports-bugs mailing list