> On Dec 25, 2007 9:37 PM, sathiya <getsath
...@gmail.com> wrote:
> > I have modified all three files.
> > But when compile the code, i received the following errors,
> > /usr/bin/ld: skipping incompatible third_party/gecko_1.8/linux/
> > gecko_sdk/lib/libxpcom.so when searching for -lxpcom
> > /usr/bin/ld: cannot find -lxpcom
> > collect2: ld returned 1 exit status
> > make[1]: *** [bin-opt/linux-x86_64/ff/libgears.so] Error 1
> > make: *** [default] Error 2
> <snip>
> > > > On 7/16/07, John Yodsnukis <john.yodsnu...@gmail.com> wrote:
> > > > > Here's a patch that allowed me to compile from svn source under 64 bit Linux.
> > > > > Index: gears/tools/config.mk
> > > > > ===================================================================
> > > > > --- gears/tools/config.mk (revision 142)
> > > > > +++ gears/tools/config.mk (working copy)
> > > > > @@ -40,11 +40,13 @@
> > > > > # OSX builds will override this.
> > > > > # Other platforms just need a value defined.
> > > > > ARCH = i386
> > > > > +ARCH = x86_64
> > > > > # Set default build mode
> > > > > # dbg = debug build
> > > > > # opt = release build
> > > > > MODE = dbg
> > > > > +MODE = opt
> > > > > # $(shell ...) statements need to be different on Win32 (%% vs %).
> > > > > @@ -95,6 +97,7 @@
> > > > > COMPILE_FLAGS_dbg = -g -O0
> > > > > COMPILE_FLAGS_opt = -O2
> > > > > COMPILE_FLAGS = -c -o $@ -fPIC -Wall -Werror $(COMPILE_FLAGS_$(MODE))
> > > > > +COMPILE_FLAGS = -c -o $@ -fPIC -Wall $(COMPILE_FLAGS_$(MODE))
> > > > > # NS_LITERAL_STRING does not work properly without this compiler option
> > > > > COMPILE_FLAGS += -fshort-wchar
> > > > > Index: gears/localserver/firefox/async_task_ff.cc
> > > > > ===================================================================
> > > > > --- gears/localserver/firefox/async_task_ff.cc (revision 142)
> > > > > +++ gears/localserver/firefox/async_task_ff.cc (working copy)
> > > > > @@ -441,7 +441,8 @@
> > > > > Abort();
> > > > > break;
> > > > > default:
> > > > > - OnListenerEvent(msg_code, reinterpret_cast<int>(msg_param));
> > > > > +// OnListenerEvent(msg_code, reinterpret_cast<int>(msg_param));
> > > > > + OnListenerEvent(msg_code, reinterpret_cast<long>(msg_param));
> > > > > break;
> > > > > }
> > > > > }
> You must replace the below files with 64bit versions. You can
> probably find them in /usr/lib/...
> or in the 64 bit gecko sdk.
> > > > > Index: gears/third_party/gecko_sdk/1.8/linux/lib/libxpcomglue_s.a
> > > > > ===================================================================
> > > > > Cannot display: file marked as a binary type.
> > > > > svn:mime-type = application/octet-stream
> > > > > Index: gears/third_party/gecko_sdk/1.8/linux/lib/libnspr4.so
> > > > > ===================================================================
> > > > > Cannot display: file marked as a binary type.
> > > > > svn:mime-type = application/octet-stream
> > > > > Index: gears/third_party/gecko_sdk/1.8/linux/lib/libxpcom.so
> > > > > ===================================================================
> > > > > Cannot display: file marked as a binary type.
> > > > > svn:mime-type = application/octet-stream
> > > > > Index: gears/third_party/gecko_sdk/1.8/linux/bin/xpidl
> > > > > ===================================================================
> > > > > Cannot display: file marked as a binary type.
> > > > > svn:mime-type = application/octet-stream
> > > > > Index: gears/third_party/gecko_sdk/1.8/linux/bin/xpt_dump
> > > > > ===================================================================
> > > > > Cannot display: file marked as a binary type.
> > > > > svn:mime-type = application/octet-stream
> > > > > Index: gears/third_party/gecko_sdk/1.8/linux/bin/regxpcom
> > > > > ===================================================================
> > > > > Cannot display: file marked as a binary type.
> > > > > svn:mime-type = application/octet-stream
> > > > > Index: gears/third_party/gecko_sdk/1.8/linux/bin/xpt_link
> > > > > ===================================================================
> > > > > Cannot display: file marked as a binary type.
> > > > > svn:mime-type = application/octet-stream