There is a issue on "htons(S->port)" when converting the port value to
big endian:
http.c: In function 'a_Http_dns_cb':
http.c:353: error: invalid 'asm': invalid operand for code 'w'
I found other people getting similar issue, but failed to fix it.
Then I used a solution found at here:
https://www.rocklinux.net/submaster/index.websplb?mode=patch&uid=2008101217562118489
This fix will limit Dillo to open only web pages on port 80 :-/
A proper fix for this is really needed. Your patch would cause dillo to
fail on little endian (that is removing htons). Maybe adding
parenthesis would work? I think the issue is that htons is defined as
an assembler macro and for some reason causes an exception.
I am using ARM on default endian (little endian), in fact it will not
fail because I leaved "htons(DILLO_URL_HTTP_PORT);"
I think it is failing because "->" in "htons(S->port)".
See if you can find anything, if not I'll take a look when I try to
apply all this.
I will try parenthesis and let you know.