Re: Build fails on OS X 10.9



Hi,

I’ve managed to build nemiver on OS X 10.9. It works mostly fine; I’ve noticed that some non-essential 
features do not work, but that could be due to Apple’s policy to debuggers other than the official one. I’ve 
not worked on that yet.

Please find below a very simple patch to fix a compile error in tests/ folder. I’ve not generated patches for 
the rest of the modifications as it takes me time because I find it hard to write substantial commit 
messages. I hope you’ll hear from me soon. Of course, if I’ve done something wrong, please tell me and I’d be 
more than happy to fix it. Thank you very much in advance.

Also, here’s the ticket at MacPorts https://trac.macports.org/ticket/41942

Best regards,
Juan.


From 465056ffd8fe247ddcc15cf3ad91fb12d773e0a6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Juan=20R=2E=20Garc=C3=ADa=20Blanco?= <juanrgar gmail com>
Date: Mon, 30 Dec 2013 19:52:19 +0100
Subject: [PATCH] Fix compilation issue in tests/ due to wrong type

        * tests/threads.cc (thread_func): Type of unused
        variable tid changed from int to pthread_t.
---
 tests/threads.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/threads.cc b/tests/threads.cc
index ed035eb..ec0ca20 100644
--- a/tests/threads.cc
+++ b/tests/threads.cc
@@ -28,7 +28,7 @@ thread_func (void *arg)
 {
     assert (arg != 0);
     thread_info *ti = static_cast<thread_info*> (arg);
-    __attribute__((unused)) int tid = ti->tid;
+    __attribute__((unused)) pthread_t tid = ti->tid;
     return NULL;
 }
 
-- 
1.8.3.4 (Apple Git-47)




On 14 Dec 2013, at 12:17, Juan Rafael García Blanco <juanrgar gmail com> wrote:

Hi,

I don’t know if this is the correct place to inform about this; maybe it’s better to file a bug report. 
Sorry anyways. I was trying to get nemiver into macports and I discovered several points of failure. I’m 
not sure if some of them can be easily fixed, i.e. some tweaks are not needed anymore even in recent linux 
distros. Please find below the list of issues that I’ve discovered so far:

- Headers belonging to tr1 are used in various places. Their inclusion is guarded by ifdefs though. The 
problem is clang++ seems to enter those sections and tries to include tr1/* headers. Starting with 10.9 OS 
X uses by default libc++ instead of libstdc++ and this new library seems to not include tr1 headers.
- Inclusion of pty.h is not properly guarded. pty.h is not included in OS X, and util.h should be used 
instead.
- ld option ‘--as-needed’ is not recognised. I couldn’t even find a description of this flag :) Is this 
really needed?

I’m going to try to fix these as best as I can. This could be a public checklist and a remainder of the 
work that needs to be done. I’ll much appreciate any comments on these; I mean, I’m assuming these issues 
can all be fixed, I can be wrong though.

Thank you very much in advance.

Best regards,
Juan.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]