[luatex] compiling on MINIX3

Taco Hoekwater taco at elvenkind.com
Fri Jul 1 09:09:20 CEST 2011


On 06/30/2011 06:02 PM, Reviczky, Adam wrote:
> Hi Taco
>
>> There is not a lot I can do about this problem from here, I fear.
>> You could try to do an explicit export of MAKE=gmake, maybe that
>> helps.
>
> Thanks, that indeed helps.
> Any chance we can change build.sh?

Done (that was easy).

>
> It looks like we can check for minix though by:
>
> ---
> -#if defined(_AIX)
> +#if defined(_AIX) || defined(__minix)
>   #include<strings.h>  /* for strcasecmp */
>   #endif

Ok, but have not applied that yet, because that is not the end
of it anyway.

>
> gcc -DHAVE_CONFIG_H -I. -I../../../source/texk/web2c -I./w2c  -DLUASOCKET_DEBUG -I../../../source/texk/web2c/luatexdir/luasocket -I../../../source/texk/web2c/luatexdir/lua51   -g -O2 -MT libluasocket_a-options.o -MD -MP -MF .deps/libluasocket_a-options.Tpo -c -o libluasocket_a-options.o `test -f 'luatexdir/luasocket/src/options.c' || echo '../../../source/texk/web2c/'`luatexdir/luasocket/src/options.c
> ../../../source/texk/web2c/luatexdir/luasocket/src/options.c: In function 'opt_dontroute':
> ../../../source/texk/web2c/luatexdir/luasocket/src/options.c:62: error: 'SO_DONTROUTE' undeclared (first use in this function)
> ../../../source/texk/web2c/luatexdir/luasocket/src/options.c:62: error: (Each undeclared identifier is reported only once
> ../../../source/texk/web2c/luatexdir/luasocket/src/options.c:62: error: for each function it appears in.)

This is somewhat more tricky, as it seems that setsockopt() in minix is
far from complete, so lots of #defines are missing from the headers.

You could try (just for the sake of testing compilation) to change the
relevant lines to something like this:

int opt_dontroute(lua_State *L, p_socket ps)
{
#ifdef SO_DONTROUTE
     return opt_setboolean(L, ps, SOL_SOCKET, SO_DONTROUTE); /* 62 */
#else
     return 0;
#endif
}


Then, if luasocket/src/options.c is the last of the problems, we can do 
a better fix later.

Best wishes,
Taco


More information about the luatex mailing list