Forum

Compiling Hiawatha in Interix 3.5

Werewolf
22 September 2009, 08:11
Hiawatha version: 6.17.1
Operating System: WinXP

I just thought of trying to compile it in there, but got these errors:

i did ./configure --disable-ipv6 cause interix 3.5 doesnt support ipv6
gcc -DHAVE_CONFIG_H -I.    -I/usr/include/libxml2  -g -O2 -MT ssi-cgi.o -MD -MP
-MF .deps/ssi-cgi.Tpo -c -o ssi-cgi.o ssi-cgi.c
ssi-cgi.c: In function `get_configuration':
ssi-cgi.c:51: warning: assignment makes pointer from integer without a cast
ssi-cgi.c: In function `execute_command':
ssi-cgi.c:149: error: storage size of `select_timeout' isn't known
ssi-cgi.c:150: error: `fd_set' undeclared (first use in this function)
ssi-cgi.c:150: error: (Each undeclared identifier is reported only once
ssi-cgi.c:150: error: for each function it appears in.)
ssi-cgi.c:150: error: parse error before "read_fds"
ssi-cgi.c:207: error: `read_fds' undeclared (first use in this function)
ssi-cgi.c: In function `execute_ssi_command':
ssi-cgi.c:352: warning: assignment makes pointer from integer without a cast
*** Error code 1
Werewolf
22 September 2009, 08:31
Oh if anyone is wondering interix is something like cygwin but Interix is an implementation of an environment subsystem running atop the Windows kernel, but with increased functionality.

http://en.wikipedia.org/wiki/Interix
Hugo Leisink
22 September 2009, 09:29
Is Interix open source / free to use? If so, where can I download it? I can't find any download link.
Werewolf
22 September 2009, 09:39
Hugo Leisink
22 September 2009, 10:55
I installed it, but gcc gives me a segmentation fault. I'll stick to Cygwin.
Werewolf
22 September 2009, 11:03
So i cant compile it using interix? Well the reason i am using it is because it is said to be faster than cygwin
Hugo Leisink
22 September 2009, 11:29
If gcc doesn't crash on your system, it's very well possible to compile Hiawatha under Interix. Problem is that I can't give you the solution right away, because I can't get Interix to run without crashing.

Try adding "#include <sys/time.h>" or "#include <sys/select.h>" at the top of ssi-cgi.c. I hope you know a little about C programming. It will make things a lot easier.
Werewolf
22 September 2009, 13:23
Tried that and got:
gcc -DHAVE_CONFIG_H -I.      -g -O2 -MT ssi-cgi.o -MD -MP -MF .deps/ssi-cgi.Tpo
-c -o ssi-cgi.o ssi-cgi.c
ssi-cgi.c: In function `get_configuration':
ssi-cgi.c:53: warning: assignment makes pointer from integer without a cast
ssi-cgi.c: In function `execute_ssi_command':
ssi-cgi.c:354: warning: assignment makes pointer from integer without a cast
mv -f .deps/ssi-cgi.Tpo .deps/ssi-cgi.Po
gcc -g -O2 -o ssi-cgi alternative.o libip.o liblist.o libstr.o ssi-cgi.o
libip.o(.text+0x8c): In function `parse_ip_port':
/dev/fs/C/hiawatha-6.17.1/libip.c:198: undefined reference to `_inet_pton'
collect2: ld returned 1 exit status
Hugo Leisink
22 September 2009, 13:48
To solve that problem I need a working Interix installation first. So, for now I'm afraid that Interix is not able to compile Hiawatha.
Werewolf
22 September 2009, 14:09
Hmm... are you using windows xp? cause from what i know you have to get the version correct for your windows
Hugo Leisink
22 September 2009, 15:42
Yup, Windows XP SP3
This topic has been closed.