[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Build problems with afno



Hi Udo,

I'm writing you on behalf of the Debian Med team which tries to
integrate Free Software in the field of medicine and biology straight
into Debian.  Afno came to our attention because it is used by
BioLinux (an Ubuntu derivative which profits from our work as well)
but when trying to build with latest gcc we were running into build
problems:


...
/bin/bash ../libtool  --tag=CXX   --mode=compile g++ -DHAVE_CONFIG_H -I. -I..   -D_FORTIFY_SOURCE=2 -pthread   -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c -o align.lo align.cc
libtool: compile:  g++ -DHAVE_CONFIG_H -I. -I.. -D_FORTIFY_SOURCE=2 -pthread -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -c align.cc  -fPIC -DPIC -o .libs/align.o
In file included from index.h:22:0,
                 from align.h:21,
                 from align.cc:21:
util.h: In instantiation of 'T throw_errno_if_minus1(T, const char*, const char*) [with T = long int]':
util.h:107:44:   required from here
util.h:48:46: error: 'throw_errno_if_eq' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
 { return throw_errno_if_eq( x, (T)(-1), a, b ) ; }
                                              ^
util.h:55:3: note: 'template<class T> T throw_errno_if_eq(T, T, const char*, const char*)' declared here, later in the translation unit
 T throw_errno_if_eq( T x, T y, const char* a, const char* b = 0 )
   ^
util.h: In instantiation of 'T throw_errno_if_minus1(T, const char*, const char*) [with T = int]':
util.h:130:73:   required from here
util.h:48:46: error: 'throw_errno_if_eq' was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
 { return throw_errno_if_eq( x, (T)(-1), a, b ) ; }
                                              ^
util.h:55:3: note: 'template<class T> T throw_errno_if_eq(T, T, const char*, const char*)' declared here, later in the translation unit
 T throw_errno_if_eq( T x, T y, const char* a, const char* b = 0 )
   ^
make[4]: *** [align.lo] Error 1


I wonder whether you have any clue how to fix this problem.

Kind regards and thanks for providing afno as Free Software

     Andreas.

-- 
http://fam-tille.de


Reply to: