[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[leafnode-list] can't re-compile leafnode after Ubuntu karmic upgrade

I recently upgraded from Ubuntu jaunty to karmic, and it occurred to
me that I ought to re-compile leafnode (version
leafnode-2.0.0.alpha20090908a.luascript) against the updated

The configure step [1] seems to work OK [2], but make fails [3] even
after doing make clean first.  I have the lua5.1 package (version
5.1.4-3) on the system, which configure seems to detect.  

I'd appreciate any suggestions (but it's not really urgent since the
old binaries are still running without any apparent problems).


[1]  my configure command

./configure   --prefix=/usr/local                \
      --sysconfdir=/etc/news/leafnode2   --mandir=/usr/local/man            \
      --localstatedir=/var               --enable-lua                       \
      --enable-runas-user=news           --enable-spooldir=/var/spool/news

[2]  last part of its output

=== configuration summary: (NONE is ok here and means the default) ===
prefix:      /usr/local
sysconfdir:  /etc/news/leafnode2
spooldir:    /var/spool/news
With PAM:    no
With Lua:    yes, CFLAGS="-I/usr/include/lua5.1  ", LIBS="-llua5.1  "

config.status: creating Makefile
config.status: creating tools/sendbatch.bash
config.status: creating leafnode.spec
config.status: creating leafnode.8
config.status: creating newsq.1
config.status: creating applyfilter.8
config.status: creating filterfile.5
config.status: creating fetchnews.8
config.status: creating moderators.5
config.status: creating rnews.8
config.status: creating texpire.8
config.status: creating checkgroups.8
config.status: creating sendbatch.1
config.status: creating leafnode-version.1
config.status: creating scripthooks.lua.dist
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands

[3] make errors

$ make
gcc -DHAVE_CONFIG_H -I.    -I/usr/include/lua5.1   -g -O2  -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Wformat=2 -ggdb -fno-common -Wsequence-point -Wswitch -Wunused -Wuninitialized -Wundef -MT b_sortnl.o -MD -MP -MF .deps/b_sortnl.Tpo -c -o b_sortnl.o b_sortnl.c
mv -f .deps/b_sortnl.Tpo .deps/b_sortnl.Po
gcc -DHAVE_CONFIG_H -I.    -I/usr/include/lua5.1   -g -O2  -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Wformat=2 -ggdb -fno-common -Wsequence-point -Wswitch -Wunused -Wuninitialized -Wundef -MT critmem_malloc.o -MD -MP -MF .deps/critmem_malloc.Tpo -c -o critmem_malloc.o critmem_malloc.c
mv -f .deps/critmem_malloc.Tpo .deps/critmem_malloc.Po
gcc -DHAVE_CONFIG_H -I.    -I/usr/include/lua5.1   -g -O2  -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Wformat=2 -ggdb -fno-common -Wsequence-point -Wswitch -Wunused -Wuninitialized -Wundef -MT critmem_realloc.o -MD -MP -MF .deps/critmem_realloc.Tpo -c -o critmem_realloc.o critmem_realloc.c
mv -f .deps/critmem_realloc.Tpo .deps/critmem_realloc.Po
gcc -DHAVE_CONFIG_H -I.    -I/usr/include/lua5.1   -g -O2  -Wall -W -Wstrict-prototypes -Wmissing-prototypes -Wshadow -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wmissing-declarations -Wmissing-format-attribute -Wnested-externs -Wformat=2 -ggdb -fno-common -Wsequence-point -Wswitch -Wunused -Wuninitialized -Wundef -MT arc4random.o -MD -MP -MF .deps/arc4random.Tpo -c -o arc4random.o arc4random.c
In file included from arc4random.h:4,
                 from arc4random.c:34:
system.h:23:7: warning: "sizeof" is not defined
system.h:23:13: error: missing binary operator before token "("
arc4random.c: In function `arc4_stir':
arc4random.c:87: warning: ignoring return value of `read', declared with attribute warn_unused_result
make: *** [arc4random.o] Error 1

leafnode-list mailing list