Re: shared objects on OS X

From: ENOMOTO Takeshi (enomoto.takeshi AT XXXXXX)
Date: Sun Jul 28 2002 - 19:28:00 MDT

  • Next message: ENOMOTO Takeshi: "time dimension"

    Dear Jeff and Mary,

    > warning:Could not find Init() in external file ./erfc.so, file not
    loaded
    >
    > "void Init(void)" does exist in erfc_W.c.
    > Does anyone have an idea what this means?

    I recently asked if this problem has been solved.
    The options I gave Mary personally are the same as the ones Jeff used.
    Sorry, they are not anything new.

    Thus I still have the same problem.

    My guess is that ncl tries to find a symbol "Init()" on loading an
    external library.
    On a platform successfully do the job,

    $ uname -a
    IRIX64 sx5fsv 6.5 07151432 IP27
    $ nm addtwo.so
    [20] |274877778560| 228|FUNC |GLOB |DEFAULT |MIPS_TEXT|Init

    Thus Init exsists.

    On Mac OS X,

    $ uname -v
    Darwin Kernel Version 5.5: Thu May 30 14:51:26 PDT 2002;
    root:xnu/xnu-201.42.3.obj~1/RELEASE_PPC
    $ nm addtwo.so
    00000e00 T _Init

    Thus an underscore leads Init. I tried an option -fno-leading-underscore
    but it was unsuccessful in removing underscores.

    -----
    ENOMOTO, Takeshi, Dr
    enomoto.takeshi AT nasda.go.jp
    Frontier Research System for Global Change

    _______________________________________________
    ncl-talk mailing list
    ncl-talk AT ucar.edu
    http://mailman.ucar.edu/mailman/listinfo/ncl-talk



    This archive was generated by hypermail 2b29 : Mon Jul 29 2002 - 07:49:42 MDT