You are not logged in.

#1 2008-07-08 18:14:35

Violent By Design
Member
From: Emmen
Registered: 2008-07-08
Posts: 6

Problem installing OpenFTD -> cannot compile and run XPCOM programs

I'm trying to install openftd (usenet indexer) via pkgbuild
Already resolved a few dependencies but this one i cannot fix, it's got something to do with firefox (which openftd useds to display)

Here's the last part of my terminal output:

checking dynamic linker characteristics... GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking whether gcc and cc understand -c and -o together... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for GLIB... yes
checking for LIBXML2... yes
checking for SQLITE3... yes
checking for DBUS... yes
checking for libcurl... libcurl gevonden in /usr/lib.
checking for curl.h... curl.h gevonden in /usr/include/curl.
checking for GTK... yes
checking if GTK >= 2.10.0... yes
checking if GLIB >= 2.14.0... yes
checking for GNOME... yes
checking for installed version of libgtkhtml3... found version 3.18.3
checking for GTKHTML... yes
checking for WEBKIT... yes
checking for gawk... (cached) gawk
checking which gecko to use... xulrunner
checking for gecko home...
checking for compiler -fshort-wchar option... yes
checking whether to enable C++ RTTI... no
checking whether we have a gtk 2 gecko build... yes
checking whether we have a gecko debug build... unknown
checking for gecko version... 1.9
checking for GECKO... yes
checking whether we can compile and run XPCOM programs... no
configure: error: Cannot compile and run XPCOM programs
See `config.log' for more details.
make: *** No targets specified and no makefile found.  Stop.
==> ERROR: Build Failed.
    Aborting...

This is what the config.log says about it:

configure:21950: checking whether we can compile and run XPCOM programs

configure:22068: g++ -o conftest -g -O2 -fno-rtti -fshort-wchar -fshort-wchar     -I/usr/include/xulrunner-1.9 -I/usr/include/xulrunner-1.9/unstable -I/usr/include/xulrunner-1.9/stable -I/usr/include/nspr   -I/usr/include/xulrunner-1.9/dom -I/usr/include/xulrunner-1.9/necko -I/usr/include/xulrunner-1.9/pref  -lcurl -L/usr/lib -lpthread  -Wl,--rpath= conftest.cpp  -L/usr/lib/xulrunner-devel-1.9/lib -lxpcomglue_s -lxul -lxpcom -lplds4 -lplc4 -lnspr4 -lpthread -ldl   -L -lmozjs -lxul -lxpcom -L -lxpcomglue_s >&5

configure:22071: $? = 0
configure:22077: ./conftest
./conftest: error while loading shared libraries: libxul.so: cannot open shared object file: No such file or directory
configure:22080: $? = 127
configure: program exited with status 127

I already re-installed xulrunner1.9

Can I install the shared lib manually?

Read some posts about downgrading to 1.8 regarding to problems with firefox.

Some hints?

Last edited by Violent By Design (2008-07-08 19:13:12)

Offline

#2 2008-07-08 20:05:01

Bert
Member
From: Zwolle
Registered: 2006-04-10
Posts: 14

Re: Problem installing OpenFTD -> cannot compile and run XPCOM programs

add /usr/lib/xulrunner-1.9/ to /etc/ld.so.conf  and start ld

Offline

#3 2008-07-09 04:47:47

Violent By Design
Member
From: Emmen
Registered: 2008-07-08
Posts: 6

Re: Problem installing OpenFTD -> cannot compile and run XPCOM programs

Added it, but when starting ld it complains about no input files...

Offline

#4 2008-07-09 16:58:48

Violent By Design
Member
From: Emmen
Registered: 2008-07-08
Posts: 6

Re: Problem installing OpenFTD -> cannot compile and run XPCOM programs

Found i need to run ldconfig after tweaking the /etc/ld.so.conf, but still no results.
Also I found that the rest of the file was empty except for the /usr/lib/libfakeroot

Is this normal after a normal install of the base plus xfce4, firefox, exaile, totem?

Offline

#5 2008-07-09 17:25:35

Bert
Member
From: Zwolle
Registered: 2006-04-10
Posts: 14

Re: Problem installing OpenFTD -> cannot compile and run XPCOM programs

my ld.so.conf

#
# /etc/ld.so.conf
#

/usr/X11R6/lib
/opt/kde/lib
/opt/qt/lib
/usr/lib/libfakeroot
/usr/lib/xulrunner-1.9

# End of file

Offline

#6 2008-07-09 18:16:44

Violent By Design
Member
From: Emmen
Registered: 2008-07-08
Posts: 6

Re: Problem installing OpenFTD -> cannot compile and run XPCOM programs

I don't have the /usr/X11R6/lib, /opt/kde/lib and/opt/qt/lib installed.
To me de kde and qt libs are obvious since you run kde.
You are running openftd too? If yes have you only installed kde after the base install?

Offline

#7 2008-07-09 19:00:46

Bert
Member
From: Zwolle
Registered: 2006-04-10
Posts: 14

Re: Problem installing OpenFTD -> cannot compile and run XPCOM programs

Hi,

Ik gebruik openftd, en had dezelfde problemen, nadat ik /usr/lib/xulrunner-1.9 had toegevoegd was het probleem opgelost.
Ik heb KDE openbox en xfce4 geinstalleerd.

Offline

#8 2008-07-09 19:07:45

Violent By Design
Member
From: Emmen
Registered: 2008-07-08
Posts: 6

Re: Problem installing OpenFTD -> cannot compile and run XPCOM programs

Je had het over start ld, maar dit is een tool om te linken, bedoel je ldconfig en daarna makepkg?

Offline

#9 2008-07-09 19:12:51

Bert
Member
From: Zwolle
Registered: 2006-04-10
Posts: 14

Re: Problem installing OpenFTD -> cannot compile and run XPCOM programs

ja sorry ik bedoelde ldconfig en ik heb openftd geinstalleerd met yaourt

Last edited by Bert (2008-07-09 19:19:05)

Offline

#10 2008-07-09 20:29:29

Violent By Design
Member
From: Emmen
Registered: 2008-07-08
Posts: 6

Re: Problem installing OpenFTD -> cannot compile and run XPCOM programs

Op zich niet verwacht, maar de oplossing was waarschijnlijk een reboot tongue

Heb nu nog wel het probleem dat ftd niet goed update, steeds loopt ie vast op een Alice Cooper post (kan niet parsen)
Ook last van met mijn bestaande Mint install, maar door op [nieuw] te klikken worden de nieuwe posts wel toegevoegd.

Bedankt voor de info en leech ze!

Offline

#11 2008-07-09 21:07:50

Bert
Member
From: Zwolle
Registered: 2006-04-10
Posts: 14

Re: Problem installing OpenFTD -> cannot compile and run XPCOM programs

Alice Cooper heb ik ook last van sad

blij dat het gelukt is  leech ze!

Offline

Board footer

Powered by FluxBB