I am trying to compile firefox 2.0.0.11 on ubuntu 7.10. And I am
getting the following error while linking.
I have checked that my LD_LIBRARY_PATH has /usr/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/lib:
And I do have
$ pwd
/usr/lib
$ ls -la libXt*
-rw-r--r-- 1 root root 429164 2007-05-21 07:27 libXt.a
lrwxrwxrwx 1 root root 14 2007-10-18 17:06 libXt.so -> libXt.so.
6.0.0
lrwxrwxrwx 1 root root 14 2007-10-18 17:06 libXt.so.6 -> libXt.so.
6.0.0
-rw-r--r-- 1 root root 326564 2007-05-21 07:27 libXt.so.6.0.0
Can you please tell me how can I resolve my problem?
gtk2xtbin.o: In function `xt_client_focus_listener':
/home/yinglcs/firefox_working/firefox2.0.0.11/mozilla/widget/src/
gtkxtbin/gtk2xtbin.c:826: undefined reference to `XtDisplay'
/home/yinglcs/firefox_working/firefox2.0.0.11/mozilla/widget/src/
gtkxtbin/gtk2xtbin.c:828: undefined reference to `XtWindow'
/home/yinglcs/firefox_working/firefox2.0.0.11/mozilla/widget/src/
gtkxtbin/gtk2xtbin.c:834: undefined reference to `XtWindowToWidget'
/home/yinglcs/firefox_working/firefox2.0.0.11/mozilla/widget/src/
gtkxtbin/gtk2xtbin.c:845: undefined reference to `XtWindowToWidget'
collect2: ld returned 1 exit status
make[3]: *** [libgtkxtbin.so] Error 1
make[3]: Leaving directory `/home/yinglcs/firefox_working/
firefox2.0.0.11/mozilla/firefox-objdir/widget/src/gtkxtbin'
make[2]: *** [tier_9] Error 2
make[2]: Leaving directory `/home/yinglcs/firefox_working/
firefox2.0.0.11/mozilla/firefox-objdir'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/yinglcs/firefox_working/
firefox2.0.0.11/mozilla/firefox-objdir'
make: *** [build] Error 2
>Can you please tell me how can I resolve my problem?
Seems that you have to install the package libxt-dev. Guessing that from
asking http://www.debian.org/distrib/packages ;)
Hartmut
Thank you Harmut,
I have installed libxt-dev package via synaptic Package. But I still
have the same error.
Can you please tell me what other configuration i need to do to get
firefox to compile? e.g. LD_LIBRARY_PATH?
or anything else?
>> Seems that you have to install the package libxt-dev. Guessing that from
>> askinghttp://www.debian.org/distrib/packages;)
>
>I have installed libxt-dev package via synaptic Package. But I still
>have the same error.
Like e.g. undefined reference to `XtDisplay'? Mhm, those one should be
fixed by installation of libxt-dev.
>Can you please tell me what other configuration i need to do to get
>firefox to compile? e.g. LD_LIBRARY_PATH?
You really should ask on a special newsgroup or mailinglist for ubuntu.
Especially because i have experience with building SM but i never have
build FF or TB. And i don't use ubuntu. ;)
But you have asked me.
I have used Debian since the release of Slink. Later with Unstable until
i switched to Gentoo about one year ago. Ubuntu should be very similar
to Debian, so there is hope that my standard way of getting missing
packages works for you. For the LIBRARY_PATH, there was never need to
mess with it.
First make sure that build-essentials is installed. Then create a
special directory in home, e.g. ff, get the .orig.tar.gz, the .diff.gz
and the .dsc for a firefox similar to that you want to compile from
ftp.ubuntu.com and put them in ff.
Switch to ff and execute
dpkg-source -x name.dsc
where 'name' corresponds to the downloaded source of firefox. This
creates a new directory with the unpacked source.
Switch do that directory and execute there
dpkg-buildpackage -uc -us -rfakeroot -b
And now missing packages will be shown. :) Install them and repeat the
above step until the building of the .deb succeeds.
Well, you don't need that .deb but now you have installed all packages
needed for your own compilation.
Hartmut
> I am trying to compile firefox 2.0.0.11 on ubuntu 7.10. And I am
> getting the following error while linking.
>
> I have checked that my LD_LIBRARY_PATH has /usr/lib
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib:/usr/lib:
I don't think you need to add the standard paths to LD_LIBRARY_PATH.
> And I do have
>
> $ pwd
> /usr/lib
> $ ls -la libXt*
> -rw-r--r-- 1 root root 429164 2007-05-21 07:27 libXt.a
> lrwxrwxrwx 1 root root 14 2007-10-18 17:06 libXt.so -> libXt.so.6.0.0
> lrwxrwxrwx 1 root root 14 2007-10-18 17:06 libXt.so.6 -> libXt.so.6.0.0
> -rw-r--r-- 1 root root 326564 2007-05-21 07:27 libXt.so.6.0.0
>
> Can you please tell me how can I resolve my problem?
>
> gtk2xtbin.o: In function `xt_client_focus_listener':
> /home/yinglcs/firefox_working/firefox2.0.0.11/mozilla/widget/src/
> gtkxtbin/gtk2xtbin.c:826: undefined reference to `XtDisplay'
Is your system 64bits? Then you probably need to verify that the
respective library is in /usr/lib64 and that it or the respective .a file
contains the correct symbol, e.g. by doing
nm -o /usr/lib*/libXt.{a,so} | grep XtDisplay$
Peter.
P.S.: Why are you still compiling 2.0.0.11 now that 2.0.0.13 is out?
Hey all,
I am getting the same error with 2.0.0.13. Yes I have the xt-dev
package as well as the libs. However in attempting to get the symbol
information using nm, I am getting no symbol information for the
shared object. Since I am using enable-share/disable-static options, I
suspect this could be a cause. Not sure though.
Thanks,
Moose.
> I am getting the same error with 2.0.0.13. Yes I have the xt-dev
> package as well as the libs. However in attempting to get the symbol
> information using nm, I am getting no symbol information for the
> shared object.
Yes, nm doesn't work on stripped .so files, that's why I included the .a
file in the command line. If you don't have the respective static library
that won't work. Actually, I think one is supposed to use objdump -T for
shared objects, e.g.
$ objdump -T /usr/lib/libXt.so | grep XtDisplay$
00022450 g DF .text 0000000e Base XtDisplay
Cheers,
Peter.
Yes I figured that stripped .so files don't have symbol information.
However wasn't aware of objdump.
Thanks, I did get it working though.
--moose.
How did you get it working? I believe I'm having the same problem.
thanks a lot.