Hi ,
I searched the web ...
Check whether this link is useful for You ..( After reading this reply ..)
http://www.fortran-2000.com/ArnaudRecipes/sharedlib.html
Here is the dialogue that I had with my Colleague..
Ram : Hi
Can you look at (all Replies) these threads in MySQL Forum
I asked the author to remove -all-static He says the problem was solved and asks for some clarification on run-time libs?
http://forums.mysql.com/read.php?11,557,557#557
( Niels , You are here NOW .Don't click )
Mathan Sankar : one sec I will checkout this link
Ram : ok
Mathan Sankar : Here the problem was, mysql tried to link libz.a file as he used "all-static" option, but it was not exists in his machine, so he got "/usr/bin/ld: cannot find -lz". Now he installed zlib in his machine. so now he linked libz.sl with mysql
Mathan Sankar : so, this libz.sl should present in his machine at run time
Ram : He removed all-static option...
Ram : Is zlib a static lib?
Mathan Sankar : libz.a --> statil zlib library
libz.sl or libz.sl.xx --> dynamic zlib library
Mathan Sankar : all-static option will try to link static libs
Mathan Sankar : if you remove this option it will try to link dynamic lib
Ram : OK ..So He won't get run-time errors as long as zlib is installed..Right
Can I post this message in that forum
Mathan Sankar : yes thats correct
Mathan Sankar : this libz.sl should present in his machine at run time
Ram : Can I post this conversation there?
Mathan Sankar : yes you can
Ram : ok Thanks
Mathan Sankar : OR ask him to search libz.a file in his machine, he can enable all-static option if libz.a presents in his machine
Ram : He has searched for it but without success
Mathan Sankar : I think he searched this lib before installing zlib in his machine
Ram : ok I will convey this message
Mathan Sankar : Ok
Hope this helps,
Regards,
Ram.
We Learn the Most When we have to Invent