Package: mxv Version: 1.32-3 Severity: serious Tags: patch Hi,
now that ivtools was updated to provide a correct Imakefile fragment, mxv fails to compile because: * it uses old /usr/X11R6/include path * it needs g++4 tweaks * it needs a fortran guru I know that mxv has been requested to be removed (#364092), so maybe this bug is not worth it. Using the patch provided in the BTS for #280302 and the patch attached to this report, compilation goes fine until link, where it mysteriously fails with: /usr/lib/libf2c.so: undefined reference to `MAIN__' collect2: ld returned 1 exit status >From what I have seen, mxv does not really use fortran but only libf2c, the one complaining. Also, attempting to link with g77 instead of f2c succeeds (see the second diff) but I don't think that the way to go. Thomas -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.17-1-686 Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15)
--- Imakefile- 2006-07-28 21:20:06.347527000 +0200 +++ Imakefile 2006-07-28 21:20:28.852933500 +0200 @@ -164,7 +164,7 @@ XCOMM ARCH_CCDEFINES = -DOSS -DXDisplay=_XDisplay -DCOMPLEX_SUPPORTED -Div2_6_minmax_h ARCH_OBJS = MyString.o MyRegex.o error.o -ARCH_CCINCLUDES = -I../$(LOCALINCLUDE) -I/usr/local/include/g++ -I/usr/X11R6/include/IV-2_6 -I/usr/X11R6/include +ARCH_CCINCLUDES = -I../$(LOCALINCLUDE) -I/usr/local/include/g++ -I/usr/include/IV-2_6 -I/usr/include XCOMM On systems which have builtin.h installed, use this next line. XCOMM ARCH_CCINCLUDES = -I/usr/local/include/g++ --- repclone.C- 2006-07-28 21:28:47.500097000 +0200 +++ repclone.C 2006-07-28 21:30:04.732923750 +0200 @@ -49,7 +49,7 @@ selection.intMin() < this->realLength() ? selection.size() : 0, chanrange.size()) { offsetPointer( - getHandle(selection.intMin(), chanrange.intMin()) - this->arrayOffset() + this->getHandle(selection.intMin(), chanrange.intMin()) - this->arrayOffset() ); }
--- debian/rules- 2006-07-28 21:11:14.494288250 +0200 +++ debian/rules 2006-07-28 21:11:38.339778500 +0200 @@ -36,7 +36,7 @@ dh_testdir # Add here commands to compile the package. - $(MAKE) + $(MAKE) CCLINKER=g77 #docbook-to-man debian/mxv.sgml > mxv.1 touch build-stamp --- Imakefile- 2006-07-28 21:20:06.347527000 +0200 +++ Imakefile 2006-07-28 21:20:28.852933500 +0200 @@ -19,7 +19,7 @@ XCOMM most modern Gnu platforms the libf2c library comes with the Gnu C++ XCOMM libraries. -APP_FORTLIBS = -lf2c +APP_FORTLIBS = #if defined(SunArchitecture)