I get a strange (?) error while re-building my module's refdoc.
== ( pike7 -x module modref ) cd /home/kaos/pike/7.7.9/doc//src && make "prefix=/home/kaos" "exec_prefix=/home/kaos/bin" "CC=/home/kaos/pike/7.7.9/include/pike/smartlink gcc -fPIC -DDYNAMIC_MODULE" "OTHERFLAGS=-g -Wa,--execstack -mcpu=i686 " "TMP_BINDIR=/home/kaos/pike/7.7.9/include/pike" "DEFINES=-I/home/kaos/dev/Pike/7.7/build/linux-2.4.25-gentoo-i686/bundles/include -I/usr/local/include -I/usr/X11R6/include -DPOSIX_SOURCE= -DHAVE_LIBM=1 -DHAVE_LIBDL=1 -DHAVE_LUA_H=1 -DHAVE_LUALIB_H=1 -DHAVE_LAUXLIB_H=1 -DHAVE_LIBLUA=1 -DHAVE_LIBLUALIB=1 " "TMP_LIBDIR=/lib" "RUNPIKE=pike7" "INSTALL=" "AR=" "NOOPTFLAGS=-g -Wa,--execstack -mcpu=i686 -I/home/kaos/dev/Pike/7.7/build/linux-2.4.25-gentoo-i686/bundles/include -I/usr/local/include -I/usr/X11R6/include " BUILDDIR="/home/kaos/dev/kaos/pike/Lua//plib" DESTDIR="/home/kaos/pike/7.7.9/doc/" modref make[1]: Entering directory `/home/kaos/pike/7.7.9/doc/src' make[2]: Entering directory `/home/kaos/pike/7.7.9/doc/src' rm -rf /home/kaos/pike/7.7.9/doc/modref mkdir: cannot create directory `modref': File exists make[2]: *** [low_modref] Error 1 make[2]: Leaving directory `/home/kaos/pike/7.7.9/doc/src' make[1]: *** [modref] Error 2 make[1]: Leaving directory `/home/kaos/pike/7.7.9/doc/src' make: *** [modref] Error 2 ==
If I remove the modref manually first, it works. Also strange: I can't run -x module module_modref, unless I've run -x module modref first == ( clean mod dir, then -x module && -x module module_modref ) pike7 -x join_autodoc --quiet --post-process "plib/autodoc.xml" "plib/refdoc" make: *** No rule to make target `plib/autodoc.xml', needed by `module_modref.xml'. Stop. ==
Not sure if this is related, or even solves the previous issue (not finished testing yet), but I did find a cludge in Pike/7.7/src/modules/common_module_makefile.in: if test "X$(AUTODOC_SRC_IN)" -ne "X"; then \
It's the -ne test that fails: if test "Xlua.c" -ne "X"; then \ pike7 -x extract_autodoc --builddir=plib/refdoc lua.c; \ fi /bin/sh: line 1: test: Xlua.c: integer expression expected
resulting in that no autodoc extraction is made from lua.c I noticed that most (if not all) other similar tests (not regarding autodoc) use a != operator, which works fine on my system (linux-2.4.25-gentoo-i686) So after updating my makefile, autodoc parses my lua.c file as well... good start :o)
// Kaos
Kaos wrote:
I get a strange (?) error while re-building my module's refdoc.
== ( pike7 -x module modref ) cd /home/kaos/pike/7.7.9/doc//src && make "prefix=/home/kaos" "exec_prefix=/home/kaos/bin" "CC=/home/kaos/pike/7.7.9/include/pike/smartlink gcc -fPIC -DDYNAMIC_MODULE" "OTHERFLAGS=-g -Wa,--execstack -mcpu=i686 " "TMP_BINDIR=/home/kaos/pike/7.7.9/include/pike" "DEFINES=-I/home/kaos/dev/Pike/7.7/build/linux-2.4.25-gentoo-i686/bundles/include -I/usr/local/include -I/usr/X11R6/include -DPOSIX_SOURCE= -DHAVE_LIBM=1 -DHAVE_LIBDL=1 -DHAVE_LUA_H=1 -DHAVE_LUALIB_H=1 -DHAVE_LAUXLIB_H=1 -DHAVE_LIBLUA=1 -DHAVE_LIBLUALIB=1 " "TMP_LIBDIR=/lib" "RUNPIKE=pike7" "INSTALL=" "AR=" "NOOPTFLAGS=-g -Wa,--execstack -mcpu=i686 -I/home/kaos/dev/Pike/7.7/build/linux-2.4.25-gentoo-i686/bundles/include -I/usr/local/include -I/usr/X11R6/include " BUILDDIR="/home/kaos/dev/kaos/pike/Lua//plib" DESTDIR="/home/kaos/pike/7.7.9/doc/" modref make[1]: Entering directory `/home/kaos/pike/7.7.9/doc/src' make[2]: Entering directory `/home/kaos/pike/7.7.9/doc/src' rm -rf /home/kaos/pike/7.7.9/doc/modref mkdir: cannot create directory `modref': File exists make[2]: *** [low_modref] Error 1 make[2]: Leaving directory `/home/kaos/pike/7.7.9/doc/src' make[1]: *** [modref] Error 2 make[1]: Leaving directory `/home/kaos/pike/7.7.9/doc/src' make: *** [modref] Error 2 ==
If I remove the modref manually first, it works. Also strange: I can't run -x module module_modref, unless I've run -x module modref first == ( clean mod dir, then -x module && -x module module_modref ) pike7 -x join_autodoc --quiet --post-process "plib/autodoc.xml" "plib/refdoc" make: *** No rule to make target `plib/autodoc.xml', needed by `module_modref.xml'. Stop. ==
pike-devel@lists.lysator.liu.se