Package: osgcal
Version: 0.1.46-2.2
Severity: serious
Tags: patch
Justification: no longer builds from source
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu karmic ubuntu-patch

Hello Maintainer,

Currently, osgcal FTBFS on armel:

g++ -g -O2 -g -Wall -O2 -o .libs/osgcal osgcal-osgcal.o osgcal-osgcal_main.o 
osgcal-osgviewer.o  ./.libs/libosgCal.so /usr/lib/libSDL.so -L//lib -losg 
-losgDB -losgFX -losgGA -losgParticle -losgSim -losgText -losgUtil -losgTerrain 
-losgManipulator -losgViewer -losgWidget -losgShadow -losgAnimation -losgVolume 
-lOpenThreads -lutil /usr/lib/libcal3d.so /usr/lib/libxml2.so 
/usr/lib/libglib-2.0.so 
/usr/bin/ld: .libs/osgcal: hidden symbol `__sync_add_and_fetch_4' in 
/usr/lib/gcc/arm-linux-gnueabi/4.3.3/libgcc.a(linux-atomic.o) is referenced by 
DSO
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: ld returned 1 exit status

An explanation for this can be found in 
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=529091

*** /tmp/tmpF4iN7u
In Ubuntu, we've applied the attached patch to achieve the following:

  * Fix FTBFS on armel by adding -lgcc -lgcc_s to LDFLAGS for armel

We thought you might be interested in doing the same. 


-- System Information:
Debian Release: squeeze/sid
  APT prefers karmic
  APT policy: (500, 'karmic'), (500, 'jaunty')
Architecture: i386 (i686)

Kernel: Linux 2.6.31-5-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u osgcal-0.1.46/debian/rules osgcal-0.1.46/debian/rules
--- osgcal-0.1.46/debian/rules
+++ osgcal-0.1.46/debian/rules
@@ -20,6 +20,10 @@
         DEB_CONFIGURE_EXTRA_FLAGS += --without-ccache
 endif
 
+ifeq (armel,$(DEB_BUILD_ARCH))
+	LDFLAGS += -lgcc -lgcc_s
+endif
+
 DEB_MAKE_CLEAN_TARGET = maintainer-clean
 
 build/osgcal-doc::

Reply via email to