* Bastian Blank wrote:
> Package: komi
> Version: 1.03-4
> Severity: serious
> 
> There was an error while trying to autobuild your package:
> 
> > Automatic build of komi_1.03-4 on debian01 by sbuild/s390 85
> [...]
> > cc -Wall -pedantic -std=c99 -O2 -I/usr/include/SDL -D_REENTRANT 
> > -DDATAPATH=\"/usr/share/games/komi/\" komi.o -o komi -L/usr/lib -lSDL 
> > -lpthread -lm -ldl -L/usr/lib -lasound -lm -ldl -lpthread -L/usr/lib -ldl 
> > -lartsc -lpthread -lgmodule-2.0 -ldl -lgthread-2.0 -lglib-2.0 -L/usr/lib 
> > -lesd -laudiofile -lm -laudio -lXt -L/usr/X11R6/lib -lX11 -lXext -laa -lgpm 
> > -L/usr/lib -laa -lm -L/usr/X11R6/lib -lX11 -lslang -lncurses -lSDL_mixer
> > /usr/bin/ld: cannot find -lgpm
> > collect2: ld returned 1 exit status
> > make[1]: *** [komi] Error 1
> > make[1]: Leaving directory `/build/buildd/komi-1.03'
> > make: *** [build-stamp] Error 2
> > ******************************************************************************
> > Build finished at 20060123-1242
> > FAILED [dpkg-buildpackage died]

I've investigated this a bit, and it looks like the upstream Makefile links
statically against SDL. I've tried rebuilding with dynamic linking and it
solves the FTBFS.

Any reason why komi would link statically against SDL? Steve? If not, maybe
the attached patch should be applied.

Thierry

Index: Makefile
===================================================================
--- Makefile    (revision 41)
+++ Makefile    (working copy)
@@ -11,7 +11,7 @@
 MANPATH=/usr/local/man/man6/
 
 MIXER=-lSDL_mixer
-SDL_LIB=$(shell sdl-config --static-libs) $(MIXER)
+SDL_LIB=$(shell sdl-config --libs) $(MIXER)
 
 CFLAGS=-Wall -pedantic -std=c99 -O2 \
        $(shell sdl-config --cflags) \

Attachment: signature.asc
Description: Digital signature

Reply via email to