Source: hdf-eos5 Version: 2.16v1.00.dfsg.1-2 There's an issue similar to Bug#555411:
$ nm libhe5-hdfeos-dev_5.1.12.dfsg.1-2_amd64/usr/lib/libhe5_hdfeos.a \ | grep -E _\$ U _GLOBAL_OFFSET_TABLE_ U _GLOBAL_OFFSET_TABLE_ U _GLOBAL_OFFSET_TABLE_ U _GLOBAL_OFFSET_TABLE_ U _GLOBAL_OFFSET_TABLE_ U _GLOBAL_OFFSET_TABLE_ $ Once again, the Fortran interface functions' names lack a trailing underscore. However, the obvious change --cut-- diff -u hdf-eos5-5.1.12.dfsg.1/debian/rules hdf-eos5-5.1.12.dfsg.1/debian/rules --- hdf-eos5-5.1.12.dfsg.1/debian/rules +++ hdf-eos5-5.1.12.dfsg.1/debian/rules @@ -6,8 +6,11 @@ DEB_MAKE_CHECK_TARGET := check DEB_MAKE_CLEAN_TARGET := clean distclean maintainer-clean -DEB_CONFIGURE_EXTRA_FLAGS := --enable-shared --with-pic -DEB_CONFIGURE_SCRIPT_ENV += CFLAGS="-D_HDFEOS5_THREADSAFE" +DEB_CONFIGURE_EXTRA_FLAGS := --enable-shared --with-pic \ + he2_cv_fortran90_compiler=no +DEB_CONFIGURE_SCRIPT_ENV += \ + CFLAGS="" \ + CPPFLAGS="-D_HDFEOS5_THREADSAFE -Df2cFortran" DEB_AUTO_UPDATE_LIBTOOL := pre clean:: --cut-- has resulted in an unfortunate FTBFS: --cut-- libtool: link: cc -o .libs/he5_za_writedata he5_za_writedata.o ../src/.libs/lib he5_hdfeos.so -lgctp /usr/lib/libhdf5.so -lz -lm gfortran -g -O2 -c -o he5_gd_definefieldsF_64.o he5_gd_definefieldsF_64.f /bin/bash ../libtool --tag=F77 --mode=link gfortran -g -O2 -o he5_gd_definefieldsF_64 he5_gd_definefieldsF_64.o ../src/libhe5_hdfeos.la -lgctp -lhdf5 -lz -lm libtool: link: unsupported hardcode properties libtool: link: See the libtool documentation for more information. libtool: link: Fatal configuration error. make[3]: *** [he5_gd_definefieldsF_64] Error 1 make[3]: Leaving directory `/tmp/buildd/hdf-eos5-5.1.12.dfsg.1/samples' --cut-- Since I don't know how to solve fix this problem properly, I've temporarily hacked the Fortran tests out as shown in the full interdiff below. Looks like these tests weren't built for the Debian package, anyway. For anyone interested, I've put the resulting the source and amd64 binary packages at: http://waterlily.ipv6.uusia.org/~ivan/mini-dinstall/1gray-misc/source/hdf-eos5_5.1.12.dfsg.1-2.is+0.2.diff.gz http://waterlily.ipv6.uusia.org/~ivan/mini-dinstall/1gray-misc/source/hdf-eos5_5.1.12.dfsg.1-2.is+0.2.dsc http://waterlily.ipv6.uusia.org/~ivan/mini-dinstall/1gray-misc/amd64/libhe5-hdfeos0_5.1.12.dfsg.1-2.is+0.2_amd64.deb http://waterlily.ipv6.uusia.org/~ivan/mini-dinstall/1gray-misc/amd64/libhe5-hdfeos-dev_5.1.12.dfsg.1-2.is+0.2_amd64.deb http://waterlily.ipv6.uusia.org/~ivan/mini-dinstall/1gray-misc/i386/libhe5-hdfeos0_5.1.12.dfsg.1-2.is+0.2_i386.deb http://waterlily.ipv6.uusia.org/~ivan/mini-dinstall/1gray-misc/i386/libhe5-hdfeos-dev_5.1.12.dfsg.1-2.is+0.2_i386.deb --cut: /etc/apt/sources.list -- deb http://waterlily.ip.uusia.org/~ivan/mini-dinstall/ 1gray-misc/$(ARCH)/ deb http://waterlily.ip.uusia.org/~ivan/mini-dinstall/ 1gray-misc/all/ deb-src http://waterlily.ip.uusia.org/~ivan/mini-dinstall/ 1gray-misc/source/ --cut: /etc/apt/sources.list -- (I hope to perform some test builds using this and the packages built from hdf-eos4 later this week.) * The interdiff --cut-- diff -u hdf-eos5-5.1.12.dfsg.1/debian/changelog hdf-eos5-5.1.12.dfsg.1/debian/changelog --- hdf-eos5-5.1.12.dfsg.1/debian/changelog +++ hdf-eos5-5.1.12.dfsg.1/debian/changelog @@ -1,3 +1,17 @@ +hdf-eos5 (5.1.12.dfsg.1-2.is+0.2) 1gray-misc; urgency=low + + * Clear CFLAGS. + * Prevent Fortran code below samples/ and testdrivers/ from being built + and run. + + -- Ivan Shmakov <i...@main.uusia.org> Tue, 10 Nov 2009 23:23:15 +0600 + +hdf-eos5 (5.1.12.dfsg.1-2.is+0.1) 1gray-misc; urgency=low + + * Added -Df2cFortran to CPPFLAGS. + + -- Ivan Shmakov <i...@main.uusia.org> Tue, 10 Nov 2009 12:43:20 +0600 + hdf-eos5 (5.1.12.dfsg.1-2) unstable; urgency=low * Add autoconf, automake to Build-Depends. Closes: #545833. diff -u hdf-eos5-5.1.12.dfsg.1/debian/rules hdf-eos5-5.1.12.dfsg.1/debian/rules --- hdf-eos5-5.1.12.dfsg.1/debian/rules +++ hdf-eos5-5.1.12.dfsg.1/debian/rules @@ -6,8 +6,11 @@ DEB_MAKE_CHECK_TARGET := check DEB_MAKE_CLEAN_TARGET := clean distclean maintainer-clean -DEB_CONFIGURE_EXTRA_FLAGS := --enable-shared --with-pic -DEB_CONFIGURE_SCRIPT_ENV += CFLAGS="-D_HDFEOS5_THREADSAFE" +DEB_CONFIGURE_EXTRA_FLAGS := --enable-shared --with-pic \ + he2_cv_fortran90_compiler=no +DEB_CONFIGURE_SCRIPT_ENV += \ + CFLAGS="" \ + CPPFLAGS="-D_HDFEOS5_THREADSAFE -Df2cFortran" DEB_AUTO_UPDATE_LIBTOOL := pre clean:: only in patch2: unchanged: --- hdf-eos5-5.1.12.dfsg.1.orig/configure.ac +++ hdf-eos5-5.1.12.dfsg.1/configure.ac @@ -582,6 +582,14 @@ header files should enable this option.])], [INSTALL_INCLUDE=$enableval]) +AM_CONDITIONAL([LIBTOOL_ISSUE_IS_FIXED_CONDITIONAL], [false]) +## FIXME: remove the above once the following error is fixed: +## +## /bin/bash ../libtool --tag=F77 ... -o he5_gd_definefieldsF_64 ... +## libtool: link: unsupported hardcode properties +## libtool: link: See the libtool documentation for more information. +## libtool: link: Fatal configuration error. +## AM_CONDITIONAL([TESTDRIVERS_CONDITIONAL], [test "X$TESTDRIVERS_DIR" = "Xyes"]) AM_CONDITIONAL([INSTALL_INCLUDE_CONDITIONAL], [test "X$INSTALL_INCLUDE" = "Xyes"]) AM_CONDITIONAL([F2CFORTRAN_CONDITIONAL], [test "X$F2CFORTRAN_MACRO" = "Xyes"]) only in patch2: unchanged: --- hdf-eos5-5.1.12.dfsg.1.orig/samples/Makefile.am +++ hdf-eos5-5.1.12.dfsg.1/samples/Makefile.am @@ -22,6 +22,14 @@ he5_za_defexternalfld he5_za_definefields he5_za_info \ he5_za_rdexternaldata he5_za_readdata he5_za_setup \ he5_za_wrexternaldata he5_za_writedata +if LIBTOOL_ISSUE_IS_FIXED_CONDITIONAL +## FIXME: remove the above once the following error is fixed: +## +## /bin/bash ../libtool --tag=F77 ... -o he5_gd_definefieldsF_64 ... +## libtool: link: unsupported hardcode properties +## libtool: link: See the libtool documentation for more information. +## libtool: link: Fatal configuration error. +## if F2CFORTRAN_CONDITIONAL if F2CFORTRAN_32PTR_CONDITIONAL check_PROGRAMS += \ @@ -161,11 +169,14 @@ he5_za_writedataF_64_SOURCES = he5_za_writedataF_64.f endif endif +endif # Tests consist of several programs run in succession. Each of these # names is the name of such a "sequence" of tests. TEST_SEQUENCES=gd_write_test gd_unlim_test pt_write_test sw_write_test \ sw_unlim_test sw_extend_test za_write_test +if LIBTOOL_ISSUE_IS_FIXED_CONDITIONAL +## FIXME: remove the above once the issue (see above) is fixed if F2CFORTRAN_CONDITIONAL if F2CFORTRAN_32PTR_CONDITIONAL TEST_SEQUENCES+=gd_write_test_32f pt_write_test_32f sw_write_test_32f za_write_test_32f @@ -173,6 +184,7 @@ TEST_SEQUENCES+=gd_write_test_64f pt_write_test_64f sw_write_test_64f za_write_test_64f endif endif +endif # 'make check' should run each of the test sequences above check-local: $(TEST_SEQUENCES) only in patch2: unchanged: --- hdf-eos5-5.1.12.dfsg.1.orig/testdrivers/point/Makefile.am +++ hdf-eos5-5.1.12.dfsg.1/testdrivers/point/Makefile.am @@ -10,6 +10,14 @@ # Build TestPoint from TestPoint.c check_PROGRAMS = TestPoint +if LIBTOOL_ISSUE_IS_FIXED_CONDITIONAL +## FIXME: remove the above once the following error is fixed: +## +## /bin/bash ../libtool --tag=F77 ... -o he5_gd_definefieldsF_64 ... +## libtool: link: unsupported hardcode properties +## libtool: link: See the libtool documentation for more information. +## libtool: link: Fatal configuration error. +## if F2CFORTRAN_CONDITIONAL if F2CFORTRAN_32PTR_CONDITIONAL check_PROGRAMS += testpoint32 @@ -19,10 +27,13 @@ testpoint64_SOURCES = testpoint64.f endif endif +endif # Run TestPoint as a test when the user types 'make check' TEST_SEQUENCES=test_c VERBOSE_TEST_SEQUENCES=test_c_verbose +if LIBTOOL_ISSUE_IS_FIXED_CONDITIONAL +## FIXME: remove the above once the issue (see above) is fixed if F2CFORTRAN_CONDITIONAL if F2CFORTRAN_32PTR_CONDITIONAL TEST_SEQUENCES+=test_32f @@ -32,6 +43,7 @@ VERBOSE_TEST_SEQUENCES+=test_64f endif endif +endif test_c: $(check_PROGRAMS) ./TestPoint only in patch2: unchanged: --- hdf-eos5-5.1.12.dfsg.1.orig/testdrivers/grid/Makefile.am +++ hdf-eos5-5.1.12.dfsg.1/testdrivers/grid/Makefile.am @@ -11,6 +11,14 @@ # Build TestGrid. Since no sources are listed, build it from TestGrid.c check_PROGRAMS = TestGrid +if LIBTOOL_ISSUE_IS_FIXED_CONDITIONAL +## FIXME: remove the above once the following error is fixed: +## +## /bin/bash ../libtool --tag=F77 ... +## libtool: link: unsupported hardcode properties +## libtool: link: See the libtool documentation for more information. +## libtool: link: Fatal configuration error. +## if F2CFORTRAN_CONDITIONAL if F2CFORTRAN_32PTR_CONDITIONAL check_PROGRAMS += testgrid32 @@ -28,10 +36,13 @@ endif endif endif +endif # Run TestGrid as a test when the user types 'make check' TEST_SEQUENCES=test_c VERBOSE_TEST_SEQUENCES=test_c_verbose +if LIBTOOL_ISSUE_IS_FIXED_CONDITIONAL +## FIXME: remove the above once the issue (see above) is fixed if F2CFORTRAN_CONDITIONAL if F2CFORTRAN_32PTR_CONDITIONAL TEST_SEQUENCES+=test_32f @@ -41,6 +52,7 @@ VERBOSE_TEST_SEQUENCES+=test_64f endif endif +endif test_c: $(check_PROGRAMS) ./TestGrid only in patch2: unchanged: --- hdf-eos5-5.1.12.dfsg.1.orig/testdrivers/za/Makefile.am +++ hdf-eos5-5.1.12.dfsg.1/testdrivers/za/Makefile.am @@ -10,6 +10,14 @@ # Programs to build when user types 'make check' check_PROGRAMS = TestZa TestAlias +if LIBTOOL_ISSUE_IS_FIXED_CONDITIONAL +## FIXME: remove the above once the following error is fixed: +## +## /bin/bash ../libtool --tag=F77 ... -o he5_gd_definefieldsF_64 ... +## libtool: link: unsupported hardcode properties +## libtool: link: See the libtool documentation for more information. +## libtool: link: Fatal configuration error. +## if F2CFORTRAN_CONDITIONAL if F2CFORTRAN_32PTR_CONDITIONAL check_PROGRAMS += testza32 @@ -19,9 +27,12 @@ testza64_SOURCES = testza64.f endif endif +endif # When user types 'make check', run programs above as tests. TEST_SEQUENCES=test_c +if LIBTOOL_ISSUE_IS_FIXED_CONDITIONAL +## FIXME: remove the above once the issue (see above) is fixed if F2CFORTRAN_CONDITIONAL if F2CFORTRAN_32PTR_CONDITIONAL TEST_SEQUENCES+=test_32f @@ -29,6 +40,7 @@ TEST_SEQUENCES+=test_64f endif endif +endif test_c: $(check_PROGRAMS) ./TestZa only in patch2: unchanged: --- hdf-eos5-5.1.12.dfsg.1.orig/testdrivers/swath/Makefile.am +++ hdf-eos5-5.1.12.dfsg.1/testdrivers/swath/Makefile.am @@ -10,6 +10,14 @@ # Build TestSwath from TestSwath.c check_PROGRAMS = TestSwath +if LIBTOOL_ISSUE_IS_FIXED_CONDITIONAL +## FIXME: remove the above once the following error is fixed: +## +## /bin/bash ../libtool --tag=F77 ... -o he5_gd_definefieldsF_64 ... +## libtool: link: unsupported hardcode properties +## libtool: link: See the libtool documentation for more information. +## libtool: link: Fatal configuration error. +## if F2CFORTRAN_CONDITIONAL if F2CFORTRAN_32PTR_CONDITIONAL check_PROGRAMS += testswath32 @@ -19,10 +27,13 @@ testswath64_SOURCES = testswath64.f endif endif +endif # Run TestSwath when user types 'make check' TEST_SEQUENCES=test_c VERBOSE_TEST_SEQUENCES=test_c_verbose +if LIBTOOL_ISSUE_IS_FIXED_CONDITIONAL +## FIXME: remove the above once the issue (see above) is fixed if F2CFORTRAN_CONDITIONAL if F2CFORTRAN_32PTR_CONDITIONAL TEST_SEQUENCES+=test_32f @@ -32,6 +43,7 @@ VERBOSE_TEST_SEQUENCES+=test_64f endif endif +endif test_c: $(check_PROGRAMS) ./TestSwath --cut-- * See also http://bugs.debian.org/555411 http://gcc.gnu.org/onlinedocs/gcc-4.4.2/gfortran/Code-Gen-Options.html#index-g_t_0040code_007bfno_002dunderscoring_007d-207 -- FSF associate member #7257 -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org