[luatex] compiling on MINIX3

Reviczky, Adam adam.reviczky at kcl.ac.uk
Thu Jun 30 18:02:14 CEST 2011


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?

---
 # try to find gnu make; we may need it
 MAKE=make;
 if make -v 2>&1| grep "GNU Make" >/dev/null
 then 
   echo "Your make is a GNU-make; I will use that"
 elif gmake -v >/dev/null 2>&1
 then
   MAKE=gmake;
+  export MAKE
   echo "You have a GNU-make installed as gmake; I will use that"
 else
   echo "I can't find a GNU-make; I'll try to use make and hope that works." 
   echo "If it doesn't, please install GNU-make."
 fi
---

That shouldn't break anything and makes it work on minix.

> I do not know whether gcc has a predefined macro
> for minix, but you can definitely try adding
> 
>   #define _POSIX_SOURCE 1
> 
> in zzip/stat.c
> 
> Please let me know whether that works.

I've tried the _POSIX_SOURCE, but that didn't help, still the same:

gcc -DHAVE_CONFIG_H -I. -I../../../source/libs/zziplib -Iinclude -I../../../source/libs/zziplib/zziplib-0.13.60 -I/home/reviczky/minimals/luatex-beta-0.70.1/build/libs/zlib/include -D_USE_MMAP  -Wall -Wunused -Wimplicit -Wreturn-type -Wdeclaration-after-statement -Wno-unknown-pragmas -Wmissing-prototypes -Wmissing-declarations -g -O2 -MT stat.o -MD -MP -MF .deps/stat.Tpo -c -o stat.o `test -f 'zziplib-0.13.60/zzip/stat.c' || echo '../../../source/libs/zziplib/'`zziplib-0.13.60/zzip/stat.c
../../../source/libs/zziplib/zziplib-0.13.60/zzip/stat.c: In function 'zzip_dir_stat':
../../../source/libs/zziplib/zziplib-0.13.60/zzip/stat.c:46: error: 'strcasecmp' undeclared (first use in this function)
../../../source/libs/zziplib/zziplib-0.13.60/zzip/stat.c:46: error: (Each undeclared identifier is reported only once
../../../source/libs/zziplib/zziplib-0.13.60/zzip/stat.c:46: error: for each function it appears in.)
gmake[3]: *** [stat.o] Error 1
gmake[3]: Leaving directory `/home/reviczky/minimals/luatex-beta-0.70.1/build/libs/zziplib'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory `/home/reviczky/minimals/luatex-beta-0.70.1/build/libs/zziplib'
gmake[1]: *** [all] Error 2
gmake[1]: Leaving directory `/home/reviczky/minimals/luatex-beta-0.70.1/build/libs/zziplib'
gmake: *** [../../libs/zziplib/libzzip.a] Error 2
strip: 'build/texk/web2c/luatex': No such file
ls: build/texk/web2c/luatex: No such file or directory

It looks like we can check for minix though by:

---
-#if defined(_AIX)
+#if defined(_AIX) || defined(__minix)
 #include <strings.h> /* for strcasecmp */
 #endif
---

Then it gets past zzip, but fails later on with:

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.)
../../../source/texk/web2c/luatexdir/luasocket/src/options.c: In function 'opt_broadcast':
../../../source/texk/web2c/luatexdir/luasocket/src/options.c:67: error: 'SO_BROADCAST' undeclared (first use in this function)
../../../source/texk/web2c/luatexdir/luasocket/src/options.c: In function 'opt_ip_multicast_loop':
../../../source/texk/web2c/luatexdir/luasocket/src/options.c:72: error: 'IP_MULTICAST_LOOP' undeclared (first use in this function)
../../../source/texk/web2c/luatexdir/luasocket/src/options.c: In function 'opt_linger':
../../../source/texk/web2c/luatexdir/luasocket/src/options.c:77: error: storage size of 'li' isn't known
../../../source/texk/web2c/luatexdir/luasocket/src/options.c:89: error: 'SO_LINGER' undeclared (first use in this function)
../../../source/texk/web2c/luatexdir/luasocket/src/options.c: In function 'opt_ip_multicast_ttl':
../../../source/texk/web2c/luatexdir/luasocket/src/options.c:95: error: 'SO_LINGER' undeclared (first use in this function)
gmake: *** [libluasocket_a-options.o] Error 1
strip: 'build/texk/web2c/luatex': No such file
ls: build/texk/web2c/luatex: No such file or directory

Any clues on that one?

Thanks for your help.

Best wishes
Adam



More information about the luatex mailing list