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.
xpcom problem when compiling with gecko sdk 1.9 [SOLVED]
- Powerful Superman
- Posts: 2
- Joined: September 9th, 2007, 6:30 am
- Powerful Superman
- Posts: 2
- Joined: September 9th, 2007, 6:30 am
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
"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