To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=51851
                  Issue #:|51851
                  Summary:|bad name for libnpsoplugin on Mac OSX
                Component:|porting
                  Version:|680m112
                 Platform:|Macintosh
                      URL:|
               OS/Version:|Mac OS X
                   Status:|NEW
        Status whiteboard:|
                 Keywords:|
               Resolution:|
               Issue type:|DEFECT
                 Priority:|P3
             Subcomponent:|code
              Assigned to:|ericb
              Reported by:|ericb





------- Additional comments from [EMAIL PROTECTED] Tue Jul 12 09:32:09 -0700 
2005 -------
Found in m112 with Mac OSX 10.4 (bug exists too in 10.3 )

[H] : Mozilla is installed

Start OOo 
Choose : Tools -> Options -> Internet -> Plug-in Mozilla. Choose "activate"  

-> looking in $HOME/.mozilla/plugins directory there's a broken symlink to
/Applications/openoffice.org1.9.112/program/libnpsoplugin.so 

Change this symlink to point on the correct lib (libnpsoplugin.dylib)

Again :
Choose : Tools -> Options -> Internet -> Plug-in Mozilla , Choose "activate" 

-> the link is again broken, because of the use of lnkFilename function.

I probably found the solution of this problem in
extension/source/nsplugin/source/so_env.cxx (line around 162) :

    sprintf(lnkFileName, "%s/.mozilla/plugins/%s", getenv("HOME"),
"libnpsoplugin.so");
    if ((0 > readlink(lnkFileName, realFileName, NPP_PATH_MAX)) ||
       (NULL == (pTempZero = strstr(realFileName, 
"/program/libnpsoplugin.so"))))
    {

To solve this, I propose to define : UNX_LIB_SUFFIX ".so" for UNIX && !MACOSX
Or define : UNX_LIB_SUFFIX ".dylib" for UNIX && MACOSX

Note : use UNXSUFFIX is not sane, because already use for environment, and
possible mismatch.

Patch comes

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to