Bug#957665: Fortran issue solved but symbols issues (Was: Bug#957665: Fortran issue in paw (Was: paw: ftbfs with GCC-10))

2020-10-18 Thread Étienne Mollier
Hi Andreas,

Andreas Tille, on 2020-10-17 21:52:24 +0200:
> /usr/bin/ld: 
> paw/cdf/shared/mlpdef.o:/build/paw-2.14.04.dfsg.2/build/pawlib/paw/cdf/mlpdef.c:155:
>  multiple definition of `klnkaddr'; 
> paw/cdf/shared/pawcdf.o:/build/paw-2.14.04.dfsg.2/build/pawlib/paw/cdf/pawcdf.c:155:
>  first defined here
> /usr/bin/ld: warning: alignment 4 of symbol `pawch3_' in 
> paw/ntuple/shared/c_decl.o is smaller than 16 in paw/code/shared/pawint3.o
> /usr/bin/ld: warning: size of symbol `hcfile_' changed from 12800 in 
> paw/code/shared/hgetid.o to 4000 in paw/ntuple/shared/c_decl.o
> /usr/bin/ld: warning: size of symbol `pawc_' changed from 40004 in 
> comis/code/shared/csdefn.o to 4 in paw/ntuple/shared/c_decl.o
> /usr/bin/ld: 
> paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:31:
>  multiple definition of `learn_'; 
> paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:31:
>  first defined here
> /usr/bin/ld: 
> paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:40:
>  multiple definition of `pat_'; 
> paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:40:
>  first defined here
> /usr/bin/ld: 
> paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:19:
>  multiple definition of `net_'; 
> paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:19:
>  first defined here
> /usr/bin/ld: 
> paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:49:
>  multiple definition of `divers_'; 
> paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:49:
>  first defined here
> /usr/bin/ld: 
> paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:92:
>  multiple definition of `Hessian'; 
> paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:92:
>  first defined here
> /usr/bin/ld: 
> paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:91:
>  multiple definition of `ExamplesIndex'; 
> paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:91:
>  first defined here
> /usr/bin/ld: 
> paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:90:
>  multiple definition of `JacobianMatrix'; 
> paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:90:
>  first defined here
> /usr/bin/ld: 
> paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:89:
>  multiple definition of `Gamma'; 
> paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:89:
>  first defined here
> ...
> 
> 
> Any further hints are welcome

I think this affects the C part of the program and should
probably be fixed "the easy way" by appending the CFLAGS
-fcommon; I suppose the remark from Andrius is otherwise
applicable here as well:

CFLAGS += -fcommon

Or investigate if this is just a matter of these global
variables not being "extern" as they should; this is not always
applicable because of the way they are used.

I understood you might be busy next week, so requested access to
the Salsa Debian Science Team repository to bring the
modification myself if you wish, my account is emollier.

Have a nice day,
-- 
Étienne Mollier 
Old rsa/3072: 5ab1 4edf 63bb ccff 8b54  2fa9 59da 56fe fff3 882d
New rsa/4096: 8f91 b227 c7d6 f2b1 948c  8236 793c f67e 8f0d 11da
Sent from /dev/pts/6, please excuse my verbosity.


signature.asc
Description: PGP signature


Bug#957665: Fortran issue solved but symbols issues (Was: Bug#957665: Fortran issue in paw (Was: paw: ftbfs with GCC-10))

2020-10-17 Thread Andreas Tille
Hi Andrius

On Thu, Oct 15, 2020 at 03:34:15PM +0300, Andrius Merkys wrote:
> 
> FFLAGS += -fallow-argument-mismatch

Thanks a lot for the helpful hint which enabled me to do one
step forward[1].  Unfortunately there are further errors:

...
/usr/bin/ld: 
paw/cdf/shared/mlpdef.o:/build/paw-2.14.04.dfsg.2/build/pawlib/paw/cdf/mlpdef.c:155:
 multiple definition of `klnkaddr'; 
paw/cdf/shared/pawcdf.o:/build/paw-2.14.04.dfsg.2/build/pawlib/paw/cdf/pawcdf.c:155:
 first defined here
/usr/bin/ld: warning: alignment 4 of symbol `pawch3_' in 
paw/ntuple/shared/c_decl.o is smaller than 16 in paw/code/shared/pawint3.o
/usr/bin/ld: warning: size of symbol `hcfile_' changed from 12800 in 
paw/code/shared/hgetid.o to 4000 in paw/ntuple/shared/c_decl.o
/usr/bin/ld: warning: size of symbol `pawc_' changed from 40004 in 
comis/code/shared/csdefn.o to 4 in paw/ntuple/shared/c_decl.o
/usr/bin/ld: 
paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:31:
 multiple definition of `learn_'; 
paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:31:
 first defined here
/usr/bin/ld: 
paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:40:
 multiple definition of `pat_'; 
paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:40:
 first defined here
/usr/bin/ld: 
paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:19:
 multiple definition of `net_'; 
paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:19:
 first defined here
/usr/bin/ld: 
paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:49:
 multiple definition of `divers_'; 
paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:49:
 first defined here
/usr/bin/ld: 
paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:92:
 multiple definition of `Hessian'; 
paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:92:
 first defined here
/usr/bin/ld: 
paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:91:
 multiple definition of `ExamplesIndex'; 
paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:91:
 first defined here
/usr/bin/ld: 
paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:90:
 multiple definition of `JacobianMatrix'; 
paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:90:
 first defined here
/usr/bin/ld: 
paw/mlpfit/shared/mlp_inter.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:89:
 multiple definition of `Gamma'; 
paw/mlpfit/shared/mlp_gen.o:/build/paw-2.14.04.dfsg.2/src/pawlib/paw/mlpfit/mlp_gen.h:89:
 first defined here
...


Any further hints are welcome

   Andreas.


[1] 
https://salsa.debian.org/science-team/paw/-/commit/5b7695142d3580516168086feb3e97c2b1fac575

-- 
http://fam-tille.de