Package: clips Version: 6.24-3 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu natty ubuntu-patch
Package failed to build from source. Here is the error log: cc -Wall -Wundef -Wpointer-arith -Wshadow -Wcast-qual -Wcast-align -Winline -Wmissing-declarations -Wredundant-decls -Wmissing-prototypes -Wnested-externs -Wstrict-prototypes -Waggregate-return -Wno-implicit -g -O2 -fno-common -I. -Wl,-Bsymbolic-functions -L. -g -lm -lncurses -lrt -lm ./main.o -lclips -o clips ./libclips.so: undefined reference to `sincos' ./libclips.so: undefined reference to `sqrt' ./libclips.so: undefined reference to `clock_gettime' ./libclips.so: undefined reference to `floor' ./libclips.so: undefined reference to `ceil' ./libclips.so: undefined reference to `cosh' ./libclips.so: undefined reference to `tanh' ./libclips.so: undefined reference to `asin' ./libclips.so: undefined reference to `log' ./libclips.so: undefined reference to `atan' ./libclips.so: undefined reference to `sinh' ./libclips.so: undefined reference to `acos' ./libclips.so: undefined reference to `exp' ./libclips.so: undefined reference to `sin' ./libclips.so: undefined reference to `pow' ./libclips.so: undefined reference to `cos' ./libclips.so: undefined reference to `log10' collect2: ld returned 1 exit status make[1]: *** [clips] Error 1 make[1]: Leaving directory `/home/tarun/source/clips/clips-6.24/clipssrc' make: *** [build-stamp] Error 2 dpkg-buildpackage: error: debian/rules build gave error exit status 2 debuild: fatal error at line 1335: dpkg-buildpackage -rfakeroot -D -us -uc -b failed *** /tmp/tmpg82GNE In Ubuntu, we've applied the attached patch to achieve the following: ## There is no patch, I made changes in file clips-6.24/clipssrc/Makefile.in ## which fixed this error. * clips-6.24/clipssrc/Makefile.in: libraries moved to the end. (LP: #728438) We thought you might be interested in doing the same. -- System Information: Debian Release: squeeze/sid APT prefers maverick-updates APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 'maverick-backports'), (500, 'maverick') Architecture: i386 (i686) Kernel: Linux 2.6.35-25-generic (SMP w/4 CPU cores) Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash
diff -u clips-6.24/debian/changelog clips-6.24/debian/changelog diff -u clips-6.24/debian/control clips-6.24/debian/control --- clips-6.24/debian/control +++ clips-6.24/debian/control @@ -1,7 +1,8 @@ Source: clips Section: interpreters Priority: optional -Maintainer: Javier Fernandez-Sanguino Pen~a <j...@debian.org> +Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com> +XSBC-Original-Maintainer: Javier Fernandez-Sanguino Pen~a <j...@debian.org> Build-Depends: libncurses-dev, debhelper Standards-Version: 3.5.7 Homepage: http://clipsrules.sourceforge.net @@ -20,7 +21,6 @@ (CLIPS Object-Oriented Language) which is directly integrated with the inference engine. - Package: libclips Architecture: any Section: libs diff -u clips-6.24/clipssrc/Makefile.in clips-6.24/clipssrc/Makefile.in --- clips-6.24/clipssrc/Makefile.in +++ clips-6.24/clipssrc/Makefile.in @@ -331,7 +331,7 @@ $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LIBS) $(OBJS) -o $@ else $(CLIPS_NAME) : $(EXTRAOBJS) libclips.so - $(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(LIBS) $(EXTRAOBJS) -lclips -o $@ + $(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRAOBJS) -lclips -o $@ $(LDFLAGS) $(LIBS) endif #clips: depend $(OBJS)