Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 03 Mar 2015 17:23:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 198232] devel/kBuild: fix build with clang [PATCH]
Message-ID:  <bug-198232-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
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@FreeBSD.org
          Reporter: mazhe@alkumuna.eu
          Keywords: patch
          Assignee: vbox@FreeBSD.org
             Flags: maintainer-feedback?(vbox@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-198232-13>