Hi florian,


You again !

Florian Heckl a �crit :
Hello Erics, hello all,

I just tracked down the binfilter breakage problem on MacOSX.
The call that caused the problem was the MacOS system call NSAddImage(...) called from sal/osl/unx/module.c.

Great ! Wich tool did you use ? I'm interested to understand hat you have made. It is surely interessant !

After writing a simple
test app I found out that the real problem is the DYLD_LIBRARY_PATH

Because didn't even work ?

environment variable (which NSAddImage uses to look for the library to be loaded).

The error is difficult to find, because they're a lot of DYLD_LIBRARY_PATH in the sources :
I have, since 10 minutes, started a egrep -H -r "DYLD_LIBRARY_PATH" ./* in $SRC_DIR

...not finished yet :-)

I still have no clue why the first library was already registered succesfully before but anyway, here's what you should do before building binfilter:

I'm searching... I have doubt about sfx2, or just before : a lot of warnings like "no_symbols", because of not correctly linked appears in binfilter build, because of this.

Be carefull : the build way is not unique. I was working on a modules dependency diagram for SRC680, but it's not finished yet. I have thought do this, just to better understand the build process.

Since the sourcing of MacosxEnv.Set(.sh) discards the previously set $DYLD_LIBRARY_PATH and regcomp is called from the directory containing the libraries to be registered just add "." to the variable, e.g. by issuing "export DYLD_LIBRARY_PATH=.:$DYLD_LIBRARY_PATH" in the bash shell.

I use tcsh ( yes ;-) ) so I just adapt to it the export in binfilter/util/makefile.mk and the build ended !


This following patch works fine for me, and I now have a *complete* build (excepted hieroplyphs in qadevOOo as described in <http://www.openoffice.org/issues/show_bug.cgi?id=39937> :-) )

The patch, to apply to binfilter/util/makefile.mk file
(exactly the same as the one already submitted*** on <http://qa.openoffice.org/issues/show_bug.cgi?id=39952> )


--- makefile.mk Fri Jan 21 16:09:25 2005 +++ makefile_new.mk Fri Jan 21 16:09:33 2005 @@ -77,6 +77,11 @@ LOCALLIBDIR=$(BIN) .ENDIF # "$(GUI)"=="UNX"

+.IF "$(OS)"=="MACOSX"
+DYLD_LIBRARY_PATH=".:$(DYLD_LIBRARY_PATH)"
+.ENDIF
+
+
 RDBNAMES=              \
        bf_xo           \
        bf_sw           \



Regards,
eric bachard


***Before Pavel cries :-)

--
eric bachard <[EMAIL PROTECTED]>
French OpenOffice.org Community contributor (build of french releases for Linux PPC and Mac OS X / X11)
See : <http://fr.openoffice.org>

Attachment: binfilter_util_makefile.mk.patch
Description: application/text

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

Reply via email to