??? ldconfig ???

Discussion in 'Mac OS X System & Mac Software' started by R1ck5P, Aug 13, 2001.

  1. R1ck5P

    R1ck5P Registered

    Joined:
    Dec 18, 2000
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    I saw that command on Aterm's web site. What's that? Is there an equivalent in Darwin??

    Thankx
     
  2. ladavacm

    ladavacm Unperson Spotter

    Joined:
    Mar 23, 2001
    Messages:
    275
    Likes Received:
    0
    Trophy Points:
    0
    because OSX uses different dynamic linker technology (as compared to Linux)
     
  3. R1ck5P

    R1ck5P Registered

    Joined:
    Dec 18, 2000
    Messages:
    10
    Likes Received:
    0
    Trophy Points:
    0
    I asked that question 'cause i'm tyring to install aterm on OSX and to get the theme support, I need to do a couple of manual steps:

    su root ;
    cd /usr/local/src/AfterStep-1.8.0 ;
    cp lib/libafterstep.a /usr/local/lib ;
    cp asimagelib/libasimage.a /usr/local/lib ;
    ldconfig

    That's fairy simple except the last command. My computer doesn't know that command. Without that, i'm afraid that the whole theme support is obselete. So, is there a set of commands or something that could replace it?
     
  4. howardm4

    howardm4 Registered

    Joined:
    Jun 4, 2001
    Messages:
    204
    Likes Received:
    0
    Trophy Points:
    0
    I was writing a response this AM but our corp. network connection was severed for the day :( :(

    Anyway, ldconfig is used by older style DYNAMIC loading linkers
    to keep a cache (usually /etc/ld.so.cache) of dynamic libraries and symbols.

    Darwin doesn't have that and doesn't need it.

    What you have are static libraries (the .a's). Even if you had
    ldconfig, it wouldn't matter.

    Nor am I even certain where your seeing those installation
    instructions. AS is built almost totally statically so unless the themes themselves are dynamic executables looking for dynamic runtime libs (which you dont have), there isn't a reason to do what your doing.

    The themes instructions I see on afterstep.org are pretty clear.
     
  5. werh37

    werh37 Registered

    Joined:
    Aug 29, 2001
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    0
    While on the dynamic library topic, does anyone have pointers to documentation on this for os x? Basically, I'm wondering what the osx equivalent to the run-time dynamic loading functions in Linux (dlfcn.h stuff) might be (if there is an equivalent).

    PS: this web site is being a bit sluggish...
     
  6. howardm4

    howardm4 Registered

    Joined:
    Jun 4, 2001
    Messages:
    204
    Likes Received:
    0
    Trophy Points:
    0
    Someone did write a dl compatibility library. From that dlfcn.h:

    extern void * dlopen(
    const char *path,
    int mode);
    extern void * dlsym(
    void * handle,
    const char *symbol);
    extern const char * dlerror(
    void);
    extern int dlclose(
    void * handle);


    I can't help you w/ any native functions.
     

Share This Page