trunk, other multiple symbols
Stéphane Mottelet
stephane.mottelet at utc.fr
Fri Mar 14 11:00:01 CET 2008
Hi all,
I am still trying to compile Scilab, with the combination
apple gcc (4.0.1) + gfortran (4.2 this time) on 10.4, and
I can notice the following duplicate symbols.
Is it a good thing to suppress them because it could
be harmful some day ?
ld: multiple definitions of symbol _sizes
.libs/libscisound_la-wav.o definition of _sizes in section (__DATA,__data)
../../libs/libst/.libs/libscilibst.dylib(single module) definition of _sizes
ld: multiple definitions of symbol _styles
.libs/libscisound_la-wav.o definition of _styles in section (__DATA,__data)
../../libs/libst/.libs/libscilibst.dylib(single module) definition of
_styles
The problem comes from the duplicate global definitions
char *sizes[]={...}
char *styles[]={..}
in
modules/sound/src/c/sizes.h,
modules/sound/src/c/styles.h,
and libs/libst/misc.c
I my sources I have replaced the declarations in
modules/sound/src/c/sizes.h, modules/sound/src/c/styles.h
by
extern char *sizes[];
extern char *styles[];
There is another place where there is also a duplicate global declaration :
struct soundstream ftf;
in
scilab/modules/integer/src/c/mgeti.c
and modules/fileio/src/c/mget.c
I have replaced the declaration in mgeti.c by
extern struct soundstream ftf;
S.
--
Stéphane Mottelet
Laboratoire de Mathématiques Appliquées
Université de Technologie de Compiègne
http://www.lmac.utc.fr/~mottelet
More information about the dev
mailing list