Re: [dev] SDK on Mac OS X 10.4
Pierre Doyon wrote: Hi Juergen, I process the following g++ command with sucess. g++ -dynamiclib -single_module -Wl,-multiply_defined,suppress -Wl,-exported_symbols_list /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/misc/CppComponentSample/CppComponent.uno.map -L/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib -L/Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib -L/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib -o /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib/CppComponent.uno.dylib /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service1_impl.o /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service2_impl.o -luno_cppuhelpergcc3 -luno_cppu -luno_sal -Wl,-dylib_file,@__URELIB/libuno_cppuhelpergcc3.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_cppuhelpergcc3.dylib -Wl,-dylib_file,@__URELIB/libuno_cppu.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_cppu.dylib -Wl,-dylib_file,@__URELIB/libuno_sal.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib -Wl,-dylib_file,@loader_path/libuno_sal.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib.3 -Wl,-dylib_file,@loader_path/libuno_salhelpergcc3.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_salhelpergcc3.dylib.3 -Wl,-dylib_file,@loader_path/libuno_cppu.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_cppu.dylib.3 ok, looks good. I have to improve the SDK here. Can you please submit an issue for this problem to me (component sdk, owner jsc) I am a new user of this forum and I never submit a issue. Maybe someone can do it. it's not difficult. Maybe you like to try it. Once understand how it works you can submit issues for any kind of problem you detect in OO.org First of all log in on OpenOffice.org (assume you have an account already). In this case go to http://api.openoffice.org/servlets/ProjectIssues select defect - select the sdk component - select the sub component samples and fill out the other fields. Important is the summary and a good detailed description. you can assign it to jsc see also http://qa.openoffice.org/issue_handling/project_issues.html http://qa.openoffice.org/issue_handling/bug_writing_guidelines.html Then, I run the makefile to install the Component and the execution freeze on this command /Applications/OpenOffice.org.app/Contents/MacOS/unopkg add -f /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/bin/CppComponent.oxt. that is probably a different problem. I had many deadlocks during my testing as well. The current situation is much better than at the beginning but still not 100% satisfying. The related issue is 92214. Have you tried to install it via the extensions manager UI in the office? Yes, I tried extension manager UI in OOo and It's did not work. An error occurred while enabling: CppComponent.uno.dylib mmh, i can't say why it doesn't work without further debugging ... Juergen Best Regards, Pierre - 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]
Re: [dev] SDK on Mac OS X 10.4
Hi Juergen, I process the following g++ command with sucess. g++ -dynamiclib -single_module -Wl,-multiply_defined,suppress - Wl,-exported_symbols_list /Users/pdoyon/OpenOffice.org3.0_SDK/ MACOSXexample.out/misc/CppComponentSample/CppComponent.uno.map -L/ Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib -L/Users/ pdoyon/OpenOffice.org3.0_SDK/macosx/lib -L/Applications/ OpenOffice.org.app/Contents/basis-link/ure-link/lib -o /Users/ pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib/ CppComponent.uno.dylib /Users/pdoyon/OpenOffice.org3.0_SDK/ MACOSXexample.out/slo/CppComponentSample/service1_impl.o /Users/ pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/ CppComponentSample/service2_impl.o -luno_cppuhelpergcc3 -luno_cppu -luno_sal -Wl,- dylib_file,@__URELIB/ libuno_cppuhelpergcc3.dylib.3:/Applications/OpenOffice.org.app/ Contents/basis-link/ure-link/lib/libuno_cppuhelpergcc3.dylib -Wl,- dylib_file,@__URELIB/ libuno_cppu.dylib.3:/Applications/OpenOffice.org.app/Contents/ basis-link/ure-link/lib/libuno_cppu.dylib -Wl,- dylib_file,@__URELIB/ libuno_sal.dylib.3:/Applications/OpenOffice.org.app/Contents/basis- link/ure-link/lib/libuno_sal.dylib -Wl,-dylib_file,@loader_path/ libuno_sal.dylib.3:/Applications/OpenOffice.org.app/Contents/basis- link/ure-link/lib/libuno_sal.dylib.3 -Wl,-dylib_file,@loader_path/ libuno_salhelpergcc3.dylib.3:/Applications/OpenOffice.org.app/ Contents/basis-link/ure-link/lib/libuno_salhelpergcc3.dylib.3 -Wl,- dylib_file,@loader_path/libuno_cppu.dylib.3:/Applications/ OpenOffice.org.app/Contents/basis-link/ure-link/lib/ libuno_cppu.dylib.3 ok, looks good. I have to improve the SDK here. Can you please submit an issue for this problem to me (component sdk, owner jsc) I am a new user of this forum and I never submit a issue. Maybe someone can do it. Then, I run the makefile to install the Component and the execution freeze on this command /Applications/OpenOffice.org.app/ Contents/MacOS/unopkg add -f /Users/pdoyon/OpenOffice.org3.0_SDK/ MACOSXexample.out/bin/CppComponent.oxt. that is probably a different problem. I had many deadlocks during my testing as well. The current situation is much better than at the beginning but still not 100% satisfying. The related issue is 92214. Have you tried to install it via the extensions manager UI in the office? Yes, I tried extension manager UI in OOo and It's did not work. An error occurred while enabling: CppComponent.uno.dylib Best Regards, Pierre - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] SDK on Mac OS X 10.4
Pierre Doyon wrote: Hi Juergen, Stephan Bergmann wrote: On 08/29/08 14:36, Pierre Doyon wrote: Hi Stephan, On 08/28/08 18:32, Pierre Doyon wrote: Hi, The undefined symbols come from the following warnings ld: warning can't open dynamic library: @loader_path/libuno_sal.dylib.3 referenced from: /Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/libuno_salhelpergcc3.dylib.3 referenced from: /Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/libuno_cppu.dylib.3 referenced from: /Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: Undefined symbols: Can you quote the complete gcc command line that outputs the above ld errors? -Stephan Here is the complete gcc command: gcc -malign-natural -c -O -fPIC -fno-common -I. -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/examples -I../../../../include -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/CppComponentSample -DUNX -DGCC -DMACOSX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/4.0.0 -o/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service1_impl.o service1_impl.cxx mkdir -p /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample gcc -malign-natural -c -O -fPIC -fno-common -I. -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/examples -I../../../../include -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/CppComponentSample -DUNX -DGCC -DMACOSX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/4.0.0 -o/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service2_impl.o service2_impl.cxx Here is the g++ command: g++ -dynamiclib -single_module -Wl,-multiply_defined,suppress -Wl,-exported_symbols_list /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/misc/CppComponentSample/CppComponent.uno.map -L/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib -L/Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib -L/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib -o /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib/CppComponent.uno.dylib /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service1_impl.o /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service2_impl.o \ -luno_cppuhelpergcc3 -luno_cppu -luno_sal -Wl,-dylib_file,@__URELIB/libuno_cppuhelpergcc3.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_cppuhelpergcc3.dylib -Wl,-dylib_file,@__URELIB/libuno_cppu.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_cppu.dylib -Wl,-dylib_file,@__URELIB/libuno_sal.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib -Wl,-dylib_file,@loader_path/libuno_sal.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib and similar for libuno_salhelpergcc3.dylib.3 and libuno_cppu.dylib.3 are missing from the above g++ command line. You link against @__URELIB/libuno_cppuhelpergcc3.dylib.3, which really is /Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_cppu.dylib (the -Wl,dylib_file,@... already present), which has a dependency on @loader_path/libuno_sal.dylib.3, which ld wants to resolve, and it appears that ld does not figure out the correct value for @loader_path itself (although it probably could) and you must instead also tell it explicitly (via the additional -Wl,-dylib_file,@loader... that is missing) where to look. Also see solenv/bin/macosx-dylib-link-list.pl:1.3 which computes the necessary -Wl,-dylib_file arguments in OOo builds. Pierre can you please test this? It seems that we have to improve the SDK env here. Maybe it is PPC specific because it works for me on Intel. Thanks Juergen I process the following g++ command with sucess. g++ -dynamiclib -single_module -Wl,-multiply_defined,suppress -Wl,-exported_symbols_list /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/misc/CppComponentSample/CppComponent.uno.map -L/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib -L/Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib
Re: [dev] SDK on Mac OS X 10.4
Hi Stephan, On 08/28/08 18:32, Pierre Doyon wrote: Hi, The undefined symbols come from the following warnings ld: warning can't open dynamic library: @loader_path/ libuno_sal.dylib.3 referenced from: /Users/pdoyon/ OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/ libuno_salhelpergcc3.dylib.3 referenced from: /Users/pdoyon/ OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/ libuno_cppu.dylib.3 referenced from: /Users/pdoyon/ OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: Undefined symbols: Can you quote the complete gcc command line that outputs the above ld errors? -Stephan Here is the complete gcc command: gcc -malign-natural -c -O -fPIC -fno-common -I. -I/Users/pdoyon/ OpenOffice.org3.0_SDK/MACOSXexample.out/inc -I/Users/pdoyon/ OpenOffice.org3.0_SDK/MACOSXexample.out/inc/examples -I../../../../ include -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/ CppComponentSample -DUNX -DGCC -DMACOSX -DCPPU_ENV=gcc3 - DGXX_INCLUDE_PATH=/usr/include/c++/4.0.0 -o/Users/pdoyon/ OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/ service1_impl.o service1_impl.cxx mkdir -p /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/ CppComponentSample gcc -malign-natural -c -O -fPIC -fno-common -I. -I/Users/pdoyon/ OpenOffice.org3.0_SDK/MACOSXexample.out/inc -I/Users/pdoyon/ OpenOffice.org3.0_SDK/MACOSXexample.out/inc/examples -I../../../../ include -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/ CppComponentSample -DUNX -DGCC -DMACOSX -DCPPU_ENV=gcc3 - DGXX_INCLUDE_PATH=/usr/include/c++/4.0.0 -o/Users/pdoyon/ OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/ service2_impl.o service2_impl.cxx Here is the g++ command: g++ -dynamiclib -single_module -Wl,-multiply_defined,suppress -Wl,- exported_symbols_list /Users/pdoyon/OpenOffice.org3.0_SDK/ MACOSXexample.out/misc/CppComponentSample/CppComponent.uno.map -L/ Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib -L/Users/ pdoyon/OpenOffice.org3.0_SDK/macosx/lib -L/Applications/ OpenOffice.org.app/Contents/basis-link/ure-link/lib -o /Users/pdoyon/ OpenOffice.org3.0_SDK/MACOSXexample.out/lib/CppComponent.uno.dylib / Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/ CppComponentSample/service1_impl.o /Users/pdoyon/ OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/ service2_impl.o \ -luno_cppuhelpergcc3 -luno_cppu -luno_sal -Wl,- dylib_file,@__URELIB/ libuno_cppuhelpergcc3.dylib.3:/Applications/OpenOffice.org.app/ Contents/basis-link/ure-link/lib/libuno_cppuhelpergcc3.dylib -Wl,- dylib_file,@__URELIB/ libuno_cppu.dylib.3:/Applications/OpenOffice.org.app/Contents/basis- link/ure-link/lib/libuno_cppu.dylib -Wl,- dylib_file,@__URELIB/ libuno_sal.dylib.3:/Applications/OpenOffice.org.app/Contents/basis- link/ure-link/lib/libuno_sal.dylib Best Regards Pierre
Re: [dev] SDK on Mac OS X 10.4
Pierre Doyon wrote: Hi, The undefined symbols come from the following warnings ld: warning can't open dynamic library: @loader_path/libuno_sal.dylib.3 referenced from: /Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/libuno_salhelpergcc3.dylib.3 referenced from: /Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/libuno_cppu.dylib.3 referenced from: /Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: Undefined symbols: I would like to know if the configuration of the OOo 3 SDK is right on my PPC. I did the following steps 1. Download OOo 3 application at http://ooopackages.good-day.net/pub/OpenOffice.org/MacOSX/Dev_OOO300_m3/OOo_Dev_OOO300_m3_MacOSXPowerPC_install.dmg; 2. Install the OOo3 application (/Applications/OpenOffice.org.app). 3. Download SDK at http://ooopackages.good-day.net/pub/OpenOffice.org/MacOSX/Dev_OOO300_m3/OOo-SDK_3.0_macosxp_install_en-US.dmg. 4. Install it and run setsdkenv_unix 5. run the makefile of the CppComponent exemple location to the examples/DevelopersGuide/Components/CppComponent path. * * SDK environment is prepared for MacOSX * * SDK = /Volumes/Pierre2/TiercesParties/OpenOffice/OpenOffice.org3.0_SDK * Office = /Applications/OpenOffice.org.app * Office Base = /Applications/OpenOffice.org.app/Contents/basis-link * URE = /Applications/OpenOffice.org.app/Contents/basis-link/ure-link * Make = /usr/bin * Zip = /usr/bin * C++ Compiler = /usr/bin * Java = /System/Library/Frameworks/JavaVM.Framework/Versions/1.5.0 * SDK Output directory = /Users/pdoyon/OpenOffice.org3.0_SDK * Auto deployment = YES * the configuration looks ok so far. I think that @loader_path symbol is incorrect. I replace the @loader_path symbol in the following librairies : libuno_cppuhelpergcc3.dylib.3 and libuno_cppu.dylib.3 with the following commands and the problem is resolved. sudo install_name_tool -change @loader_path/libuno_sal.dylib.3 /Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib.3 libuno_cppuhelpergcc3.dylib.3 sudo install_name_tool -change @loader_path/libuno_cppu.dylib.3 /Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_cppu.dylib.3 libuno_cppuhelpergcc3.dylib.3 sudo install_name_tool -change @loader_path/libuno_salhelpergcc3.dylib.3 /Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_salhelpergcc3.dylib.3 libuno_cppuhelpergcc3.dylib.3 sudo install_name_tool -change @loader_path/libuno_sal.dylib.3 /Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib.3 libuno_cppu.dylib.3 sudo install_name_tool -change @loader_path/libuno_salhelpergcc3.dylib.3 /Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_salhelpergcc3.dylib.3 libuno_cppu.dylib.3 Why the symbol @loader_path is incorrect on my PPC? i don't know Juergen Pierre eric b wrote: Hi, Le 21 août 08 à 13:47, Juergen Schmidt a écrit : Pierre Doyon wrote: Hi all, I tried to generate a UNO Component on PPC Mac OS X 10.4 with the SDK of OpenOffice.org 3.0 and I had somes problems during the link of the objects files. I got a list Undefined symbols like this one: _osl_acquireMutex referenced from @__URELIB/libuno_cppuhelpergcc3.dylib.3 expected to be defined in @loader_path/libuno_sal.dylib.3 I would like to know if you . I would like to know if you have succeeded the generatation of the UNO Component. If yes, how do you perform it? yes i have tested the SDK examples on an Intel based Mac and it worked for me. I still got some warnings like ld: warning, duplicate dylib /local/develop/cws/vcl30stop2/StarOffice.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib.3 when i compile C++ and i don't know why but the examples work. Maybe the lib in the solver differs from the one in the current module (does deliver help ?) Seems to be the first sentence of the log, but I can be wrong. no that doesn't help, i build both the office and the SDK on the same cws. The libraries should be always the same. Other issues (the one Pierre Doyon triggered above e.g.) can be: duplicate includes, or bad order of the includes declaration, including some #undef , and generally causing big troubles. But other reasons can do that .. difficult to solve when not in front of the machine :/ maybe but i assume more a
Re: [dev] SDK on Mac OS X 10.4
On 08/29/08 14:36, Pierre Doyon wrote: Hi Stephan, On 08/28/08 18:32, Pierre Doyon wrote: Hi, The undefined symbols come from the following warnings ld: warning can't open dynamic library: @loader_path/libuno_sal.dylib.3 referenced from: /Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/libuno_salhelpergcc3.dylib.3 referenced from: /Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/libuno_cppu.dylib.3 referenced from: /Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: Undefined symbols: Can you quote the complete gcc command line that outputs the above ld errors? -Stephan Here is the complete gcc command: gcc -malign-natural -c -O -fPIC -fno-common -I. -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/examples -I../../../../include -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/CppComponentSample -DUNX -DGCC -DMACOSX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/4.0.0 -o/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service1_impl.o service1_impl.cxx mkdir -p /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample gcc -malign-natural -c -O -fPIC -fno-common -I. -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/examples -I../../../../include -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/CppComponentSample -DUNX -DGCC -DMACOSX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/4.0.0 -o/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service2_impl.o service2_impl.cxx Here is the g++ command: g++ -dynamiclib -single_module -Wl,-multiply_defined,suppress -Wl,-exported_symbols_list /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/misc/CppComponentSample/CppComponent.uno.map -L/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib -L/Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib -L/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib -o /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib/CppComponent.uno.dylib /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service1_impl.o /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service2_impl.o \ -luno_cppuhelpergcc3 -luno_cppu -luno_sal -Wl,-dylib_file,@__URELIB/libuno_cppuhelpergcc3.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_cppuhelpergcc3.dylib -Wl,-dylib_file,@__URELIB/libuno_cppu.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_cppu.dylib -Wl,-dylib_file,@__URELIB/libuno_sal.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib -Wl,-dylib_file,@loader_path/libuno_sal.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib and similar for libuno_salhelpergcc3.dylib.3 and libuno_cppu.dylib.3 are missing from the above g++ command line. You link against @__URELIB/libuno_cppuhelpergcc3.dylib.3, which really is /Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_cppu.dylib (the -Wl,dylib_file,@... already present), which has a dependency on @loader_path/libuno_sal.dylib.3, which ld wants to resolve, and it appears that ld does not figure out the correct value for @loader_path itself (although it probably could) and you must instead also tell it explicitly (via the additional -Wl,-dylib_file,@loader... that is missing) where to look. Also see solenv/bin/macosx-dylib-link-list.pl:1.3 which computes the necessary -Wl,-dylib_file arguments in OOo builds. -Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] SDK on Mac OS X 10.4
Stephan Bergmann wrote: On 08/29/08 14:36, Pierre Doyon wrote: Hi Stephan, On 08/28/08 18:32, Pierre Doyon wrote: Hi, The undefined symbols come from the following warnings ld: warning can't open dynamic library: @loader_path/libuno_sal.dylib.3 referenced from: /Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/libuno_salhelpergcc3.dylib.3 referenced from: /Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/libuno_cppu.dylib.3 referenced from: /Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: Undefined symbols: Can you quote the complete gcc command line that outputs the above ld errors? -Stephan Here is the complete gcc command: gcc -malign-natural -c -O -fPIC -fno-common -I. -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/examples -I../../../../include -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/CppComponentSample -DUNX -DGCC -DMACOSX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/4.0.0 -o/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service1_impl.o service1_impl.cxx mkdir -p /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample gcc -malign-natural -c -O -fPIC -fno-common -I. -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/examples -I../../../../include -I/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/inc/CppComponentSample -DUNX -DGCC -DMACOSX -DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/4.0.0 -o/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service2_impl.o service2_impl.cxx Here is the g++ command: g++ -dynamiclib -single_module -Wl,-multiply_defined,suppress -Wl,-exported_symbols_list /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/misc/CppComponentSample/CppComponent.uno.map -L/Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib -L/Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib -L/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib -o /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib/CppComponent.uno.dylib /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service1_impl.o /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/CppComponentSample/service2_impl.o \ -luno_cppuhelpergcc3 -luno_cppu -luno_sal -Wl,-dylib_file,@__URELIB/libuno_cppuhelpergcc3.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_cppuhelpergcc3.dylib -Wl,-dylib_file,@__URELIB/libuno_cppu.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_cppu.dylib -Wl,-dylib_file,@__URELIB/libuno_sal.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib -Wl,-dylib_file,@loader_path/libuno_sal.dylib.3:/Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib and similar for libuno_salhelpergcc3.dylib.3 and libuno_cppu.dylib.3 are missing from the above g++ command line. You link against @__URELIB/libuno_cppuhelpergcc3.dylib.3, which really is /Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/libuno_cppu.dylib (the -Wl,dylib_file,@... already present), which has a dependency on @loader_path/libuno_sal.dylib.3, which ld wants to resolve, and it appears that ld does not figure out the correct value for @loader_path itself (although it probably could) and you must instead also tell it explicitly (via the additional -Wl,-dylib_file,@loader... that is missing) where to look. Also see solenv/bin/macosx-dylib-link-list.pl:1.3 which computes the necessary -Wl,-dylib_file arguments in OOo builds. Pierre can you please test this? It seems that we have to improve the SDK env here. Maybe it is PPC specific because it works for me on Intel. Thanks Juergen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] SDK on Mac OS X 10.4
Hi Juergen, Stephan Bergmann wrote: On 08/29/08 14:36, Pierre Doyon wrote: Hi Stephan, On 08/28/08 18:32, Pierre Doyon wrote: Hi, The undefined symbols come from the following warnings ld: warning can't open dynamic library: @loader_path/ libuno_sal.dylib.3 referenced from: /Users/pdoyon/ OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/ libuno_salhelpergcc3.dylib.3 referenced from: /Users/pdoyon/ OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/ libuno_cppu.dylib.3 referenced from: /Users/pdoyon/ OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: Undefined symbols: Can you quote the complete gcc command line that outputs the above ld errors? -Stephan Here is the complete gcc command: gcc -malign-natural -c -O -fPIC -fno-common -I. -I/Users/pdoyon/ OpenOffice.org3.0_SDK/MACOSXexample.out/inc -I/Users/pdoyon/ OpenOffice.org3.0_SDK/MACOSXexample.out/inc/examples - I../../../../include -I/Users/pdoyon/OpenOffice.org3.0_SDK/ MACOSXexample.out/inc/CppComponentSample -DUNX -DGCC -DMACOSX - DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/4.0.0 -o/Users/ pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/ CppComponentSample/service1_impl.o service1_impl.cxx mkdir -p /Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/ slo/CppComponentSample gcc -malign-natural -c -O -fPIC -fno-common -I. -I/Users/pdoyon/ OpenOffice.org3.0_SDK/MACOSXexample.out/inc -I/Users/pdoyon/ OpenOffice.org3.0_SDK/MACOSXexample.out/inc/examples - I../../../../include -I/Users/pdoyon/OpenOffice.org3.0_SDK/ MACOSXexample.out/inc/CppComponentSample -DUNX -DGCC -DMACOSX - DCPPU_ENV=gcc3 -DGXX_INCLUDE_PATH=/usr/include/c++/4.0.0 -o/Users/ pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/ CppComponentSample/service2_impl.o service2_impl.cxx Here is the g++ command: g++ -dynamiclib -single_module -Wl,-multiply_defined,suppress - Wl,-exported_symbols_list /Users/pdoyon/OpenOffice.org3.0_SDK/ MACOSXexample.out/misc/CppComponentSample/CppComponent.uno.map -L/ Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib -L/Users/ pdoyon/OpenOffice.org3.0_SDK/macosx/lib -L/Applications/ OpenOffice.org.app/Contents/basis-link/ure-link/lib -o /Users/ pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib/ CppComponent.uno.dylib /Users/pdoyon/OpenOffice.org3.0_SDK/ MACOSXexample.out/slo/CppComponentSample/service1_impl.o /Users/ pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/slo/ CppComponentSample/service2_impl.o \ -luno_cppuhelpergcc3 -luno_cppu -luno_sal -Wl,- dylib_file,@__URELIB /libuno_cppuhelpergcc3.dylib.3:/Applications/OpenOffice.org.app/ Contents/basis-link/ure-link/lib/libuno_cppuhelpergcc3.dylib -Wl,- dylib_file,@__URELIB /libuno_cppu.dylib.3:/Applications/OpenOffice.org.app/Contents/ basis-link/ure-link/lib/libuno_cppu.dylib -Wl,- dylib_file,@__URELIB /libuno_sal.dylib.3:/Applications/OpenOffice.org.app/Contents/ basis-link/ure-link/lib/libuno_sal.dylib -Wl,-dylib_file,@loader_path/libuno_sal.dylib.3:/Applications/ OpenOffice.org.app/Contents/basis-link/ure-link/lib/ libuno_sal.dylib and similar for libuno_salhelpergcc3.dylib.3 and libuno_cppu.dylib.3 are missing from the above g++ command line. You link against @__URELIB/ libuno_cppuhelpergcc3.dylib.3, which really is /Applications/ OpenOffice.org.app/Contents/basis-link/ure-link/lib/ libuno_cppu.dylib (the -Wl,dylib_file,@... already present), which has a dependency on @loader_path/libuno_sal.dylib.3, which ld wants to resolve, and it appears that ld does not figure out the correct value for @loader_path itself (although it probably could) and you must instead also tell it explicitly (via the additional -Wl,-dylib_file,@loader... that is missing) where to look. Also see solenv/bin/macosx-dylib-link-list.pl:1.3 which computes the necessary -Wl,-dylib_file arguments in OOo builds. Pierre can you please test this? It seems that we have to improve the SDK env here. Maybe it is PPC specific because it works for me on Intel. Thanks Juergen I process the following g++ command with sucess. g++ -dynamiclib -single_module -Wl,-multiply_defined,suppress -Wl,- exported_symbols_list /Users/pdoyon/OpenOffice.org3.0_SDK/ MACOSXexample.out/misc/CppComponentSample/CppComponent.uno.map -L/ Users/pdoyon/OpenOffice.org3.0_SDK/MACOSXexample.out/lib -L/Users/ pdoyon/OpenOffice.org3.0_SDK/macosx/lib
Re: [dev] SDK on Mac OS X 10.4
Hi, The undefined symbols come from the following warnings ld: warning can't open dynamic library: @loader_path/libuno_sal.dylib. 3 referenced from: /Users/pdoyon/OpenOffice.org3.0_SDK/macosx/lib/ libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/ libuno_salhelpergcc3.dylib.3 referenced from: /Users/pdoyon/ OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: warning can't open dynamic library: @loader_path/ libuno_cppu.dylib.3 referenced from: /Users/pdoyon/ OpenOffice.org3.0_SDK/macosx/lib/libuno_cppuhelpergcc3.dylib (checking for undefined symbols may be affected) (No such file or directory, errno = 2) ld: Undefined symbols: I would like to know if the configuration of the OOo 3 SDK is right on my PPC. I did the following steps 1. Download OOo 3 application at http://ooopackages.good-day.net/pub/ OpenOffice.org/MacOSX/Dev_OOO300_m3/ OOo_Dev_OOO300_m3_MacOSXPowerPC_install.dmg 2. Install the OOo3 application (/Applications/OpenOffice.org.app). 3. Download SDK at http://ooopackages.good-day.net/pub/OpenOffice.org/ MacOSX/Dev_OOO300_m3/OOo-SDK_3.0_macosxp_install_en-US.dmg. 4. Install it and run setsdkenv_unix 5. run the makefile of the CppComponent exemple location to the examples/DevelopersGuide/Components/CppComponent path. * * SDK environment is prepared for MacOSX * * SDK = /Volumes/Pierre2/TiercesParties/OpenOffice/ OpenOffice.org3.0_SDK * Office = /Applications/OpenOffice.org.app * Office Base = /Applications/OpenOffice.org.app/Contents/basis-link * URE = /Applications/OpenOffice.org.app/Contents/basis-link/ure-link * Make = /usr/bin * Zip = /usr/bin * C++ Compiler = /usr/bin * Java = /System/Library/Frameworks/JavaVM.Framework/Versions/1.5.0 * SDK Output directory = /Users/pdoyon/OpenOffice.org3.0_SDK * Auto deployment = YES * I think that @loader_path symbol is incorrect. I replace the @loader_path symbol in the following librairies : libuno_cppuhelpergcc3.dylib.3 and libuno_cppu.dylib.3 with the following commands and the problem is resolved. sudo install_name_tool -change @loader_path/libuno_sal.dylib.3 / Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/ libuno_sal.dylib.3 libuno_cppuhelpergcc3.dylib.3 sudo install_name_tool -change @loader_path/libuno_cppu.dylib.3 / Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/ libuno_cppu.dylib.3 libuno_cppuhelpergcc3.dylib.3 sudo install_name_tool -change @loader_path/ libuno_salhelpergcc3.dylib.3 /Applications/OpenOffice.org.app/ Contents/basis-link/ure-link/lib/libuno_salhelpergcc3.dylib.3 libuno_cppuhelpergcc3.dylib.3 sudo install_name_tool -change @loader_path/libuno_sal.dylib.3 / Applications/OpenOffice.org.app/Contents/basis-link/ure-link/lib/ libuno_sal.dylib.3 libuno_cppu.dylib.3 sudo install_name_tool -change @loader_path/ libuno_salhelpergcc3.dylib.3 /Applications/OpenOffice.org.app/ Contents/basis-link/ure-link/lib/libuno_salhelpergcc3.dylib.3 libuno_cppu.dylib.3 Why the symbol @loader_path is incorrect on my PPC? Pierre eric b wrote: Hi, Le 21 août 08 à 13:47, Juergen Schmidt a écrit : Pierre Doyon wrote: Hi all, I tried to generate a UNO Component on PPC Mac OS X 10.4 with the SDK of OpenOffice.org 3.0 and I had somes problems during the link of the objects files. I got a list Undefined symbols like this one: _osl_acquireMutex referenced from @__URELIB/ libuno_cppuhelpergcc3.dylib.3 expected to be defined in @loader_path/libuno_sal.dylib.3 I would like to know if you . I would like to know if you have succeeded the generatation of the UNO Component. If yes, how do you perform it? yes i have tested the SDK examples on an Intel based Mac and it worked for me. I still got some warnings like ld: warning, duplicate dylib /local/develop/cws/vcl30stop2/StarOffice.app/Contents/basis-link/ ure-link/lib/libuno_sal.dylib.3 when i compile C++ and i don't know why but the examples work. Maybe the lib in the solver differs from the one in the current module (does deliver help ?) Seems to be the first sentence of the log, but I can be wrong. no that doesn't help, i build both the office and the SDK on the same cws. The libraries should be always the same. Other issues (the one Pierre Doyon triggered above e.g.) can be: duplicate includes, or bad order of the includes declaration, including some #undef , and generally causing big troubles. But other reasons can do that .. difficult to solve when not in front of the machine :/ maybe but i assume more a configuration problem. Maybe you can
Re: [dev] SDK on Mac OS X 10.4
eric b wrote: Hi, Le 21 août 08 à 13:47, Juergen Schmidt a écrit : Pierre Doyon wrote: Hi all, I tried to generate a UNO Component on PPC Mac OS X 10.4 with the SDK of OpenOffice.org 3.0 and I had somes problems during the link of the objects files. I got a list Undefined symbols like this one: _osl_acquireMutex referenced from @__URELIB/libuno_cppuhelpergcc3.dylib.3 expected to be defined in @loader_path/libuno_sal.dylib.3 I would like to know if you . I would like to know if you have succeeded the generatation of the UNO Component. If yes, how do you perform it? yes i have tested the SDK examples on an Intel based Mac and it worked for me. I still got some warnings like ld: warning, duplicate dylib /local/develop/cws/vcl30stop2/StarOffice.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib.3 when i compile C++ and i don't know why but the examples work. Maybe the lib in the solver differs from the one in the current module (does deliver help ?) Seems to be the first sentence of the log, but I can be wrong. no that doesn't help, i build both the office and the SDK on the same cws. The libraries should be always the same. Other issues (the one Pierre Doyon triggered above e.g.) can be: duplicate includes, or bad order of the includes declaration, including some #undef , and generally causing big troubles. But other reasons can do that .. difficult to solve when not in front of the machine :/ maybe but i assume more a configuration problem. Maybe you can give me remote access to a PPC machine (next week) that i can investigate in this problem a little bit. Juergen Regards, Eric Bachard - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] SDK on Mac OS X 10.4
Pierre Doyon wrote: Hi all, I tried to generate a UNO Component on PPC Mac OS X 10.4 with the SDK of OpenOffice.org 3.0 and I had somes problems during the link of the objects files. I got a list Undefined symbols like this one: _osl_acquireMutex referenced from @__URELIB/libuno_cppuhelpergcc3.dylib.3 expected to be defined in @loader_path/libuno_sal.dylib.3 I would like to know if you . I would like to know if you have succeeded the generatation of the UNO Component. If yes, how do you perform it? yes i have tested the SDK examples on an Intel based Mac and it worked for me. I still got some warnings like ld: warning, duplicate dylib /local/develop/cws/vcl30stop2/StarOffice.app/Contents/basis-link/ure-link/lib/libuno_sal.dylib.3 when i compile C++ and i don't know why but the examples work. I haven't tested it on a PPC because i have no PPC env in place for testing. I assume that the env is not 100'% correct for PPC. In general it should work there as well. Juergen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [dev] SDK on Mac OS X 10.4
Hi, Le 21 août 08 à 13:47, Juergen Schmidt a écrit : Pierre Doyon wrote: Hi all, I tried to generate a UNO Component on PPC Mac OS X 10.4 with the SDK of OpenOffice.org 3.0 and I had somes problems during the link of the objects files. I got a list Undefined symbols like this one: _osl_acquireMutex referenced from @__URELIB/ libuno_cppuhelpergcc3.dylib.3 expected to be defined in @loader_path/libuno_sal.dylib.3 I would like to know if you . I would like to know if you have succeeded the generatation of the UNO Component. If yes, how do you perform it? yes i have tested the SDK examples on an Intel based Mac and it worked for me. I still got some warnings like ld: warning, duplicate dylib /local/develop/cws/vcl30stop2/StarOffice.app/Contents/basis-link/ ure-link/lib/libuno_sal.dylib.3 when i compile C++ and i don't know why but the examples work. Maybe the lib in the solver differs from the one in the current module (does deliver help ?) Seems to be the first sentence of the log, but I can be wrong. Other issues (the one Pierre Doyon triggered above e.g.) can be: duplicate includes, or bad order of the includes declaration, including some #undef , and generally causing big troubles. But other reasons can do that .. difficult to solve when not in front of the machine :/ Regards, Eric Bachard -- qɔᴉɹə