[Bug 198232] devel/kBuild: fix build with clang [PATCH]

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Mar 3 17:23:12 UTC 2015


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

            Bug ID: 198232
           Summary: devel/kBuild: fix build with clang [PATCH]
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Keywords: patch
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: vbox at FreeBSD.org
          Reporter: mazhe at alkumuna.eu
          Keywords: patch
          Assignee: vbox at FreeBSD.org
             Flags: maintainer-feedback?(vbox at FreeBSD.org)

Created attachment 153717
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=153717&action=edit
Fix building with clang

Hi,

If somebody find the following of interest, browsing through current dev tree
of kBuild(1)(2) gave me the answer to fix building the port with clang, even if
I could not find how originally gcc worked around a 4th main() parameter...

See patch attached. I allows to build kBuild, and emulators/virtualbox-ose and
emulators/virtualbox-ose also build and works fine under amd64 (given the
patch, I do not expect issues with i386 either).

(1) http://trac.netlabs.org/kbuild/browser/trunk/src/kmk/kmkbuiltin/test.c
(2) http://trac.netlabs.org/kbuild/browser/trunk/src/kmk/kmkbuiltin.h

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


More information about the freebsd-ports-bugs mailing list