[prev in list] [next in list] [prev in thread] [next in thread]
List: scilab-dev
Subject: trunk, other multiple symbols
From: Stéphane_Mottelet <stephane.mottelet () utc ! fr>
Date: 2008-03-14 10:00:01
Message-ID: 47DA4CA1.9040308 () utc ! fr
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic