firefox: FTBFS: Not using -fPIC to make shared lib.

Bug #26495 reported by Debian Bug Importer
14
Affects Status Importance Assigned to Milestone
firefox (Debian)
Fix Released
Unknown
firefox (Ubuntu)
Fix Released
High
Ian Jackson

Bug Description

Automatically imported from Debian bug report #341766 http://bugs.debian.org/341766

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Automatically imported from Debian bug report #341766 http://bugs.debian.org/341766

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (3.2 KiB)

Message-ID: <email address hidden>
Date: Fri, 2 Dec 2005 22:08:09 +0100
From: Kurt Roeckx <email address hidden>
To: <email address hidden>
Subject: firefox: FTBFS: Not using -fPIC to make shared lib.

Package: firefox
Version: 1.4.99+1.5rc3.dfsg-2
Severity: serious

Hi,

Your package is failing to build on a few arches because it's not
using -fPIC to make a shared library.

On amd64:
gcc -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pthread -pipe -DNDEBUG -DTRIMMED -pipe -w -O2 -fPIC -shared -Wl,-h -Wl,libmozjs.so -o libmozjs.so jsapi.o jsarena.o jsarray.o jsatom.o jsbool.o jscntxt.o jsdate.o jsdbgapi.o jsdhash.o jsdtoa.o jsemit.o jsexn.o jsfun.o jsgc.o jshash.o jsinterp.o jslock.o jslog2.o jslong.o jsmath.o jsnum.o jsobj.o jsopcode.o jsparse.o jsprf.o jsregexp.o jsscan.o jsscope.o jsscript.o jsstr.o jsutil.o jsxdrapi.o jsxml.o prmjtime.o -lm -ldl -L../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -ldl -lm
/usr/bin/ld: jsapi.o: relocation R_X86_64_PC32 against `memset@@GLIBC_2.2.5' ca
n not be used when making a shared object; recompile with -fPIC

Or hppa:
c++ -fno-rtti -fno-exceptions -Wall -Wconversion -Wpointer-arith -Wcast-align -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wno-long-long -fshort-wchar -pthread -pipe -DNDEBUG -DTRIMMED -pipe -w -O2 -fPIC -shared -Wl,-h -Wl,libunixprintplugin.so -o libunixprintplugin.so npshell.o printplugin.o npunix.o -L../../../../dist/bin -lxpcom -lxpcom_core -L../../../../dist/bin -L../../../../dist/lib -lplds4 -lplc4 -lnspr4 -lpthread -ldl -lXt -lSM -lICE -L/usr/X11R6/lib -lX11 -ldl -lm
/usr/bin/ld: /usr/X11R6/lib/libXt.a(Event.o): relocation R_PARISC_DPREL21L can
not be used when making a shared object; recompile with -fPIC
/usr/X11R6/lib/libXt.a: could not read symbols: Bad value

But in this case I have to wonder why it's picking the
static libXt instead of the shared version.

Note that the 3 objects (npshell.o printplugin.o npunix.o)
all seem to come from .c files, but for some reason it's
linking it with c++?

An other interesting error (on powerpc) is:
gcc -Wall -W -Wno-unused -Wpointer-arith -Wcast-align -Wno-long-long -pthread -pipe -DNDEBUG -DTRIMMED -pipe -w -O2 -o xpt_dump xpt_dump.o -L../../../../dist/bin -L../../../../dist/lib ../../../../dist/lib/libxpt.a -ldl -lm
../../../../dist/lib/libxpt.a(xpt_arena.o): In function `XPT_ArenaStrDup':xpt_arena.c:(.text+0x1f4): undefined reference to `memcpy@@GLIBC_2.0'
../../../../dist/lib/libxpt.a(xpt_struct.o): In function `XPT_InterfaceDescriptorAddTypes':xpt_struct.c:(.text+0x840): undefined reference to `memcpy@@GLIBC_2.0'
../../../../dist/lib/libxpt.a(xpt_struct.o): In function `XPT_InterfaceDescriptorAddMethods':xpt_struct.c:(.text+0x900): undefined reference to `memcpy@@GLIBC_2.0'
../../../../dist/lib/libxpt.a(xpt_struct.o): In function `XPT_InterfaceDescript orAddConsts':xpt_struct.c:(.text+0x9c0): undefined reference to `memcpy@@GLIBC_2.0'
../../../../dist/lib/libxpt.a(xpt_xdr.o): In function `GrowPool':xpt_xdr.c:(.text+0x560): undefined reference to `memcpy@@GLIBC_2.0'
../../../../dist/lib/libxpt.a(xpt_xdr.o):xpt_xdr.c:(.text+0x86c): more undefine
d r...

Read more...

Revision history for this message
In , Mike Hommey (mh-glandium) wrote :

On Fri, Dec 02, 2005 at 10:08:09PM +0100, Kurt Roeckx <email address hidden>
wrote:
> Package: firefox Version: 1.4.99+1.5rc3.dfsg-2 Severity: serious
>
> Hi,
>
> Your package is failing to build on a few arches because it's not
> using -fPIC to make a shared library.

If you look closely at the command line, you'll see the -fPIC. The
problem is more likely to be with the visibility hidden thing.

Mike

Revision history for this message
In , Mike Hommey (mh-glandium) wrote :

On Sat, Dec 03, 2005 at 09:49:32AM +0100, Mike Hommey <email address hidden> wrote:
> On Fri, Dec 02, 2005 at 10:08:09PM +0100, Kurt Roeckx <email address hidden>
> wrote:
> > Package: firefox Version: 1.4.99+1.5rc3.dfsg-2 Severity: serious
> >
> > Hi,
> >
> > Your package is failing to build on a few arches because it's not
> > using -fPIC to make a shared library.
>
> If you look closely at the command line, you'll see the -fPIC. The
> problem is more likely to be with the visibility hidden thing.
>
> Mike

I took a quick look, and I'm sorry to say that, but Eric, you just
fucked up the merge. There are changes that are not applied (especially
the ones in configure.in and configure). And please do something about
all the html files that get modified and put in the .diff.gz for no reason.

Mike

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 3 Dec 2005 09:49:33 +0100
From: Mike Hommey <email address hidden>
To: Kurt Roeckx <email address hidden>, <email address hidden>
Subject: Re: firefox: FTBFS: Not using -fPIC to make shared lib.

On Fri, Dec 02, 2005 at 10:08:09PM +0100, Kurt Roeckx <email address hidden>
wrote:
> Package: firefox Version: 1.4.99+1.5rc3.dfsg-2 Severity: serious
>
> Hi,
>
> Your package is failing to build on a few arches because it's not
> using -fPIC to make a shared library.

If you look closely at the command line, you'll see the -fPIC. The
problem is more likely to be with the visibility hidden thing.

Mike

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 3 Dec 2005 09:54:47 +0100
From: Mike Hommey <email address hidden>
To: Kurt Roeckx <email address hidden>, <email address hidden>
Cc: <email address hidden>
Subject: Re: firefox: FTBFS: Not using -fPIC to make shared lib.

On Sat, Dec 03, 2005 at 09:49:32AM +0100, Mike Hommey <email address hidden> wrote:
> On Fri, Dec 02, 2005 at 10:08:09PM +0100, Kurt Roeckx <email address hidden>
> wrote:
> > Package: firefox Version: 1.4.99+1.5rc3.dfsg-2 Severity: serious
> >
> > Hi,
> >
> > Your package is failing to build on a few arches because it's not
> > using -fPIC to make a shared library.
>
> If you look closely at the command line, you'll see the -fPIC. The
> problem is more likely to be with the visibility hidden thing.
>
> Mike

I took a quick look, and I'm sorry to say that, but Eric, you just
fucked up the merge. There are changes that are not applied (especially
the ones in configure.in and configure). And please do something about
all the html files that get modified and put in the .diff.gz for no reason.

Mike

Revision history for this message
In , Kurt Roeckx (kurt-roeckx) wrote :

On Sat, Dec 03, 2005 at 09:49:33AM +0100, Mike Hommey wrote:
> On Fri, Dec 02, 2005 at 10:08:09PM +0100, Kurt Roeckx <email address hidden>
> >
> > Your package is failing to build on a few arches because it's not
> > using -fPIC to make a shared library.
>
> If you look closely at the command line, you'll see the -fPIC. The
> problem is more likely to be with the visibility hidden thing.

Right, I should have seen that. And I've seen those problems
with visibility hidding before.

There are your bug report #330279 and #331460, but there is also
mine: #324290

Then there are still things like #307207.

And upstream said they weren't going to fix those bugs in 4.0,
since it's not a regression from previous version (that didn't
support visibility attributes).

I would stay away from it until atleast 4.1.

Kurt

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Sat, 3 Dec 2005 13:19:10 +0100
From: Kurt Roeckx <email address hidden>
To: Mike Hommey <email address hidden>
Cc: <email address hidden>
Subject: Re: firefox: FTBFS: Not using -fPIC to make shared lib.

On Sat, Dec 03, 2005 at 09:49:33AM +0100, Mike Hommey wrote:
> On Fri, Dec 02, 2005 at 10:08:09PM +0100, Kurt Roeckx <email address hidden>
> >
> > Your package is failing to build on a few arches because it's not
> > using -fPIC to make a shared library.
>
> If you look closely at the command line, you'll see the -fPIC. The
> problem is more likely to be with the visibility hidden thing.

Right, I should have seen that. And I've seen those problems
with visibility hidding before.

There are your bug report #330279 and #331460, but there is also
mine: #324290

Then there are still things like #307207.

And upstream said they weren't going to fix those bugs in 4.0,
since it's not a regression from previous version (that didn't
support visibility attributes).

I would stay away from it until atleast 4.1.

Kurt

Revision history for this message
In , Eric Dorland (eric-debian) wrote : Re: Bug#343185: firefox: Not available on powerpc.

severity 343185 serious
merge 341766 343185
thanks

* Eugen Dedu (<email address hidden>) wrote:
> Package: firefox
> Severity: important
>
> This package is not available on powerpc.

It's a direct consequence of #341766. I have it fixed, but I'm waiting
for #341918 to be closed before I can upload.

--
Eric Dorland <email address hidden>
ICQ: #61138586, Jabber: <email address hidden>
1024D/16D970C6 097C 4861 9934 27A0 8E1C 2B0A 61E9 8ECF 16D9 70C6

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d- s++: a-- C+++ UL+++ P++ L++ E++ W++ N+ o K- w+
O? M++ V-- PS+ PE Y+ PGP++ t++ 5++ X+ R tv++ b+++ DI+ D+
G e h! r- y+
------END GEEK CODE BLOCK------

Revision history for this message
Debian Bug Importer (debzilla) wrote :

Message-ID: <email address hidden>
Date: Wed, 14 Dec 2005 01:02:22 -0500
From: Eric Dorland <email address hidden>
To: Eugen Dedu <email address hidden>,
 <email address hidden>
Cc: <email address hidden>
Subject: Re: Bug#343185: firefox: Not available on powerpc.

--17pEHd4RhPHOinZp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

severity 343185 serious
merge 341766 343185
thanks

* Eugen Dedu (<email address hidden>) wrote:
> Package: firefox
> Severity: important
>=20
> This package is not available on powerpc.

It's a direct consequence of #341766. I have it fixed, but I'm waiting
for #341918 to be closed before I can upload.

--=20
Eric Dorland <email address hidden>
ICQ: #61138586, Jabber: <email address hidden>
1024D/16D970C6 097C 4861 9934 27A0 8E1C 2B0A 61E9 8ECF 16D9 70C6

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d- s++: a-- C+++ UL+++ P++ L++ E++ W++ N+ o K- w+=20
O? M++ V-- PS+ PE Y+ PGP++ t++ 5++ X+ R tv++ b+++ DI+ D+=20
G e h! r- y+=20
------END GEEK CODE BLOCK------

--17pEHd4RhPHOinZp
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDn7VuYemOzxbZcMYRArfgAJ4mEK618w4i6xLZTobbLNQtBfA9XwCgxetk
pwEv0iQszyKkG5tTvXT59ko=
=d94C
-----END PGP SIGNATURE-----

--17pEHd4RhPHOinZp--

Revision history for this message
Debian Bug Importer (debzilla) wrote :

*** Bug 27063 has been marked as a duplicate of this bug. ***

Revision history for this message
In , Eric Dorland (eric-debian) wrote : Bug#341766: fixed in firefox 1.5.dfsg-1
Download full text (4.8 KiB)

Source: firefox
Source-Version: 1.5.dfsg-1

We believe that the bug you reported is fixed in the latest version of
firefox, which is due to be installed in the Debian FTP archive:

firefox-dom-inspector_1.5.dfsg-1_i386.deb
  to pool/main/f/firefox/firefox-dom-inspector_1.5.dfsg-1_i386.deb
firefox-gnome-support_1.5.dfsg-1_i386.deb
  to pool/main/f/firefox/firefox-gnome-support_1.5.dfsg-1_i386.deb
firefox_1.5.dfsg-1.diff.gz
  to pool/main/f/firefox/firefox_1.5.dfsg-1.diff.gz
firefox_1.5.dfsg-1.dsc
  to pool/main/f/firefox/firefox_1.5.dfsg-1.dsc
firefox_1.5.dfsg-1_i386.deb
  to pool/main/f/firefox/firefox_1.5.dfsg-1_i386.deb
firefox_1.5.dfsg.orig.tar.gz
  to pool/main/f/firefox/firefox_1.5.dfsg.orig.tar.gz
mozilla-firefox_1.5.dfsg-1_i386.deb
  to pool/main/f/firefox/mozilla-firefox_1.5.dfsg-1_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Eric Dorland <email address hidden> (supplier of updated firefox package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 16 Dec 2005 11:37:23 -0500
Source: firefox
Binary: firefox-gnome-support firefox-dom-inspector mozilla-firefox firefox
Architecture: source i386
Version: 1.5.dfsg-1
Distribution: unstable
Urgency: low
Maintainer: Eric Dorland <email address hidden>
Changed-By: Eric Dorland <email address hidden>
Description:
 firefox - lightweight web browser based on Mozilla
 firefox-dom-inspector - tool for inspecting the DOM of pages in Mozilla Firefox
 firefox-gnome-support - Support for Gnome in Mozilla Firefox
 mozilla-firefox - Transition package for firefox rename
Closes: 341113 341682 341766
Changes:
 firefox (1.5.dfsg-1) unstable; urgency=low
 .
   * New upstream release. No actual code changes from RC3. Took the
     opportunity to completely empty the /other-licenses directory of the
     upstream tarball.
   * configure, configure.in: Change MOZ_APP_DISPLAYNAME to Firefox, so we
     can be called Firefox without using
     --enable-official-branding. *grumble*
   * config/autoconf.mk.in, gfx/src/gtk/mozilla-decoder.cpp, configure.in:
     Apply patch from bz#305185 to fix problems building against gtk+ 2.8.
   * debian/control:
     - Build-Depend on libfreetype6-dev since we do link
       against it directly.
     - Add mozilla-firefox package for easy transition.
     - Conflict against older mozilla-firefox packages.
   * debian/firefox-runner:
     - Fix typo. (Closes: #341113)
     - Check /usr/lib/mozilla-firefox/plugins for plugins too for the
       time being. (Closes: #341682)
   * debian/firefox-dom-inspector.preinst: Remove, not needed since the
     name change.
   * debian/firefox.preinst:
     - Remove old upgrade code.
     - Move old mozilla-firefox configs into place on install.
   * debian/mozilla...

Read more...

Revision history for this message
Debian Bug Importer (debzilla) wrote :
Download full text (5.0 KiB)

Message-Id: <email address hidden>
Date: Fri, 16 Dec 2005 14:17:16 -0800
From: Eric Dorland <email address hidden>
To: <email address hidden>
Subject: Bug#341766: fixed in firefox 1.5.dfsg-1

Source: firefox
Source-Version: 1.5.dfsg-1

We believe that the bug you reported is fixed in the latest version of
firefox, which is due to be installed in the Debian FTP archive:

firefox-dom-inspector_1.5.dfsg-1_i386.deb
  to pool/main/f/firefox/firefox-dom-inspector_1.5.dfsg-1_i386.deb
firefox-gnome-support_1.5.dfsg-1_i386.deb
  to pool/main/f/firefox/firefox-gnome-support_1.5.dfsg-1_i386.deb
firefox_1.5.dfsg-1.diff.gz
  to pool/main/f/firefox/firefox_1.5.dfsg-1.diff.gz
firefox_1.5.dfsg-1.dsc
  to pool/main/f/firefox/firefox_1.5.dfsg-1.dsc
firefox_1.5.dfsg-1_i386.deb
  to pool/main/f/firefox/firefox_1.5.dfsg-1_i386.deb
firefox_1.5.dfsg.orig.tar.gz
  to pool/main/f/firefox/firefox_1.5.dfsg.orig.tar.gz
mozilla-firefox_1.5.dfsg-1_i386.deb
  to pool/main/f/firefox/mozilla-firefox_1.5.dfsg-1_i386.deb

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to <email address hidden>,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Eric Dorland <email address hidden> (supplier of updated firefox package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing <email address hidden>)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Format: 1.7
Date: Fri, 16 Dec 2005 11:37:23 -0500
Source: firefox
Binary: firefox-gnome-support firefox-dom-inspector mozilla-firefox firefox
Architecture: source i386
Version: 1.5.dfsg-1
Distribution: unstable
Urgency: low
Maintainer: Eric Dorland <email address hidden>
Changed-By: Eric Dorland <email address hidden>
Description:
 firefox - lightweight web browser based on Mozilla
 firefox-dom-inspector - tool for inspecting the DOM of pages in Mozilla Firefox
 firefox-gnome-support - Support for Gnome in Mozilla Firefox
 mozilla-firefox - Transition package for firefox rename
Closes: 341113 341682 341766
Changes:
 firefox (1.5.dfsg-1) unstable; urgency=low
 .
   * New upstream release. No actual code changes from RC3. Took the
     opportunity to completely empty the /other-licenses directory of the
     upstream tarball.
   * configure, configure.in: Change MOZ_APP_DISPLAYNAME to Firefox, so we
     can be called Firefox without using
     --enable-official-branding. *grumble*
   * config/autoconf.mk.in, gfx/src/gtk/mozilla-decoder.cpp, configure.in:
     Apply patch from bz#305185 to fix problems building against gtk+ 2.8.
   * debian/control:
     - Build-Depend on libfreetype6-dev since we do link
       against it directly.
     - Add mozilla-firefox package for easy transition.
     - Conflict against older mozilla-firefox packages.
   * debian/firefox-runner:
     - Fix typo. (Closes: #341113)
     - Check /usr/lib/mozilla-firefox/plugins for plugins too for the
       time being. (Closes: #341682)
   * debian/firefox-dom-in...

Read more...

Changed in firefox:
status: Unconfirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.