Hi All:

We have a plugin and associated dylibs on Mac OS X that works with  
Firefox 2, which now must be brought up Firefox 3. I've got the code  
compiling, but I'm having a weird link error. Well, it's not that  
weird, it's not finding a bunch of symbols. But where did they go?

The (beginning) of the errors are as follows:

__ZNK9nsAString12BeginReadingEv
__ZN9nsAString17DefaultComparatorEPKtS1_j
__ZNK9nsAString6EqualsERKS_PFiPKtS3_jE
__ZNK10nsACString12BeginReadingEv
/build_files/VizibleObjectModelImpl.build/Debug/VizibleObjectModel 
(STLport).build/Objects
normal/ppc/FrameFactory.o reference to undefined  
__ZNK9nsAString12BeginReadingEv
/build_files/VizibleObjectModelImpl.build/Debug/VizibleObjectModel 
(STLport).build/Objects
normal/ppc/MetaData.o reference to undefined  
__ZNK9nsAString12BeginReadingEv
/build_files/VizibleObjectModelImpl.build/Debug/VizibleObjectModel 
(STLport).build/Objects-normal/ppc/Viewer.o
reference to undefined __ZNK9nsAString12BeginReadingEv

If memory serves, nsAString and nsCString are pretty basic to the  
Firefox code.

When I first compiled Firefox to build the dylibs, I just followed  
the instructions on mozilla developer page. MinefieldDebug seems to  
work just fine!

Our build script just cd's to the mozilla directory and calls the  
make -f client.mk build command.

Here's our mozconfig:

. $topsrcdir/browser/config/mozconfig
. $topsrcdir/build/macosx/universal/mozconfig
ac_add_options --enable-svg
ac_add_options --enable-quartz
ac_add_options --enable-optimize
ac_add_options --disable-debug
ac_add_options --disable-static
ac_add_options --enable-shared
ac_add_options --disable-tests
ac_add_options --disable-libxul
ac_add_options --enable-xpcom-obsolete
ac_add_options --with-macos-sdk=/Developer/SDKs/MacOSX10.4u.sdk
mk_add_options [EMAIL PROTECTED]@/../build
mk_add_options MOZ_MAKE_FLAGS="-j4"   # use parallel make

I did add the enable-xpcom-obsolete to produce libxpcom_compat.dylib  
(which was produced from the Firefox 2.0 code), but the link errors  
occurred.

So, I have a few questions. Were nsAString and nsCString moved? And  
what dylib must I link to in order to link successfully? Is a change  
to .mozconfig needed?

Thanks in advance for your time


Best regards


John Cebasek


_______________________________________________
dev-embedding mailing list
dev-embedding@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-embedding

Reply via email to