[ Home ] Passports | National Anthems in MP3 | Live chat

Live chat

News | Forum
 

Train Museum:

Warsaw, PolandSeoul, KoreaKyoto, Japan Forums: Rail UK, Rail Australia
Pictures: MoneyMonorailHong Kong light festival High speed trainQueen Elizabeth II in YokohamaTaro - Galapagos Tortoise



Subject: Re: dlsym problem on MacOSX (code works in Linux, fails on MacOSX) Posted on: Tue, 27 Jul 2010 18:03:00 -0700

Kenny McCormack wrote:
> I have an app that uses dlsym() to lookup functions and then executes
> them. Usually, the function being lookedup is in the system libraries
> (i.e., libc) - i.e., it is a normal function, like read() or write(),
> etc. However, sometimes, the function being lookedup is actually in the
> app itself - i.e., we use the dlsym mechanism to invoke a "local"
> function.
>
> The former case works fine in all 3 OSs, but...
> The later case (where the function is in the app itself) works fine in
> Linux and Solaris, but fails (the dlsym() function fails with a "symbol
> not found" error) in MacOSX.
>
> Any ideas why? How to fix?
>

Not sure if it is the same issue, but I did find one time that in a MacOSX
program I was working on, a local symbol was automatically changed behind
my back. IIRC an underscore had been prepended. Before you go crazy
compile with debugging symbols on and dump the generated symbol table to be
sure it isn't the same thing.

203024. Cheap sale D&G Sunglass (paypal payment http://www.brandtrade99.com)
203025. AF sweater made in china (http://www.brandtrade99.com ) 203025
203026. Energy Saving Tips 203026
203027. Proxy site open your favoraite sites facebook myspace ...etc 203027
203028. client socket 203028
203029. ANN: Seed7 Release 2010-07-04 203029
203030. Re: ANN: Seed7 Release 2010-07-04 203030
203031. Re: ANN: Seed7 Release 2010-07-04 203031
203032. Re: ANN: Seed7 Release 2010-07-04 203032
203033. Re: ANN: Seed7 Release 2010-07-04 203033
203034. Re: ANN: Seed7 Release 2010-07-04 203034
203035. Re: ANN: Seed7 Release 2010-07-04 203035
203036. Re: ANN: Seed7 Release 2010-07-04 203036
203037. Re: ANN: Seed7 Release 2010-07-04 203037
203038. Re: ANN: Seed7 Release 2010-07-04 203038
203039. Static globals in Shared library 203039
203040. Re: Static globals in Shared library 203040
203041. Re: Static globals in Shared library 203041
203042. New proxy site 100% free 203042
203043. New proxy site 100% free 203043