Package: pennmush Version: 1.8.2p8-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu ubuntu-patch oneiric
If netmud isn't linked with -lm, then you get something like this in current Ubuntu build environments (originally reported as https://bugs.launchpad.net/ubuntu/+source/pennmush/+bug/756097): https://launchpadlibrarian.net/71867469/buildlog_ubuntu-oneiric-i386.pennmush_1.8.2p8-1build2_FAILEDTOBUILD.txt.gz gcc -L/usr/local/lib -g -O2 -I.. -I../hdrs -D__USE_POSIX -I/usr/local/include -o netmud access.o atr_tab.o attrib.o boolexp.o bsd.o bufferq.o chunk.o cmdlocal.o cmds.o command.o compress.o conf.o cque.o create.o db.o destroy.o extchat.o extmail.o filecopy.o flaglocal.o flags.o funcrypt.o function.o fundb.o funlist.o funlocal.o funmath.o funmisc.o funstr.o funtime.o funufun.o game.o help.o htab.o ident.o local.o lock.o log.o look.o malias.o match.o memcheck.o move.o mycrypt.o mymalloc.o mysocket.o myrlimit.o myssl.o notify.o parse.o pcre.o player.o plyrlist.o predicat.o privtab.o ptab.o rob.o services.o set.o shs.o sig.o speech.o sql.o strdup.o strtree.o strutil.o tables.o timer.o unparse.o utils.o version.o warnings.o wild.o wiz.o -lssl -lcrypto funmath.o: In function `math_stddev': /build/buildd/pennmush-1.8.2p8/build-pennmush/src/funmath.c:2350: undefined reference to `sqrt' funmath.o: In function `nval_sort': /build/buildd/pennmush-1.8.2p8/build-pennmush/src/funmath.c:2263: undefined reference to `pow' [... more of the same ...] ptab.o: In function `ptab_stats': /build/buildd/pennmush-1.8.2p8/build-pennmush/src/ptab.c:362: undefined reference to `log' collect2: ld returned 1 exit status The simplest fix is to just force netmud to link with -lm. There's probably a more upstream-correct way to do it with Configure, but I'm getting too old to dig into Metaconfig! * Link netmud with -lm. --- pennmush-1.8.2p8.orig/src/Makefile.SH +++ pennmush-1.8.2p8/src/Makefile.SH @@ -111,7 +111,7 @@ netmud: $(O_FILES) @echo "Making netmud." -mv -f netmud netmud~ - $(CC) $(LDFLAGS) $(CCFLAGS) -o netmud $(O_FILES) $(LIBS) + $(CC) $(LDFLAGS) $(CCFLAGS) -o netmud $(O_FILES) $(LIBS) -lm # By default, db.c initially allocates enough space for 5000 objects, then # grows the space if needed. To change this value, include Thanks, -- Colin Watson [cjwat...@ubuntu.com] -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org