On 22/10/07 at 05:51 +0200, Ana Guerrero wrote:
> On Sat, Sep 29, 2007 at 10:55:00AM +0200, Lucas Nussbaum wrote:
> > 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.
> >
> 
> Time to NMU?, I would do, but it is your patch...

Uploaded to DELAYED/3 with the attached patch, to give a change to
Joachim to upload himself before!
-- 
| Lucas Nussbaum
| [EMAIL PROTECTED]   http://www.lucas-nussbaum.net/ |
| jabber: [EMAIL PROTECTED]             GPG: 1024D/023B3F4F |
diff -u infon-0~r198/debian/changelog infon-0~r198/debian/changelog
--- infon-0~r198/debian/changelog
+++ infon-0~r198/debian/changelog
@@ -1,3 +1,10 @@
+infon (0~r198-2.1) unstable; urgency=high
+
+  * Non-maintainer upload.
+  * Added -lrt to LDFLAGS to get clock_gettime. Closes: #444505
+
+ -- Lucas Nussbaum <[EMAIL PROTECTED]>  Mon, 22 Oct 2007 11:41:51 +0200
+
 infon (0~r198-2) unstable; urgency=low
 
   * Uses metainit for the init script
only in patch2:
unchanged:
--- infon-0~r198.orig/Makefile
+++ infon-0~r198/Makefile
@@ -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

Reply via email to