[Domterm-discuss] Installing on Macos possible?
hak
hak at hakdir.com
Tue Jun 26 11:57:02 PDT 2018
hi per,
I try to reconstruct the signifanct parts of the process and spare you all the pains I had when I got sidetracked with libjson which I’ve tried to build from sources.
git clone https://github.com/PerBothner/DomTerm
cd DomTerm
autoreconf. # error: no autoreconf
# despite having installed all the tools from xcode and the entire toolchain from llvm ‘autoreconf’ was missing
brew search autoreconf # my bad: autoreconf is part of ‘automake'
brew install automake
autoreconf # lots of errors: should be reparable with —add-missing
automake --add-missing # I think this did the job
./configure # again lots of missing packages (libjson , libwebsockets asciidoctor, ….)
brew install json-c # libjson was not buildable, so I go with this package
brew install libwebsockets
brew search asciidoctor
./configure # looking good except for openssl path. Openssl libs are a constant pain on macos
# therefore trying to repair openssl
brew unlink openssl ; and brew link openssl —force # no effect, ./configure is still complaining
vim Makefile # Ok, I give up and manually insert openssl include/lib path in Makefile
make # error: something about missing 'mkdir tmp-for-jar’
mkdir tmp-for-jar # doing it manually
make # lots of error, giving up ….
—— errors from make ——
In file included from server.c:1:
./server.h:227:74: error: unexpected ';' before ')'
extern int process_options(int argc, char **argv, struct options *options;);
^
server.c:120:9: warning: 'daemon' is deprecated: first deprecated in macOS 10.5 - Use posix_spawn APIs instead. [-Wdeprecated-declarations]
daemon(1, 0);
^
/usr/include/stdlib.h:298:6: note: 'daemon' has been explicitly marked deprecated here
int daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
^
server.c:595:30: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
opts.browser_command = browser_specifier;
^ ~~~~~~~~~~~~~~~~~
server.c:1187:13: warning: 'daemon' is deprecated: first deprecated in macOS 10.5 - Use posix_spawn APIs instead. [-Wdeprecated-declarations]
if (daemon(1, 0) != 0)
^
/usr/include/stdlib.h:298:6: note: 'daemon' has been explicitly marked deprecated here
int daemon(int, int) __DARWIN_1050(daemon) __OSX_AVAILABLE_BUT_DEPRECATED_MSG(__MAC_10_0, __MAC_10_5, __IPHONE_2_0, __IPHONE_2_0, "Use posix_spawn APIs instead.") __WATCHOS_PROHIBITED __TVOS_PROHIBITED;
^
server.c:1427:37: warning: more '%' conversions than data arguments [-Wformat]
"<base href='http://%s:%d/'/>\n" // FIXME no longer needed?
~^
server.c:1496:43: error: use of undeclared identifier 'SOCK_CLOEXEC'
if ((fd = socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC, 0)) == -1)
^
4 warnings and 2 errors generated.
make[2]: *** [ldomterm-server.o] Error 1
make[1]: *** [bin/domterm] Error 2
make: *** [all-recursive] Error 1
-----
> On 26 Jun 2018, at 17:16, Per Bothner <per at bothner.com> wrote:
>
> On 06/26/2018 05:15 AM, Hak wrote:
>> hi,
>> I try to install Domterm on Macos and get hit by error on every level (tools, libraries, make process). So is it even possible to install it in a non GNU environment?
>
> It is very important to me to have DomTerm work on Mac. However, I don't have a Mac
> myself, and what MacOS experience I have is not recent, so I need help.
>
> Right now there are detailed step-by-step instructions for build or installing
> DomTerm on Fedora, Ubuntu, and Windows (using Ubuntu over WSL):
> http://domterm.org/Downloading-and-building.html
> I'd love to have similar step-by-step instructions for MacOS.
>
> If you can tell me what you tried and what problems you ran into I would very
> much love to work on this together.
>
> To start, I assume you'd use homebrew or macports.
> --
> --Per Bothner
> per at bothner.com http://per.bothner.com/
More information about the Domterm-discuss
mailing list