Package: infon
version: 0~r198-2
Severity: serious
User: [EMAIL PROTECTED]
Tags: patch
Usertags: qa-ftbfs-20070928 qa-ftbfs
Justification: FTBFS on i386

Hi,

During a rebuild of all packages in sid, your package failed to build on i386.

Relevant part:
ranlib liblua.a
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK   -c -o lua.o lua.c
cc -o lua  lua.o liblua.a -lm -Wl,-E -ldl -lreadline -lhistory -lncurses
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK   -c -o luac.o luac.c
cc -O2 -Wall -DLUA_USE_POSIX -ggdb -DLUA_USE_APICHECK   -c -o print.o print.c
cc -o luac  luac.o print.o liblua.a -lm -Wl,-E -ldl -lreadline -lhistory 
-lncurses
make[4]: Leaving directory `/build/user/infon-0~r198/lua-5.1.2/src'
make[3]: Leaving directory `/build/user/infon-0~r198/lua-5.1.2/src'
make[2]: Leaving directory `/build/user/infon-0~r198/lua-5.1.2'
cc infond.o server.o listener.o map.o path.o misc.o packet.o player.o world.o 
creature.o scroller.o game.o pinger.o lua-5.1.2/src/liblua.a -levent -lz -lm -o 
infond
cc infond.o server.o listener.o map.o path.o misc.o packet.o player.o world.o 
creature.o scroller.o game.o pinger.o lua-5.1.2/src/liblua.a -levent -lz -lm 
-static -o infond-static
infond.o: In function `daemonize':
/build/user/infon-0~r198/daemonize.h:85: warning: Using 'getpwnam' in 
statically linked applications requires at runtime the shared libraries from 
the glibc version used for linking
/usr/lib/gcc/i486-linux-gnu/4.2.1/../../../../lib/libevent.a(event.o): In 
function `gettime':
(.text+0xceb): undefined reference to `clock_gettime'
/usr/lib/gcc/i486-linux-gnu/4.2.1/../../../../lib/libevent.a(event.o): In 
function `event_init':
(.text+0x18d9): undefined reference to `clock_gettime'
collect2: ld returned 1 exit status
make[1]: *** [infond] Error 1
make[1]: Leaving directory `/build/user/infon-0~r198'
make: *** [build-arch-stamp] Error 2

The attached patch fixes the problem.

The full build log is available from
http://people.debian.org/~lucas/logs/2007/09/28

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot containing a sid i386
environment.  Internet was not accessible from the build systems.

-- 
| Lucas Nussbaum
| [EMAIL PROTECTED]   http://www.lucas-nussbaum.net/ |
| jabber: [EMAIL PROTECTED]             GPG: 1024D/023B3F4F |
diff -Nru /tmp/rkH0piKjPQ/infon-0~r198/Makefile /tmp/lRJFZCVkqm/infon-0~r198/Makefile
--- /tmp/rkH0piKjPQ/infon-0~r198/Makefile	2007-03-31 01:13:42.000000000 +0200
+++ /tmp/lRJFZCVkqm/infon-0~r198/Makefile	2007-09-29 10:52:09.000000000 +0200
@@ -88,7 +88,7 @@
                                   -lmingw32 -lopengl32 -lglu32 -lstdc++ -lwsock32 -lwinmm -mwindows -Wl,-s
 $(GL_RENDERER)      : infon.res
 else
-$(INFON_EXECUTABLE) : LDFLAGS  += -levent -lz -lm 
+$(INFON_EXECUTABLE) : LDFLAGS  += -levent -lz -lm -lrt
 
 # Example for embedding a renderer
 ifdef NULL_INFON
@@ -106,7 +106,7 @@
 endif
 
 $(INFOND_EXECUTABLE): CFLAGS   += -I$(LUA)/src/ # -DCHEATS
-$(INFOND_EXECUTABLE): LDFLAGS  += -levent -lz -lm
+$(INFOND_EXECUTABLE): LDFLAGS  += -levent -lz -lm -lrt
 
 # Experimental usage of 'all of lua in one file' as seen in lua-5.1.2/etc/all.c
 ifdef OPTIMIZE
diff -Nru /tmp/rkH0piKjPQ/infon-0~r198/debian/changelog /tmp/lRJFZCVkqm/infon-0~r198/debian/changelog
--- /tmp/rkH0piKjPQ/infon-0~r198/debian/changelog	2007-09-29 10:52:08.000000000 +0200
+++ /tmp/lRJFZCVkqm/infon-0~r198/debian/changelog	2007-09-29 10:52:09.000000000 +0200
@@ -1,3 +1,10 @@
+infon (0~r198-2.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Added -lrt to LDFLAGS to get clock_gettime.
+
+ -- Lucas Nussbaum <[EMAIL PROTECTED]>  Sat, 29 Sep 2007 10:50:10 +0200
+
 infon (0~r198-2) unstable; urgency=low
 
   * Uses metainit for the init script

Reply via email to