Bug#444505: infon: FTBFS: undef reference to clock_gettime
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
Bug#444505: infon: FTBFS: undef reference to clock_gettime
Hi Lucas, Hi Ana, Am Montag, den 22.10.2007, 12:10 +0200 schrieb Lucas Nussbaum: On 22/10/07 at 05:51 +0200, Ana Guerrero wrote: 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! sorry for not responding earlier to the bug. I had planned to upload a new upstream revision the very same day (which is why I didn’t reply as I usually do), and then the upstream version just didn’t come... Anyways, thanks for the upload of the fix. I’ll let your package go in, and then include the fix with the next upstream release. Greetings, Joachim -- Joachim nomeata Breitner Debian Developer [EMAIL PROTECTED] | ICQ# 74513189 | GPG-Keyid: 4743206C JID: [EMAIL PROTECTED] | http://people.debian.org/~nomeata
Bug#444505: infon: FTBFS: undef reference to clock_gettime
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... Ana -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#444505: infon: FTBFS: undef reference to clock_gettime
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.0 +0200 +++ /tmp/lRJFZCVkqm/infon-0~r198/Makefile 2007-09-29 10:52:09.0 +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.0 +0200 +++ /tmp/lRJFZCVkqm/infon-0~r198/debian/changelog 2007-09-29 10:52:09.0 +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