List:General Discussion« Previous MessageNext Message »
From:Andrey Muratov Date:August 13 1999 7:18am
Subject:Re: Can not run mysql with win1215
View as plain text  
>Andrey> Should i use any options for the gcc  when i create ctype-win1251.o
? Or
>Andrey> gcc -o ctype-win1251.o ctype-win1251.c will be enough ?
>
>You should use the same options as for any of the other .c files. Do a
>'touch' on any of the .c files and run 'make' and then copy the
>options!

We run the "make install-pkglibLIBRARIES" and files (.o and .a) were
created. But the lib with strings was called libmystrings.a ! (When we run
mysql it says same error) We renamed the libmystrings to libmysqlstrings.a
and put it to all lib directories on the machine that we could find and run
ranlib but it did not work too.

I want to try to do something like change code or something... But i m not
very good in this libs thing.
Here's there error again: "ld.so failed: Undefined symbol "_ctype_win1251"
in mysql:mysql  "
As far as i know (as far as i understand) ld.so is stuff that links the
libraries. So the error is not in it but in the library that is being
linked. (sorry for small english knowlege) From the previous letters i found
out that _ctype_win1251 is in libmysqlstrings.a . I checked the contents of
the file and had some lines like _ctype_win1251 in it ! So there could be
two problems: ld.so looking for the libmysqlstrings in a wrong place then
the question : "Where does ld.so look for a libs? (there are few like
/usr/lib/libmysql*, /usr/local/mysql/lib/libmysql*, /usr/libexec/libmysql*)
And what is the difference between the purpose of this dirs? Is it enough to
just copy a lib to the dirs for ld.so to find and link them ?"
Or the problem is that contents of libmysqlstrings.a is carrupted. Then the
question: "How can i chek if the lib is ok ? How can see what
functions/variables it has ?"

I would be very thenkfull if u answer on some more additional questions: How
is actually this dinamic linking happening ? (from the code-write-time,
compilation-time to run-time) What is _ctype_win1251 is it a function or a
variable or something else ? What means mysql:mysql ? Is it Class mysql,
function mysql ? or lib mysql, function mysql ? Where stuff that is in
ctype_win1251.c is used ? May be i can simply cut/paste the code from
ctype_win1251.c to some other file to avoide the linking ?
I just got one more idea every thing is fine if i compile with default
option (i.e. latin1). So will it work for me if i just change the contents
of ctype-latin1.c to contents of ctype-win1251.c ? Even if it'll work i'd
like to hear answers on the questions above.

Thanks to all ahead !!! I would be very thankfull for all your answers !
Bye.

Thread
Can not run mysql with win1215Andrey Muratov9 Aug
  • Can not run mysql with win1215Michael Widenius9 Aug
Re: Can not run mysql with win1215Andrey Muratov9 Aug
  • Re: Can not run mysql with win1215Michael Widenius9 Aug
Re: Can not run mysql with win1215Andrey Muratov9 Aug
Re: Can not run mysql with win1215Andrey Muratov13 Aug
  • Re: BAD USER OF PAGERGATEsasha13 Aug