Closed barracuda156 closed 10 months ago
10.6?! That's quite old, but it doesn't matter: we really want clifm running on everything. So, let's try to fix this.
Is your machine 32-bit?
@leo-arch Thank you for responding! Yes, I build for ppc
, which is only 32-bit on 10.6. (The last OS to support ppc64
is 10.5.8.)
Ok. The thing is that st_birthtimespec
is a 64-bit extension. Try this: replace line 222 in helpers.h from this:
#elif defined(__NetBSD__) || defined(__APPLE__)
to this:
#elif defined(__NetBSD__) || (defined(__APPLE__) && !defined(__PPC__))
If your compiler supports the __PPC__
macro, we should be fine.
@leo-arch Perfect, that worked!
(We need it is small case for Apple though, __ppc__
.)
This will, perhaps, be generally applicable:
--- src/helpers.h.orig 2023-07-18 20:44:17.000000000 +0800
+++ src/helpers.h 2023-08-25 22:16:29.000000000 +0800
@@ -219,7 +219,7 @@
* actually store creation times: the value of __st_birthtim is always zero.
#elif defined(__OpenBSD__)
# define ST_BTIME __st_birthtim */
-#elif defined(__NetBSD__) || defined(__APPLE__)
+#elif defined(__NetBSD__) || (defined(__APPLE__) && !(defined(__ppc__) || defined(__i386__)))
# define ST_BTIME st_birthtimespec
#elif defined(__FreeBSD__) || defined(__CYGWIN__)
# define ST_BTIME st_birthtim
P. S. Are colors like this intended? Yellow is barely readable.
Great! Thanks for testing.
As to the colors, yes, those are the default colors (4-bit). However, the default color scheme is intended to be used with dark terminals (dark background). Try just switching your color scheme: cs light
(you can also try the 256 colors version of the default color scheme: cs default-256
). If you still do not find them comfortable enough, every single color is customizable. Take a look at the colors section in the wiki.
@leo-arch Thank you! Noted.
By the way, maybe you could add the patch above into the master? It may help someone who builds clifm
directly (without Macports), and also frees us from a need to carry a local patch :)
Already done @barracuda156! See c9a0a102f8d1388f59fe79625917cbc9f1ec276d.
Hey @barracuda156, what version of readline does Snow Leopard provide? The oldest version I've tried is 6.3 (2014, I think), but Snow Leopard is probably using something even older (5.2?).
@leo-arch We have the latest one, I believe. Whatever Apple had at the time does not really matter, we can always use newer versions (technically, whatever Macports offers, but usually that is either the latest or latest feasible for the OS). However it may need to be specified in the portfile, to ensure the correct one is picked by the build.
Good to know. Thanks for your answer @barracuda156!
Trying to build on 10.6, I get the following error:
sys/stat.h
has the following: