| Author | Topic |
Posts: 273
Registered: June 2006
|
|
|
Posts: 413
Registered: May 2004
|
|
|
Posts: 273
Registered: June 2006
|
|
|
Posts: 2
Registered: June 2006
|
|
|
Posts: 273
Registered: June 2006
|
|
|
Posts: 413
Registered: May 2004
|
|
|
Posts: 273
Registered: June 2006
|
|
|
Posts: 273
Registered: June 2006
|
|
|
Posts: 961
Registered: October 2003
|
|
Re: Problem with MatLab
|
27 Jun '06 23:42

|
 |
|
>>> Model = TranslateSBML('my_model.xml')
AD>
AD> Suddenly the Matlab window disappeared and in the
AD> terminal the following error message occured:
AD>
AD> *** glibc detected *** double free or corruption
AD> (out): 0xa9627968 ***
AD>
AD> Seems that there is still something wrong.
Hi,
I'm trying to catch up on a backlog of mail. On this topic
from last week: one thing that wasn't clear to me is what
operating system this was on (looks like Linux, but which
flavor?). Also, what exactly were your configure options?
Also, are you actually using SBMLToolbox or just the
TranslateSBML that comes with libSBML? (And what version?)
Finally, I noticed that the original report said you were
using SBToolbox. We are in fact not the authors of that
(Henning Schmidt is). Sarah Keating developed SBMLToolbox,
and while SBToolbox uses that underneath, and your problem
does not appear to be in SBToolbox per se, it is worth
keeping in mind that there are multiple systems at work.
Sorry for all the questions.
MH
--
Mike Hucka, Ph.D. <mhucka@caltech.edu> tel +1.626.395.8128
Senior Research Fellow, Control and Dynamical Systems
Co-director, Biological Network Modeling Center
The Beckman Institute @ The California Institute of Technology
|
|
|
Posts: 1
Registered: June 2006
|
|
Re: Problem with MatLab
|
29 Jun '06 02:48

|
 |
|
Dear Sarah M. Keating,
I followed the discussion about the SBMLtoolbox on Matlab,
and tried the solutions posted by you and others.
As I know, there are two motifications proposed.
==============================================================
One is the "include section" of TranslateSBML.c
In my TranslateSBML.c, I have made it looks like ...
#include "sbml/SBMLReader.h"
#include "sbml/SBMLTypes.h"
#include "sbml/xml/ParseMessage.h"
#include "sbml/util/util.h"
==============================================================
Second way is the "variable defintion" of Makefile
MEX = /Applications/MATLAB704/bin/mex
XCFLAGS = $(CFLAGS)
XLDFLAGS = $(LDFLAGS) -L/usr/local/lib
XCPPFLAGS = $(CPPFLAGS) -I/usr/local/include -I/usr/local/include/sbml
LIBS = -lsbml
==============================================================
When I tried to "make" it, the message is shown as follows.
Applications/MATLAB704/bin/mex -I/usr/local/include -I/usr/local/include/sbml -L/usr/local/lib TranslateSBML.c -lsbml
TranslateSBML.c: In function `GetKineticLaw':
TranslateSBML.c:1686: warning: passing arg 1 of `LookForCSymbolTime' discards qualifiers from pointer target type
TranslateSBML.c: In function `GetRule':
TranslateSBML.c:2051: warning: passing arg 1 of `LookForCSymbolTime' discards qualifiers from pointer target type
TranslateSBML.c: In function `GetFunctionDefinition':
TranslateSBML.c:2285: warning: passing arg 1 of `LookForCSymbolTime' discards qualifiers from pointer target type
TranslateSBML.c: In function `GetEvent':
TranslateSBML.c:2408: warning: passing arg 1 of `LookForCSymbolTime' discards qualifiers from pointer target type
TranslateSBML.c:2413: warning: passing arg 1 of `LookForCSymbolTime' discards qualifiers from pointer target type
TranslateSBML.c: In function `GetEventAssignment':
TranslateSBML.c:2563: warning: passing arg 1 of `LookForCSymbolTime' discards qualifiers from pointer target type
TranslateSBML.c: In function `LookForCSymbolTime':
TranslateSBML.c:2654: warning: assignment discards qualifiers from pointer target type
ld: warning multiple definitions of symbol ___gxx_personality_v0
/usr/lib/gcc/darwin/3.3/libstdc++.a(eh_personality.o) private external definition of ___gxx_personality_v0 in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of ___gxx_personality_v0
ld: warning multiple definitions of symbol ___cxa_call_unexpected
/usr/lib/gcc/darwin/3.3/libstdc++.a(eh_personality.o) private external definition of ___cxa_call_unexpected in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of ___cxa_call_unexpected
ld: warning multiple definitions of symbol __ZTVSt9bad_alloc
/usr/lib/gcc/darwin/3.3/libstdc++.a(new_handler.o) private external definition of __ZTVSt9bad_alloc in section (__DATA,__const)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZTVSt9bad_alloc
ld: warning multiple definitions of symbol __ZNSt9bad_allocD2Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(new_handler.o) private external definition of __ZNSt9bad_allocD2Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNSt9bad_allocD2Ev
ld: warning multiple definitions of symbol __ZNSt9bad_allocD0Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(new_handler.o) private external definition of __ZNSt9bad_allocD0Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNSt9bad_allocD0Ev
ld: warning multiple definitions of symbol __ZSt15set_new_handlerPFvvE
/usr/lib/gcc/darwin/3.3/libstdc++.a(new_handler.o) private external definition of __ZSt15set_new_handlerPFvvE in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZSt15set_new_handlerPFvvE
ld: warning multiple definitions of symbol __ZSt7nothrow
/usr/lib/gcc/darwin/3.3/libstdc++.a(new_handler.o) private external definition of __ZSt7nothrow in section (__TEXT,__const)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZSt7nothrow
ld: warning multiple definitions of symbol __ZNSt9bad_allocD1Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(new_handler.o) private external definition of __ZNSt9bad_allocD1Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNSt9bad_allocD1Ev
ld: warning multiple definitions of symbol __ZTVN10__cxxabiv121__vmi_class_type_infoE
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZTVN10__cxxabiv121__vmi_class_type_infoE in section (__DATA,__const)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZTVN10__cxxabiv121__vmi_class_type_infoE
ld: warning multiple definitions of symbol __ZN10__cxxabiv117__class_type_infoD0Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZN10__cxxabiv117__class_type_infoD0Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZN10__cxxabiv117__class_type_infoD0Ev
ld: warning multiple definitions of symbol __ZN10__cxxabiv117__class_type_infoD1Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZN10__cxxabiv117__class_type_infoD1Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZN10__cxxabiv117__class_type_infoD1Ev
ld: warning multiple definitions of symbol __ZN10__cxxabiv117__class_type_infoD2Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZN10__cxxabiv117__class_type_infoD2Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZN10__cxxabiv117__class_type_infoD2Ev
ld: warning multiple definitions of symbol __ZN10__cxxabiv120__si_class_type_infoD0Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZN10__cxxabiv120__si_class_type_infoD0Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZN10__cxxabiv120__si_class_type_infoD0Ev
ld: warning multiple definitions of symbol __ZN10__cxxabiv120__si_class_type_infoD1Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZN10__cxxabiv120__si_class_type_infoD1Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZN10__cxxabiv120__si_class_type_infoD1Ev
ld: warning multiple definitions of symbol __ZN10__cxxabiv120__si_class_type_infoD2Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZN10__cxxabiv120__si_class_type_infoD2Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZN10__cxxabiv120__si_class_type_infoD2Ev
ld: warning multiple definitions of symbol __ZN10__cxxabiv121__vmi_class_type_infoD0Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZN10__cxxabiv121__vmi_class_type_infoD0Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZN10__cxxabiv121__vmi_class_type_infoD0Ev
ld: warning multiple definitions of symbol __ZN10__cxxabiv121__vmi_class_type_infoD1Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZN10__cxxabiv121__vmi_class_type_infoD1Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZN10__cxxabiv121__vmi_class_type_infoD1Ev
ld: warning multiple definitions of symbol __ZN10__cxxabiv121__vmi_class_type_infoD2Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZN10__cxxabiv121__vmi_class_type_infoD2Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZN10__cxxabiv121__vmi_class_type_infoD2Ev
ld: warning multiple definitions of symbol __ZNK10__cxxabiv117__class_type_info10__do_catchEPKSt9type_infoPPvj
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNK10__cxxabiv117__class_type_info10__do_catchEPKSt9type_infoPPvj in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNK10__cxxabiv117__class_type_info10__do_catchEPKSt9type_infoPPvj
ld: warning multiple definitions of symbol __ZNK10__cxxabiv117__class_type_info11__do_upcastEPKS0_PKvRNS0_15__upcast_resultE
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNK10__cxxabiv117__class_type_info11__do_upcastEPKS0_PKvRNS0_15__upcast_resultE in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNK10__cxxabiv117__class_type_info11__do_upcastEPKS0_PKvRNS0_15__upcast_resultE
ld: warning multiple definitions of symbol __ZNK10__cxxabiv117__class_type_info11__do_upcastEPKS0_PPv
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNK10__cxxabiv117__class_type_info11__do_upcastEPKS0_PPv in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNK10__cxxabiv117__class_type_info11__do_upcastEPKS0_PPv
ld: warning multiple definitions of symbol __ZNK10__cxxabiv117__class_type_info12__do_dyncastEiNS0_10__sub_kindEPKS0_PKvS3_S5_RNS0_16__dyncast_resultE
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNK10__cxxabiv117__class_type_info12__do_dyncastEiNS0_10__sub_kindEPKS0_PKvS3_S5_RNS0_16__dyncast_resultE in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNK10__cxxabiv117__class_type_info12__do_dyncastEiNS0_10__sub_kindEPKS0_PKvS3_S5_RNS0_16__dyncast_resultE
ld: warning multiple definitions of symbol __ZTVSt8bad_cast
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZTVSt8bad_cast in section (__DATA,__const)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZTVSt8bad_cast
ld: warning multiple definitions of symbol __ZTVSt10bad_typeid
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZTVSt10bad_typeid in section (__DATA,__const)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZTVSt10bad_typeid
ld: warning multiple definitions of symbol __ZNSt8bad_castD1Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNSt8bad_castD1Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNSt8bad_castD1Ev
ld: warning multiple definitions of symbol __ZNSt10bad_typeidD1Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNSt10bad_typeidD1Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNSt10bad_typeidD1Ev
ld: warning multiple definitions of symbol __ZNK10__cxxabiv117__class_type_info20__do_find_public_srcEiPKvPKS0_S2_
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNK10__cxxabiv117__class_type_info20__do_find_public_srcEiPKvPKS0_S2_ in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNK10__cxxabiv117__class_type_info20__do_find_public_srcEiPKvPKS0_S2_
ld: warning multiple definitions of symbol __ZTVN10__cxxabiv117__class_type_infoE
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZTVN10__cxxabiv117__class_type_infoE in section (__DATA,__const)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZTVN10__cxxabiv117__class_type_infoE
ld: warning multiple definitions of symbol __ZNK10__cxxabiv120__si_class_type_info11__do_upcastEPKNS_17__class_type_infoEPKvRNS1_15__upcast_resultE
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNK10__cxxabiv120__si_class_type_info11__do_upcastEPKNS_17__class_type_infoEPKvRNS1_15__upcast_resultE in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNK10__cxxabiv120__si_class_type_info11__do_upcastEPKNS_17__class_type_infoEPKvRNS1_15__upcast_resultE
ld: warning multiple definitions of symbol ___dynamic_cast
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of ___dynamic_cast in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of ___dynamic_cast
ld: warning multiple definitions of symbol __ZTVSt9type_info
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZTVSt9type_info in section (__DATA,__const)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZTVSt9type_info
ld: warning multiple definitions of symbol __ZNSt9type_infoD2Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNSt9type_infoD2Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNSt9type_infoD2Ev
ld: warning multiple definitions of symbol __ZTVN10__cxxabiv120__si_class_type_infoE
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZTVN10__cxxabiv120__si_class_type_infoE in section (__DATA,__const)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZTVN10__cxxabiv120__si_class_type_infoE
ld: warning multiple definitions of symbol __ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNK10__cxxabiv120__si_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE
ld: warning multiple definitions of symbol __ZNK10__cxxabiv120__si_class_type_info20__do_find_public_srcEiPKvPKNS_17__class_type_infoES2_
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNK10__cxxabiv120__si_class_type_info20__do_find_public_srcEiPKvPKNS_17__class_type_infoES2_ in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNK10__cxxabiv120__si_class_type_info20__do_find_public_srcEiPKvPKNS_17__class_type_infoES2_
ld: warning multiple definitions of symbol __ZNK10__cxxabiv121__vmi_class_type_info11__do_upcastEPKNS_17__class_type_infoEPKvRNS1_15__upcast_resultE
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNK10__cxxabiv121__vmi_class_type_info11__do_upcastEPKNS_17__class_type_infoEPKvRNS1_15__upcast_resultE in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNK10__cxxabiv121__vmi_class_type_info11__do_upcastEPKNS_17__class_type_infoEPKvRNS1_15__upcast_resultE
ld: warning multiple definitions of symbol __ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNK10__cxxabiv121__vmi_class_type_info12__do_dyncastEiNS_17__class_type_info10__sub_kindEPKS1_PKvS4_S6_RNS1_16__dyncast_resultE
ld: warning multiple definitions of symbol __ZNK10__cxxabiv121__vmi_class_type_info20__do_find_public_srcEiPKvPKNS_17__class_type_infoES2_
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNK10__cxxabiv121__vmi_class_type_info20__do_find_public_srcEiPKvPKNS_17__class_type_infoES2_ in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNK10__cxxabiv121__vmi_class_type_info20__do_find_public_srcEiPKvPKNS_17__class_type_infoES2_
ld: warning multiple definitions of symbol __ZNKSt9type_info10__do_catchEPKS_PPvj
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNKSt9type_info10__do_catchEPKS_PPvj in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNKSt9type_info10__do_catchEPKS_PPvj
ld: warning multiple definitions of symbol __ZNSt9type_infoD1Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNSt9type_infoD1Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNSt9type_infoD1Ev
ld: warning multiple definitions of symbol __ZNSt9type_infoD0Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNSt9type_infoD0Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNSt9type_infoD0Ev
ld: warning multiple definitions of symbol __ZNSt8bad_castD2Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNSt8bad_castD2Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNSt8bad_castD2Ev
ld: warning multiple definitions of symbol __ZNSt8bad_castD0Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNSt8bad_castD0Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNSt8bad_castD0Ev
ld: warning multiple definitions of symbol __ZNSt10bad_typeidD2Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNSt10bad_typeidD2Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNSt10bad_typeidD2Ev
ld: warning multiple definitions of symbol __ZNSt10bad_typeidD0Ev
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNSt10bad_typeidD0Ev in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNSt10bad_typeidD0Ev
ld: warning multiple definitions of symbol __ZNKSt9type_info15__is_function_pEv
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNKSt9type_info15__is_function_pEv in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNKSt9type_info15__is_function_pEv
ld: warning multiple definitions of symbol __ZNKSt9type_info14__is_pointer_pEv
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNKSt9type_info14__is_pointer_pEv in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNKSt9type_info14__is_pointer_pEv
ld: warning multiple definitions of symbol __ZNKSt9type_info11__do_upcastEPKN10__cxxabiv117__class_type_infoEPPv
/usr/lib/gcc/darwin/3.3/libstdc++.a(tinfo.o) private external definition of __ZNKSt9type_info11__do_upcastEPKN10__cxxabiv117__class_type_infoEPPv in section (__TEXT,__text)
/usr/lib/libstdc++.6.dylib(single module) definition of __ZNKSt9type_info11__do_upcastEPKN10__cxxabiv117__class_type_infoEPPv
ld: multiple definitions of symbol __ZSt10unexpectedv
/usr/lib/libstdc++.6.dylib(single module) definition of __ZSt10unexpectedv
/usr/lib/gcc/darwin/3.3/libstdc++.a(eh_terminate.o) private external definition of __ZSt10unexpectedv in section (__TEXT,__text)
ld: multiple definitions of symbol __ZSt13set_terminatePFvvE
/usr/lib/libstdc++.6.dylib(single module) definition of __ZSt13set_terminatePFvvE
/usr/lib/gcc/darwin/3.3/libstdc++.a(eh_terminate.o) private external definition of __ZSt13set_terminatePFvvE in section (__TEXT,__text)
ld: multiple definitions of symbol __ZSt14set_unexpectedPFvvE
/usr/lib/libstdc++.6.dylib(single module) definition of __ZSt14set_unexpectedPFvvE
/usr/lib/gcc/darwin/3.3/libstdc++.a(eh_terminate.o) private external definition of __ZSt14set_unexpectedPFvvE in section (__TEXT,__text)
ld: multiple definitions of symbol __ZSt9terminatev
/usr/lib/libstdc++.6.dylib(single module) definition of __ZSt9terminatev
/usr/lib/gcc/darwin/3.3/libstdc++.a(eh_terminate.o) private external definition of __ZSt9terminatev in section (__TEXT,__text)
mex: link of 'TranslateSBML.mexmac' failed.
make: *** [TranslateSBML.mexglx] Error 1
===============================================================
My platform is MacOS 10.4, and I am sure that I've installed libsbml in proper location. Does it anything to do with the c complier on my machine?
Thank your patient to read it!
Sincerely
|
|
|
Posts: 2
Location: Germany
Registered: October 2006
|
|
|
Posts: 1
Registered: October 2007
|
|
|
Posts: 413
Registered: May 2004
|
|
Re: Problem with MatLab
|
24 Oct '07 08:07

|
 |
|
Hi
It looks like you might not have installed libSBML.
The include files used in a Mac build should refer to your installed
libsbml files - not the ones in the win32 directory.
Sarah
nerdelbaum wrote:
> I am trying to build SBMLtoolbox (v.2.0.2) for Mac OSX (v.10.4.10). I am a novice Unix user; I know just enough to be dangerous, but not enough to debug the arcana of make files, etc.
>
> I found that I needed to rearrange some of the directories in the SBMLtoolbox distribution; they seemed to be setup for a Win32 install, but not a Unix install. For instance, I needed to move /util and /xml directories from /win32/include/sbml to /toolbox in order to avoid a long litany of Unix "make" errors.
>
> I still have a handful of errors remaining. They are all of the same nature:
>
> ====================================
> mex -I/usr/local/include -I/usr/local/include -L/usr/local/lib -L/usr/local/lib TranslateSBML.c -lsbml
> TranslateSBML.c: In function 'GetKineticLaw':
> TranslateSBML.c:1687: warning: passing argument 1 of 'LookForCSymbolTime' discards qualifiers from pointer target type
> TranslateSBML.c: In function 'GetRule':
> TranslateSBML.c:2052: warning: passing argument 1 of 'LookForCSymbolTime' discards qualifiers from pointer target type
> TranslateSBML.c: In function 'GetFunctionDefinition':
> TranslateSBML.c:2286: warning: passing argument 1 of 'LookForCSymbolTime' discards qualifiers from pointer target type
> TranslateSBML.c: In function 'GetEvent':
> TranslateSBML.c:2409: warning: passing argument 1 of 'LookForCSymbolTime' discards qualifiers from pointer target type
> TranslateSBML.c:2414: warning: passing argument 1 of 'LookForCSymbolTime' discards qualifiers from pointer target type
> TranslateSBML.c: In function 'GetEventAssignment':
> TranslateSBML.c:2564: warning: passing argument 1 of 'LookForCSymbolTime' discards qualifiers from pointer target type
> TranslateSBML.c: In function 'LookForCSymbolTime':
> TranslateSBML.c:2655: warning: assignment discards qualifiers from pointer target type
> /usr/bin/ld: can't locate file for: -lsbml
> collect2: ld returned 1 exit status
>
> mex: link of 'TranslateSBML.mexmaci' failed.
>
> make: *** [TranslateSBML.mexmaci] Error 1
> ==========================================
>
> I see that others have run across the same problem. And I see some confusing hacks about adding a second file path to the XCPPFLAGS environment variable (by the way, this did nothing for me, perhaps because there is no /usr/local/include/sbml directory on my disk). So the "fix" that might have worked for Andreas (it's confusing; first he posts "no more errors"; then he posts a long list of errors?!) doesn't work for me. Please help!
> ____________________________________________________________
> To manage your libsbml-discuss list subscription, visit
> https://utils.its.caltech.edu/mailman/listinfo/libsbml-discuss
>
> For a web interface to the libsbml-discuss mailing list, visit
> http://sbml.org/forums/
>
> For questions or feedback about the libsbml-discuss list,
> contact sbml-team@caltech.edu.
>
____________________________________________________________
To manage your libsbml-discuss list subscription, visit
https://utils.its.caltech.edu/mailman/listinfo/libsbml-discuss
For a web interface to the libsbml-discuss mailing list, visit
http://sbml.org/forums/
For questions or feedback about the libsbml-discuss list,
contact sbml-team@caltech.edu.
|
|
|
Posts: 4
Location: lausanne
Registered: January 2008
|
|
|
Posts: 413
Registered: May 2004
|
|
|
Posts: 2
Registered: November 2009
|
|
|