Welcome to MacForumz.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

libmysys.a linker bus error

 
   Macintosh computer (Home) -> Programmer Code RSS
Next:  Function keys  
Author Message
Peter8

External


Since: Sep 28, 2003
Posts: 4



(Msg. 1) Posted: Sun Sep 28, 2003 5:22 am
Post subject: libmysys.a linker bus error
Archived from groups: comp>sys>mac>programmer>codewarrior (more info?)

I'm trying to use the MySQL C API for version 4.1.0 alpha, and linking
libmysys.a into my application causes the MW linker to crash with a
bus error.

Does anyone know what I can do about this? Thanks.

 >> Stay informed about: libmysys.a linker bus error 
Back to top
Login to vote
Sean McBride

External


Since: Jan 05, 2004
Posts: 498



(Msg. 2) Posted: Sun Sep 28, 2003 5:27 pm
Post subject: Re: libmysys.a linker bus error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <3dd1564b.0309280122.5fc88481 DeleteThis @posting.google.com>,
peter DeleteThis @neurobs.com (Peter) wrote:

 > I'm trying to use the MySQL C API for version 4.1.0 alpha, and linking
 > libmysys.a into my application causes the MW linker to crash with a
 > bus error.
 >
 > Does anyone know what I can do about this? Thanks.

You could start by telling us with which version of CW? Which linker,
which OS, etc.

Submit a bug report, with reproducible example, and crash log to
Metrowerks. Then there's a good chance it will be fixed in 9.1.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: libmysys.a linker bus error 
Back to top
Login to vote
Peter8

External


Since: Sep 28, 2003
Posts: 4



(Msg. 3) Posted: Sun Sep 28, 2003 7:21 pm
Post subject: Re: libmysys.a linker bus error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sean McBride <cwatson.TakeThisOut@cam.org> wrote in message news:<cwatson-7353AA.14271128092003.TakeThisOut@aeinews.aei.ca>...
 > In article <3dd1564b.0309280122.5fc88481.TakeThisOut@posting.google.com>,
 > peter.TakeThisOut@neurobs.com (Peter) wrote:
 >
  > > I'm trying to use the MySQL C API for version 4.1.0 alpha, and linking
  > > libmysys.a into my application causes the MW linker to crash with a
  > > bus error.
  > >
  > > Does anyone know what I can do about this? Thanks.
 >
 > You could start by telling us with which version of CW? Which linker,
 > which OS, etc.
 >
 > Submit a bug report, with reproducible example, and crash log to
 > Metrowerks. Then there's a good chance it will be fixed in 9.1.

MW compiler (mwcc) and linker (mwld) are version 3.0 Build 314. (These
came as CW version 8.)
OS is OS X version 10.2.6.
The library is in the binary distribution of MySQL 4.1.0 alpha for OS
X 10.2.
I will make a simple reproducible example and submit it.

What would be most useful to me now though is a work-around. I was
previously using the MySQL 3.something client libraries with CW
without problems. Now I need to use features in 4.1 and later. If I
built the MySQL client library from source using CW, do you think that
would help? If you needed to use 4.1 with CW, how would you proceed?
Thanks.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: libmysys.a linker bus error 
Back to top
Login to vote
Peter8

External


Since: Sep 28, 2003
Posts: 4



(Msg. 4) Posted: Sun Sep 28, 2003 10:39 pm
Post subject: Re: libmysys.a linker bus error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Sean McBride <cwatson DeleteThis @cam.org> wrote in message news:<cwatson-7353AA.14271128092003 DeleteThis @aeinews.aei.ca>...
 > In article <3dd1564b.0309280122.5fc88481 DeleteThis @posting.google.com>,
 > peter DeleteThis @neurobs.com (Peter) wrote:
 >
  > > I'm trying to use the MySQL C API for version 4.1.0 alpha, and linking
  > > libmysys.a into my application causes the MW linker to crash with a
  > > bus error.
  > >
  > > Does anyone know what I can do about this? Thanks.
 >
 > You could start by telling us with which version of CW? Which linker,
 > which OS, etc.
 >
 > Submit a bug report, with reproducible example, and crash log to
 > Metrowerks. Then there's a good chance it will be fixed in 9.1.

mwcc and mwld are Version 3.0 build 314. (These came in CodeWarrior
v8.)
OS is OS X 10.2.6.
The libraries came from the binary distribution for OS X 10.2 of MySQL
4.1.0 alpha.
I submitted a bug report.

Of course, I'm more interested in a work-around. If I built the MySQL
client libraries with CW, do you think that would work? If you needed
to use MySQL 4.1 (or later) with CW, how would you proceed? Thanks.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: libmysys.a linker bus error 
Back to top
Login to vote
Sean McBride

External


Since: Jan 05, 2004
Posts: 498



(Msg. 5) Posted: Tue Sep 30, 2003 1:19 am
Post subject: Re: libmysys.a linker bus error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <3dd1564b.0309281839.4325394d DeleteThis @posting.google.com>,
peter DeleteThis @neurobs.com (Peter) wrote:

 > mwcc and mwld are Version 3.0 build 314. (These came in CodeWarrior
 > v8.)

Have you installed the CW 8.3 update? It fixes lots of bugs.

 > Of course, I'm more interested in a work-around. If I built the MySQL
 > client libraries with CW, do you think that would work?

That might help. Though you might have problems building them, though
I'm sure people here could help with those. In general, there can be
problems linking gcc built libraries with CW, but there are solutions to
those problems.

 > to use MySQL 4.1 (or later) with CW, how would you proceed? Thanks.

I don't know what 'MySQL' is. :(<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: libmysys.a linker bus error 
Back to top
Login to vote
Peter8

External


Since: Sep 28, 2003
Posts: 4



(Msg. 6) Posted: Wed Oct 01, 2003 5:50 am
Post subject: Re: libmysys.a linker bus error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

After your suggestion I installed the 8.3 patch, but unfortunately it
didn't help any.

I was able to build the project with gcc, but I don't want to use gcc.

MySQL is an open source database. (www.mysql.com)

I was going to try to build these libraries with cw, but now after the
upgrade and rebuilding the codewarrior libraries, I can't build
anything due to the following and similar errors:

Link Error : multiply-defined: 'wcstoumax' (code)
Defined in strtoul.c
Defined in MSL_All_Mach-O_D.lib
Defined in MSL_All_Mach-O_D.lib

*sigh*
 >> Stay informed about: libmysys.a linker bus error 
Back to top
Login to vote
Sean McBride

External


Since: Jan 05, 2004
Posts: 498



(Msg. 7) Posted: Tue Oct 07, 2003 1:18 am
Post subject: Re: libmysys.a linker bus error [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <3dd1564b.0310010150.74d381f9.RemoveThis@posting.google.com>,
peter.RemoveThis@neurobs.com (Peter) wrote:

 > I was going to try to build these libraries with cw, but now after the
 > upgrade and rebuilding the codewarrior libraries, I can't build
 > anything due to the following and similar errors:
 >
 > Link Error : multiply-defined: 'wcstoumax' (code)
 > Defined in strtoul.c
 > Defined in MSL_All_Mach-O_D.lib
 > Defined in MSL_All_Mach-O_D.lib

Well, that seems not too bad... Do you have strtoul.c in your project?
Is it in the sql library? Check for where wcstoumax() is being called
from.

You may be better off using BSD C instead of MSL C BTW, as you're using
unix derived code. google for more on this topic.<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: libmysys.a linker bus error 
Back to top
Login to vote
Display posts from previous:   
   Macintosh computer (Home) -> Programmer Code All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]