You are not logged in.

#1 2009-10-02 13:48:58

rafaelgp
Member
From: Leicester UK
Registered: 2009-02-16
Posts: 28
Website

[Solved]Lightning for Thunderbird:C compiler cannot create executables

Thanks very much in advance.

I am trying to install Lightning in Thunderbird but no luck so far.
The xpi file from their website is not for 64 bits.
The link for the 64 bits version doesn't work
I've tried with AUR and yaourt but both return the following error (look at the end):

==> Making package: lightning 0.9-2 x86_64 (Fri Oct  2 13:58:20 BST 2009)
==> Checking Runtime Dependencies...
==> Checking Buildtime Dependencies...
==> Installing missing dependencies...
resolving dependencies...
looking for inter-conflicts...

Targets (1): zip-3.0-1  

Total Download Size:    0.26 MB
Total Installed Size:   0.57 MB

Proceed with installation? [Y/n] y
:: Retrieving packages from extra...
 zip-3.0-1-x86_64         266.2K  389.5K/s 00:00:01 [#####################] 100%
checking package integrity...
(1/1) checking for file conflicts                   [#####################] 100%
(1/1) installing zip                                [#####################] 100%
==> Retrieving Sources...
  -> Downloading lightning-sunbird-0.9-source.tar.bz2...
--2009-10-02 13:58:32--  http://releases.mozilla.org/pub/mozilla.org/calendar/sunbird/releases/0.9/source/lightning-sunbird-0.9-source.tar.bz2
Resolving releases.mozilla.org... 156.56.247.196, 204.152.184.113, 149.20.20.5, ...
Connecting to releases.mozilla.org|156.56.247.196|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 43121977 (41M) [application/x-tar]
Saving to: `lightning-sunbird-0.9-source.tar.bz2.part'

100%[======================================>] 43,121,977   412K/s   in 1m 43s  

2009-10-02 14:00:15 (407 KB/s) - `lightning-sunbird-0.9-source.tar.bz2.part' saved [43121977/43121977]

  -> Found lightning-sunbird-0.9-locale.diff in build dir
  -> Found lightning-gcc44.diff in build dir
  -> Found mozconfig in build dir
==> Validating source files with md5sums...
    lightning-sunbird-0.9-source.tar.bz2 ... Passed
    lightning-sunbird-0.9-locale.diff ... Passed
    lightning-gcc44.diff ... Passed
    mozconfig ... Passed
==> Extracting Sources...
  -> Extracting lightning-sunbird-0.9-source.tar.bz2 with bsdtar
==> Entering fakeroot environment...
==> Starting build()...
patching file calendar/sunbird/app/mozilla.in
patching file toolkit/xre/nsAppRunner.cpp
Adding client.mk options from /home/rafael/Builds/lightning/src/mozconfig:
    MOZ_CO_PROJECT=calendar
    BUILD_OFFICIAL=1
    MOZILLA_OFFICIAL=1
make[1]: Entering directory `/home/rafael/Builds/lightning/src/mozilla'
cd /home/rafael/Builds/lightning/src/mozilla/lightning-obj
/home/rafael/Builds/lightning/src/mozilla/configure
Adding configure options from /home/rafael/Builds/lightning/src/mozconfig:
  --enable-application=calendar
  --prefix=/usr
  --enable-extensions=lightning
  --enable-default-toolkit=gtk2
  --enable-system-cairo
  --enable-optimize
  --disable-debug
  --disable-tests
  --disable-installer
  --with-default-mozilla-five-home=/usr/lib/thunderbird-2.0
  --with-system-nss
  --with-system-nspr
  --with-system-jpeg
  --with-system-zlib
  --with-system-png
creating cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-linux-gnu
checking for gawk... gawk
checking for nsinstall... no
checking for gcc... gcc
checking whether the C compiler (gcc -march=x86-64 -mtune=generic -O2 -pipe -Wl,--hash-style=gnu -Wl,--as-needed-lXrender -lX11  ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
*** Fix above errors and then restart with               "make -f client.mk build"
make[1]: *** [configure] Error 1
make[1]: Leaving directory `/home/rafael/Builds/lightning/src/mozilla'
make: *** [/home/rafael/Builds/lightning/src/mozilla/lightning-obj/Makefile] Error 2
==> ERROR: Build Failed.
    Aborting..

.

I've searched in forums and on the Internet but I am a newby and I have no idea how to fix the c compiler...

Thanks again

Last edited by rafaelgp (2009-10-02 17:34:53)

Offline

#2 2009-10-02 14:35:31

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,425
Website

Re: [Solved]Lightning for Thunderbird:C compiler cannot create executables

checking whether the C compiler (gcc -march=x86-64 -mtune=generic -O2 -pipe -Wl,--hash-style=gnu -Wl,--as-needed-lXrender -lX11  ) works... no

Notice the missing space between -Wl,--as-needed and -lXrender.   I guess you can sed fix that.

Offline

#3 2009-10-02 14:59:05

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [Solved]Lightning for Thunderbird:C compiler cannot create executables

Allan wrote:

Notice the missing space between -Wl,--as-needed and -lXrender.

This was an oversight on my part while using += to set the LDFLAGS.  It should be fixed now in the PKGBUILD.

Offline

#4 2009-10-02 15:31:30

rafaelgp
Member
From: Leicester UK
Registered: 2009-02-16
Posts: 28
Website

Re: [Solved]Lightning for Thunderbird:C compiler cannot create executables

Very impressive!  Thanks for such a fast response.

But I'm afraid it still doesn't work. After compiling for 10 minutes it couldn't finish:

../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o): In function `nsCanvasRenderingContext2D::Destroy()':
nsCanvasRenderingContext2D.cpp:(.text+0x51e2): undefined reference to `XFreePixmap'
../../dist/lib/libgkconcvs_s.a(nsCanvasRenderingContext2D.o): In function `nsCanvasRenderingContext2D::SetDimensions(int, int)':
nsCanvasRenderingContext2D.cpp:(.text+0x56f6): undefined reference to `XRenderFindStandardFormat'
nsCanvasRenderingContext2D.cpp:(.text+0x571e): undefined reference to `XListPixmapFormats'
nsCanvasRenderingContext2D.cpp:(.text+0x575e): undefined reference to `XFree'
nsCanvasRenderingContext2D.cpp:(.text+0x5796): undefined reference to `XCreatePixmap'
collect2: ld returned 1 exit status
make[4]: *** [libgklayout.so] Error 1
make[4]: Leaving directory `/home/rafael/Builds/lightning/src/mozilla/lightning-obj/layout/build'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/home/rafael/Builds/lightning/src/mozilla/lightning-obj/layout'
make[2]: *** [tier_9] Error 2
make[2]: Leaving directory `/home/rafael/Builds/lightning/src/mozilla/lightning-obj'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/rafael/Builds/lightning/src/mozilla/lightning-obj'
make: *** [build] Error 2
==> ERROR: Build Failed.
    Aborting...

Hope this helps.

Offline

#5 2009-10-02 16:03:54

tdy
Member
From: Sacremende
Registered: 2008-12-14
Posts: 440

Re: [Solved]Lightning for Thunderbird:C compiler cannot create executables

rafaelgp wrote:

But I'm afraid it still doesn't work. After compiling for 10 minutes it couldn't finish:

I just tested it, and this problem comes up when you use the --as-needed flag.  I may just overwrite LDFLAGS completely in the PKGBUILD since there's no way of knowing which linker flags the user is using.

Offline

#6 2009-10-02 17:38:54

rafaelgp
Member
From: Leicester UK
Registered: 2009-02-16
Posts: 28
Website

Re: [Solved]Lightning for Thunderbird:C compiler cannot create executables

Well done! It is installed and working!

Arch community and developers are the best!

A donation is on the way!

Offline

#7 2009-10-19 15:58:40

xjparkerx
Member
Registered: 2009-08-20
Posts: 7

Re: [Solved]Lightning for Thunderbird:C compiler cannot create executables

I actually just downloaded this from aur about 2 hours ago and am getting a similar build error as rafaelgp was.

nsFontConfigUtils.cpp:(.text+0x312): undefined reference to `FcPatternAddString'
nsFontConfigUtils.cpp:(.text+0x32c): undefined reference to `FcPatternAddString'
collect2: ld returned 1 exit status
make[5]: *** [libgfxps.so] Error 1
make[5]: Leaving directory `/home/jparker/Downloads/lightning/src/mozilla/lightning-obj/gfx/src/ps'
make[4]: *** [libs] Error 2
make[4]: Leaving directory `/home/jparker/Downloads/lightning/src/mozilla/lightning-obj/gfx/src'
make[3]: *** [libs] Error 2
make[3]: Leaving directory `/home/jparker/Downloads/lightning/src/mozilla/lightning-obj/gfx'
make[2]: *** [tier_9] Error 2
make[2]: Leaving directory `/home/jparker/Downloads/lightning/src/mozilla/lightning-obj'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/jparker/Downloads/lightning/src/mozilla/lightning-obj'
make: *** [build] Error 2

Offline

Board footer

Powered by FluxBB