Bug#554380: FTBFS: configure: error: linking to Fortran libraries from C fails

2009-11-04 Thread Nobuhiro Iwamatsu
Package: libitpp
Version: 4.0.6-3
Severity: important
Tags: patch
User: debian-...@superh.org
Usertags: sh4
X-Debbugs-CC: debian-sup...@lists.debian.org

Hi,

I am now trying to run Debian on Renesas SH(sh4) CPU.
http://buildd.debian-ports.org/status/architecture.php?a=sh4

libitpp can not build on sh4. Because configure of this package generated
from old autoconf.

-
checking for Fortran 77 libraries of gfortran...  -little
-L/usr/lib/gcc/sh4-linux-gnu/4.3.4
-L/usr/lib/gcc/sh4-linux-gnu/4.3.4/../../.. -lgfortranbegin -lgfortran
-lm
checking for dummy main to link with Fortran 77 libraries... unknown
configure: error: linking to Fortran libraries from C fails
See `config.log' for more details.
-

Old autoconf adds -little option to compile option. sh4 architecture can't
interpret this option. Therefore, this has build error.
 http://lists.gnu.org/archive/html/bug-autoconf/2008-10/msg00039.html

We need patch revising this.
I added patch to revising these. Package building was fine.
Please apply  patch.

Best regards,
 Nobuhiro
--- a/configure	2009-11-04 02:19:41.0 +
+++ b/configure	2009-11-04 02:19:57.0 +
@@ -23553,7 +23553,7 @@
 
   ;;
   # Ignore these flags.
--lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -LANG:=* | -LIST:* | -LNO:*)
+-lang* | -lcrt*.o | -lc | -lgcc* | -lSystem | -libmil | -little | -LANG:=* | -LIST:* | -LNO:*)
   ;;
 -lkernel32)
   test x$CYGWIN != xyes  ac_cv_f77_libs=$ac_cv_f77_libs $ac_arg


Bug#554380: FTBFS: configure: error: linking to Fortran libraries from C fails

2009-11-04 Thread Kumar Appaiah
Dear Nobuhiro,

On Wed, Nov 04, 2009 at 08:46:30PM +0900, Nobuhiro Iwamatsu wrote:
 I am now trying to run Debian on Renesas SH(sh4) CPU.
 http://buildd.debian-ports.org/status/architecture.php?a=sh4
 
 libitpp can not build on sh4. Because configure of this package generated
 from old autoconf.
 
 -
 checking for Fortran 77 libraries of gfortran...  -little
 -L/usr/lib/gcc/sh4-linux-gnu/4.3.4
 -L/usr/lib/gcc/sh4-linux-gnu/4.3.4/../../.. -lgfortranbegin -lgfortran
 -lm
 checking for dummy main to link with Fortran 77 libraries... unknown
 configure: error: linking to Fortran libraries from C fails
 See `config.log' for more details.
 -
 
 Old autoconf adds -little option to compile option. sh4 architecture can't
 interpret this option. Therefore, this has build error.
  http://lists.gnu.org/archive/html/bug-autoconf/2008-10/msg00039.html
 
 We need patch revising this.
 I added patch to revising these. Package building was fine.
 Please apply  patch.

Thanks for prividing a tested patch. I shall apply it in a subsequent
upload, which should happen within a few days.

Thanks!

Kumar



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org