opencity version 0.0.6.2stable-1 failed to build on amd64 with GCC-4.6/oneiric

Bug #771091 reported by Matthias Klose
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
opencity (Debian)
Fix Released
Unknown
opencity (Ubuntu)
Fix Released
High
Nigel Babu
Oneiric
Fix Released
High
Nigel Babu

Bug Description

opencity version 0.0.6.2stable-1 failed to build on amd64 with GCC-4.6/oneiric
Link to failed build: https://launchpad.net/ubuntu/+archive/test-rebuild-20110413/+buildjob/2463935

Details about the rebuild:
https://lists.ubuntu.com/archives/ubuntu-devel/2011-April/033042.html

Direct link to the build log: https://launchpad.net/ubuntu/+archive/test-rebuild-20110413/+buildjob/2463935/+files/buildlog_ubuntu-natty-amd64.opencity_0.0.6.2stable-1_FAILEDTOBUILD.txt.gz

This log snippet might be of interest, since it triggered the matcher 'Purging chroot-autobuild'.
Excerpt 1293 lines into the build log:

x86_64-linux-gnu-g++ -std=c++98 -I/usr/X11R6/include -DNDEBUG -Wall -Wmissing-braces -Wparentheses -pedantic-errors -I/usr/include/SDL -D_GNU_SOURCE=1 -D_REENTRANT -I/usr/include/libpng12 -L/usr/X11R6/lib -Wl,-Bsymbolic-functions -L/usr/lib -lSDL -lSDL_mixer -L/usr/lib/x86_64-linux-gnu -lpng12 -o opencity audiomanagersdl.o buildinglayer.o city.o conf.o destination.o extensionmanager.o globalvar.o graphicmanager.o gui3dview.o guibar.o guibutton.o guicontainer.o guilabel.o guimain.o layer.o main.o map.o movement.o movementmanager.o renderer.o ui.o pathfinder.o persistence.o property.o propertymanager.o propertymanager2.o texture.o vehicle.o binreloc/libbinreloc.a mapgen/libmapgen.a mas/libmas.a model/libmodel.a networking/libnet.a pngfuncs/libpngfuncs.a simulator/libsim.a structure/libstruct.a tinyxml/libtinyxml.a tinyxpath/libtinyxpath.a triangulation/libtriangulation.a -lSDL_net -lSDL_image -lGLU -lGL
/usr/bin/ld: texture.o: undefined reference to symbol 'SDL_UnlockSurface'
/usr/bin/ld: note: 'SDL_UnlockSurface' is defined in DSO /usr/lib/libSDL.so so try adding it to the linker command line
/usr/lib/libSDL.so: could not read symbols: Invalid operation
collect2: ld returned 1 exit status
make[4]: *** [opencity] Error 1
make[4]: Leaving directory `/build/buildd/opencity-0.0.6.2stable/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/build/buildd/opencity-0.0.6.2stable/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/build/buildd/opencity-0.0.6.2stable'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/build/buildd/opencity-0.0.6.2stable'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20110425-0648
FAILED [dpkg-buildpackage died]
Purging chroot-autobuild/build/buildd/opencity-0.0.6.2stable

Related branches

Matthias Klose (doko)
Changed in opencity (Ubuntu):
importance: Undecided → High
Changed in opencity (Ubuntu):
milestone: none → oneiric-alpha-3
Nigel Babu (nigelbabu)
Changed in opencity (Ubuntu Oneiric):
assignee: nobody → Nigel Babu (nigelbabu)
status: New → In Progress
Revision history for this message
Stefano Rivera (stefanor) wrote :

Nigel: Please close the bug in your changelog entry.
Also one generally uses URLs rather than jsut bug numbers in the DEP3 headers.
And I'm not mad about patches called "fix-ftbfs".

All of the above is pretty nitpicky :)

Revision history for this message
Nigel Babu (nigelbabu) wrote :

Thanks for the comments tumbleweed. I'm definitely rusty after a while of not doing this. Attaching a new debdiff which addresses all of what you noted

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package opencity - 0.0.6.3stable-1ubuntu1

---------------
opencity (0.0.6.3stable-1ubuntu1) oneiric; urgency=low

  * Added debian/patches/01-move-libs-to-LIBS (LP: #771091)
    - Fixes FTBFS from --as-needed linker change
 -- Nigel Babu <email address hidden> Thu, 30 Jun 2011 02:23:34 +0530

Changed in opencity (Ubuntu Oneiric):
status: In Progress → Fix Released
Changed in opencity (Debian):
status: Unknown → New
Changed in opencity (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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