> On 08/10/14 00:36, James Cowgill wrote:
>>> llvm[6]: Linking Release executable lldb-mi (without symbols)
>>> /«PKGBUILDDIR»/build-llvm/tools/lldb/tools/lldb-mi/Release/MICmnLogMediumFile.o:
>>>  In function `CMICmnLogMediumFile::FileFormFileNamePath()':
>>> /«PKGBUILDDIR»/tools/lldb/tools/lldb-mi/MICmnLogMediumFile.cpp:225: 
>>> undefined reference to `CMIUtilSystemLinux::CMIUtilSystemLinux()'
>>> /«PKGBUILDDIR»/tools/lldb/tools/lldb-mi/MICmnLogMediumFile.cpp:225: 
>>> undefined reference to `CMIUtilSystemLinux::GetLogFilesPath(CMIUtilString&) 
>>> const'
>>> /«PKGBUILDDIR»/tools/lldb/tools/lldb-mi/MICmnLogMediumFile.cpp:225: 
>>> undefined reference to `CMIUtilSystemLinux::~CMIUtilSystemLinux()'
>>> collect2: error: ld returned 1 exit status

An updated lldb-kfreebsd-mi.diff is attached, which could be the fairly
obvious fix for this (in lldb/tools/lldb-mi/MIUtilSystemLinux.cpp).  But
it'll take me a while to build it to test;  there could well be other
issues after it.

Regards,
-- 
Steven Chamberlain
ste...@pyro.eu.org
--- a/lldb/tools/Makefile
+++ b/lldb/tools/Makefile
@@ -25,7 +25,7 @@
 DIRS += debugserver
 endif
 
-ifeq ($(HOST_OS),Linux)
+ifneq (,$(strip $(filter $(HOST_OS), Linux GNU GNU/kFreeBSD)))
 DIRS += lldb-mi
 endif
 
--- a/lldb/tools/lldb-mi/MICmnLogMediumFile.cpp
+++ b/lldb/tools/lldb-mi/MICmnLogMediumFile.cpp
@@ -28,7 +28,7 @@
 
 #if defined( _MSC_VER )
 	#include "MIUtilSystemWindows.h"
-#elif defined( __FreeBSD__ ) || defined( __linux__ )
+#elif defined( __FreeBSD_kernel__ ) || defined( __linux__ )
 	#include "MIUtilSystemLinux.h"
 #elif defined( __APPLE__ )
 	#include "MIUtilSystemOsx.h"
--- a/lldb/tools/lldb-mi/MIUtilSystemLinux.h
+++ b/lldb/tools/lldb-mi/MIUtilSystemLinux.h
@@ -24,7 +24,7 @@
 // Include compiler configuration
 #include "MICmnConfig.h"
 
-#if defined( __FreeBSD__ ) || defined( __linux__ )
+#if defined( __FreeBSD_kernel__ ) || defined( __linux__ )
 
 // In-house headers:
 #include "MIUtilString.h"  
--- a/lldb/tools/lldb-mi/MIUtilSystemLinux.cpp
+++ b/lldb/tools/lldb-mi/MIUtilSystemLinux.cpp
@@ -22,7 +22,7 @@
 // Include compiler configuration
 #include "MICmnConfig.h"
 
-#if defined( __FreeBSD__ ) || defined( __linux__ )
+#if defined( __FreeBSD_kernel__ ) || defined( __linux__ )
 
 // In-house headers:
 #include "MIUtilSystemLinux.h"

Reply via email to