To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=82062
                 Issue #|82062
                 Summary|osl_bootstrap_getExecutableFile_Impl fails for salmain
                        |.o based executables
               Component|gsl
                 Version|680m226
                Platform|All
                     URL|
              OS/Version|Linux
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|code
             Assigned to|mhu
             Reported by|sb





------- Additional comments from [EMAIL PROTECTED] Fri Sep 28 13:22:51 +0000 
2007 -------
At least on SRC680m226 unxlngi6.pro:

1  main (via SAL_IMPLEMENT_MAIN) at vcl/unx/source/plugadapt/salmain.cxx:1.10 l.
57 is built with -fvisibility=hidden (vcl/util/makefile2.pmk:1.3 l. 39 included
at vcl/unx/source/plugadapt/makefile.mk:1.6 l. 47), i.e., main will not be in
the list of dynamic exported symbols of any executable that links in salmain.o. 

1a  Also, it is probably an error that salmain.o is built as a dynamic
$(SLO)$/salmain.obj instead of a static $(OBJ)$/salmain.obj, as it is intended
to be linked into executables; probably introduced by fix of issue 35209.

2  testtool.bin (built as testtool at automation/util/makefile.mk:1.25 l. 151)
links in the above salmain.o (see solenv/inc/tg_app.mk:1.67 l. 66 and
solenv/inc/unxlngi6.mk:1.39 l. 185).

3  osl_bootstrap_getExecutableFile_Impl at sal/osl/unx/process_impl.cxx:1.11 l.
152 calls dlsym(RTLD_DEFAULT,"main") which erroneously fails when executed in a
testtool.bin process, as main is not in the list of dynamic exported symbols of
testtool.bin.

4  Note that at least the aqua (vcl/aqua/source/app/salmain.cxx:1.21 l. 57) and
unx (vcl/unx/source/plugadapt/salmain.cxx:1.10 l. 57) variants of salmain.o main
contain nontrivial code (which might or might not be relevant today), so a local
SAL_IMPLEMENT_MAIN in automation might not be an option.

---------------------------------------------------------------------
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