[Debian-med-packaging] Trying to disable error=format-security for clapack

Gianfranco Costamagna costamagnagianfranco at yahoo.it
Mon May 23 10:17:15 UTC 2016


http://ftp.kevag-telekom.de/mirrors/gentoo.org/rsync/sci-libs/clapack/files/clapack-3.2.1-noblasf2c.patch

seems that the i_len_trim.c file might be somewhere else, look at gentoo packaging, they seem to have not
stripped it from the tarball I guess.

Does this helps?

G.





Il Lunedì 23 Maggio 2016 12:08, Andreas Tille <andreas at fam-tille.de> ha scritto:
Hi Gianfranco,

your very helpful hints helped me to get some steps forward.  However,
its not finally done.

On Sun, May 22, 2016 at 06:48:36AM +0000, Gianfranco Costamagna wrote:
> >Another question is how I could link against the Debian packaged f2c
> >rather than building the one that comes with clapack upstream.
> 
> I would say: remove the add_subdirectory (line 21)
> and then:
> 1) create a "FindF2C.cmake" file and use it as helper
> (that would be the best and upstreamable choice
> you can find some examples in "ettercap/cmake/Modules/Find*"
> 
> 
> 2) just include_directories for helping it to find the .h file (if not in standard directory)
> and target_link_libraries of the .so file.

I think the .h files are not a problem.  With my recent changes in Git[1]
there is a problem with the linker when running the clapack test suite:

...
std.dir/dtrt03.c.o CMakeFiles/xlintstd.dir/dtrt05.c.o CMakeFiles/xlintstd.dir/dtrt06.c.o CMakeFiles/xlintstd.dir/dtzt01.c.o CMakeFiles/xlintstd.dir/dtzt02.c.o CMakeFiles/xlintstd.dir/dgennd.c.o CMakeFiles/xlintstd.dir/ddrvge.c.o CMakeFiles/xlintstd.dir/ddrvgb.c.o CMakeFiles/xlintstd.dir/derrge.c.o CMakeFiles/xlintstd.dir/ddrvpo.c.o CMakeFiles/xlintstd.dir/derrpo.c.o CMakeFiles/xlintstd.dir/dlaord.c.o CMakeFiles/xlintstd.dir/__/__/INSTALL/dsecnd.c.o  -o xlintstd -rdynamic ../MATGEN/libtmglib.a ../../SRC/libclapack.so.3.2.1 ../../BLAS/SRC/libcblas.so.3.2.1 -lm -lf2c -Wl,-rpath,/build/clapack-3.2.1/obj-x86_64-linux-gnu/SRC:/build/clapack-3.2.1/obj-x86_64-linux-gnu/BLAS/SRC 
CMakeFiles/xlintstd.dir/alaerh.c.o: In function `alaerh_':
/build/clapack-3.2.1/TESTING/LIN/alaerh.c:444: undefined reference to `i_len_trim'
/build/clapack-3.2.1/TESTING/LIN/alaerh.c:591: undefined reference to `i_len_trim'
/build/clapack-3.2.1/TESTING/LIN/alaerh.c:604: undefined reference to `i_len_trim'
/build/clapack-3.2.1/TESTING/LIN/alaerh.c:843: undefined reference to `i_len_trim'
/build/clapack-3.2.1/TESTING/LIN/alaerh.c:473: undefined reference to `i_len_trim'
CMakeFiles/xlintstd.dir/alaerh.c.o:/build/clapack-3.2.1/TESTING/LIN/alaerh.c:737: more undefined references to `i_len_trim' follow
CMakeFiles/xlintstd.dir/dchkps.c.o: In function `dchkps_':
/build/clapack-3.2.1/TESTING/LIN/dchkps.c:252: undefined reference to `i_dceiling'
collect2: error: ld returned 1 exit status


Any further hint?

Kind regards

      Andreas.



[1] https://anonscm.debian.org/git/debian-science/packages/clapack.git

-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list