xpcom problem when compiling with gecko sdk 1.9 [SOLVED]

Talk about add-ons and extension development.
Post Reply
User avatar
Powerful Superman
Posts: 2
Joined: September 9th, 2007, 6:30 am

xpcom problem when compiling with gecko sdk 1.9 [SOLVED]

Post by Powerful Superman »

I'm trying to update my extension for FF3, there is an XPCOM component in my extension. When I finish compiling the component using gecko sdk 1.9pre in LINUX, and try to test it whether it can be registered correctly, I use:
Firefox3/run-mozilla.sh `which ldd` -r path/to/your/component.so
it gives me:
undefined symbol: _Z20NS_NewGenericModule2PK12nsModuleInfoPP9nsIModule
Any1 knows how to solve the problem?
thx

--------------
I've solved it by myself.
mykmelez
Posts: 23
Joined: June 19th, 2003, 10:11 pm

Post by mykmelez »

I'm having the same problem. How did you solve it?
User avatar
Powerful Superman
Posts: 2
Joined: September 9th, 2007, 6:30 am

Post by Powerful Superman »

here, this link: http://www.iosart.com/firefox/xpcom/
"I also changed the link order, which is apparently VERY important on Linux;

$(FILES) $(GECKO_SDK_PATH)/lib/libxpcomglue_s.a $(GECKO_LDFLAGS)

This will cause NS_NewGenericModule2 to be defined, rather than undefined."
I just followed the hints in the discussions, put the $(GECKO_LDFLAGS) to the last then solved the problem.
Good luck
mykmelez
Posts: 23
Joined: June 19th, 2003, 10:11 pm

Post by mykmelez »

Ah, thanks for the tip!
Post Reply