Package: atom4
Version: 4.1-4
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch


Package failed to build from source
here is the error log:

Install x/libxatom4.a as lib/libxatom4.a
g++ -o atom4 atom4.o interface.o obj/event.o obj/textui.o -Lproglib/lib -Llib 
-L/usr/X11R6/lib -lt++ -lpanel -lncurses -lX11 -lXpm -latom4 -lxatom4
lib/libxatom4.a(xatom4.o): In function `XAtom4::key_press(XKeyEvent)':
xatom4.cc:(.text+0x1b9): undefined reference to `XLookupKeysym'
lib/libxatom4.a(xatom4.o): In function `XAtom4::XAtom4(xconnection*, atom4*, 
int*)':
xatom4.cc:(.text+0x493): undefined reference to `XSelectInput'
xatom4.cc:(.text+0x4a2): undefined reference to `XMapSubwindows'
lib/libxatom4.a(xatom4.o): In function `x11ui::x11ui(char*, atom4*, eventloop*, 
int*)':
xatom4.cc:(.text+0x5b4): undefined reference to `XFlush'
lib/libxatom4.a(xatom4.o): In function 
`XAtom4::gamestate_notifier::notify_clear(atom4*)':
xatom4.cc:(.text+0x66): undefined reference to `XFlush'
lib/libxatom4.a(xatom4.o): In function 
`XAtom4::gamestate_notifier::notify_move(atom4*, int, elist<boardchange>&)':
xatom4.cc:(.text+0x96): undefined reference to `XFlush'
lib/libxatom4.a(xscoreboard.o): In function `xscoreboard::expose(XExposeEvent)':
xscoreboard.cc:(.text+0x4f): undefined reference to `XCopyArea'
lib/libxatom4.a(xscoreboard.o): In function `xscoreboard::~xscoreboard()':
xscoreboard.cc:(.text+0x81): undefined reference to `XFreeGC'
xscoreboard.cc:(.text+0x90): undefined reference to `XFreePixmap'
xscoreboard.cc:(.text+0x9f): undefined reference to `XFreeGC'
xscoreboard.cc:(.text+0xae): undefined reference to `XFreeGC'
xscoreboard.cc:(.text+0xbd): undefined reference to `XFreeFont'
xscoreboard.cc:(.text+0xcc): undefined reference to `XFreeFont'
lib/libxatom4.a(xscoreboard.o): In function 
`xscoreboard::draw_center(XFontStruct*, _XGC*, char*, int)':
xscoreboard.cc:(.text+0x157): undefined reference to `XTextExtents'
xscoreboard.cc:(.text+0x19e): undefined reference to `XDrawString'
lib/libxatom4.a(xscoreboard.o): In function `xscoreboard::render_score(int, 
int)':
xscoreboard.cc:(.text+0x247): undefined reference to `XDrawString'
xscoreboard.cc:(.text+0x2c7): undefined reference to `XDrawString'
xscoreboard.cc:(.text+0x38c): undefined reference to `XDrawString'
lib/libxatom4.a(xscoreboard.o): In function `xscoreboard::refresh()':
xscoreboard.cc:(.text+0x525): undefined reference to `XFillRectangle'
xscoreboard.cc:(.text+0x5dc): undefined reference to `XCopyArea'
lib/libxatom4.a(xscoreboard.o): In function 
`xscoreboard::xscoreboard(xconnection*, xsprite_engine*, xwindow*, atom4*, int, 
int, int, int)':
xscoreboard.cc:(.text+0x6e5): undefined reference to `XCreatePixmap'
xscoreboard.cc:(.text+0x720): undefined reference to `XCreateGC'
xscoreboard.cc:(.text+0x736): undefined reference to `XLoadQueryFont'
xscoreboard.cc:(.text+0x785): undefined reference to `XCreateGC'
xscoreboard.cc:(.text+0x79b): undefined reference to `XLoadQueryFont'
xscoreboard.cc:(.text+0x7ea): undefined reference to `XCreateGC'
xscoreboard.cc:(.text+0x80e): undefined reference to `XSelectInput'
lib/libxatom4.a(xsprite.o): In function 
`xsprite_engine::xsprite_engine(xconnection*, unsigned long, int)':
xsprite.cc:(.text+0x46): undefined reference to `XCreateGC'
xsprite.cc:(.text+0x6b): undefined reference to `XCreateGC'
xsprite.cc:(.text+0x90): undefined reference to `XCreateGC'
lib/libxatom4.a(xsprite.o): In function `xsprite_engine::~xsprite_engine()':
xsprite.cc:(.text+0xce): undefined reference to `XFreeGC'
xsprite.cc:(.text+0xdd): undefined reference to `XFreeGC'
xsprite.cc:(.text+0xec): undefined reference to `XFreeGC'
lib/libxatom4.a(xsprite.o): In function 
`xflatsprite::xflatsprite(xsprite_engine*, char*)':
xsprite.cc:(.text+0x195): undefined reference to `XpmReadFileToImage'
xsprite.cc:(.text+0x221): undefined reference to `XCreatePixmap'
xsprite.cc:(.text+0x274): undefined reference to `XPutImage'
xsprite.cc:(.text+0x34c): undefined reference to `XCreatePixmap'
xsprite.cc:(.text+0x39f): undefined reference to `XPutImage'
lib/libxatom4.a(xsprite.o): In function `xflatsprite::~xflatsprite()':
xsprite.cc:(.text+0x400): undefined reference to `XFreePixmap'
xsprite.cc:(.text+0x40f): undefined reference to `XFreePixmap'
lib/libxatom4.a(xsprite.o): In function `xflatsprite::draw(unsigned long, int, 
int)':
xsprite.cc:(.text+0x484): undefined reference to `XCopyArea'
xsprite.cc:(.text+0x4d2): undefined reference to `XCopyArea'
lib/libxatom4.a(xsprite.o): In function `xsavebuf::xsavebuf(xsprite_engine*, 
unsigned long, int, int)':
xsprite.cc:(.text+0x521): undefined reference to `XCreatePixmap'
lib/libxatom4.a(xsprite.o): In function `xsavebuf::~xsavebuf()':
xsprite.cc:(.text+0x57a): undefined reference to `XFreePixmap'
lib/libxatom4.a(xsprite.o): In function `xsavebuf::save(unsigned long, int, 
int, int, int)':
xsprite.cc:(.text+0x645): undefined reference to `XCopyArea'
lib/libxatom4.a(xsprite.o): In function `xsavebuf::restore()':
xsprite.cc:(.text+0x6ec): undefined reference to `XCopyArea'
lib/libxatom4.a(xtriboard.o): In function `xtriboard::expose(XExposeEvent)':
xtriboard.cc:(.text+0x7d): undefined reference to `XCopyArea'
lib/libxatom4.a(xtriboard.o): In function `xtriboard::refresh()':
xtriboard.cc:(.text+0x132): undefined reference to `XCopyArea'
lib/libxatom4.a(xtriboard.o): In function `xtriboard::~xtriboard()':
xtriboard.cc:(.text+0x27d): undefined reference to `XFreePixmap'
lib/libxatom4.a(xtriboard.o): In function `xtriboard::xtriboard(xconnection*, 
xsprite_engine*, xwindow*, atom4*, int, int)':
xtriboard.cc:(.text+0x5b1): undefined reference to `XCreatePixmap'
xtriboard.cc:(.text+0x6f2): undefined reference to `XSelectInput'
xtriboard.cc:(.text+0x7db): undefined reference to `XFreePixmap'
lib/libxatom4.a(xutil.o): In function `xwindow::~xwindow()':
xutil.cc:(.text+0x1ef): undefined reference to `XDestroyWindow'
lib/libxatom4.a(xutil.o): In function `xconnection::process_pending_event()':
xutil.cc:(.text+0x2f1): undefined reference to `XNextEvent'
lib/libxatom4.a(xutil.o): In function 
`xconnection::eventcallback::read_ready(eventloop*, int)':
xutil.cc:(.text+0x354): undefined reference to `XFlush'
xutil.cc:(.text+0x361): undefined reference to `XPending'
lib/libxatom4.a(xutil.o): In function `xconnection::xconnection(char*, 
eventloop*)':
xutil.cc:(.text+0x3b1): undefined reference to `XOpenDisplay'
xutil.cc:(.text+0x3c2): undefined reference to `XDefaultScreen'
lib/libxatom4.a(xutil.o): In function `xconnection::~xconnection()':
xutil.cc:(.text+0x4bc): undefined reference to `XCloseDisplay'
lib/libxatom4.a(xutil.o): In function `xwindow::update_attrs()':
xutil.cc:(.text+0x604): undefined reference to `XGetWindowAttributes'
lib/libxatom4.a(xutil.o): In function `xwindow::xwindow(xconnection*, xwindow*, 
unsigned int, unsigned int, unsigned int, unsigned int, unsigned int, unsigned 
long, unsigned long)':
xutil.cc:(.text+0x705): undefined reference to `XCreateSimpleWindow'
lib/libxatom4.a(xutil.o): In function `appwindow::appwindow(xconnection*, 
char*, char*, int, int, char*, char*)':
xutil.cc:(.text+0x7f5): undefined reference to `XAllocWMHints'
xutil.cc:(.text+0x81c): undefined reference to `XAllocClassHint'
xutil.cc:(.text+0x83a): undefined reference to `XAllocSizeHints'
xutil.cc:(.text+0x876): undefined reference to `XStringListToTextProperty'
xutil.cc:(.text+0x8ce): undefined reference to `XStringListToTextProperty'
xutil.cc:(.text+0x915): undefined reference to `XSetWMProperties'
xutil.cc:(.text+0x91d): undefined reference to `XFree'
xutil.cc:(.text+0x928): undefined reference to `XFree'
xutil.cc:(.text+0x930): undefined reference to `XFree'
xutil.cc:(.text+0x93b): undefined reference to `XFree'
xutil.cc:(.text+0x946): undefined reference to `XFree'
xutil.cc:(.text+0x958): undefined reference to `XMapWindow'
lib/libxatom4.a(xutil.o): In function `tiled_bckgnd::tiled_bckgnd(xconnection*, 
unsigned long, char*)':
xutil.cc:(.text+0xaf6): undefined reference to `XpmReadFileToPixmap'
xutil.cc:(.text+0xb5f): undefined reference to `XCreateGC'
lib/libxatom4.a(xutil.o): In function `tiled_bckgnd::~tiled_bckgnd()':
xutil.cc:(.text+0xbae): undefined reference to `XFreePixmap'
xutil.cc:(.text+0xbbd): undefined reference to `XFreeGC'
lib/libxatom4.a(xutil.o): In function `tiled_bckgnd::paint(int, int, int, int)':
xutil.cc:(.text+0xc0b): undefined reference to `XFillRectangle'
collect2: ld returned 1 exit status
cons: *** [atom4] Error 1
cons: errors constructing atom4
make: *** [install] Error 2
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2
debuild: fatal error at line 1335:
dpkg-buildpackage -rfakeroot -D -us -uc -b failed

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

## Patch changes the order of few libraries in order to fix FTBFS due to 
binutils-gold

  * atom4-4.1/Construct: changed order of libraries to fix FTBFS (LP: #727253) 

We thought you might be interested in doing the same. 


-- System Information:
Debian Release: squeeze/sid
  APT prefers maverick-updates
  APT policy: (500, 'maverick-updates'), (500, 'maverick-security'), (500, 
'maverick-backports'), (500, 'maverick')
Architecture: i386 (i686)

Kernel: Linux 2.6.35-25-generic (SMP w/4 CPU cores)
Locale: LANG=en_IN, LC_CTYPE=en_IN (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -u atom4-4.1/debian/changelog atom4-4.1/debian/changelog
diff -u atom4-4.1/debian/control atom4-4.1/debian/control
--- atom4-4.1/debian/control
+++ atom4-4.1/debian/control
@@ -1,7 +1,8 @@
 Source: atom4
 Section: games
 Priority: optional
-Maintainer: Hwei Sheng Teoh <hst...@debian.org>
+Maintainer: Ubuntu Developers <ubuntu-devel-disc...@lists.ubuntu.com>
+XSBC-Original-Maintainer: Hwei Sheng Teoh <hst...@debian.org>
 Build-Depends: debhelper (>> 4.0.0), cons (>= 2.2.0-2), libx11-dev, libxpm-dev, libxext-dev, libncurses5-dev
 Standards-Version: 3.6.2.1
 
only in patch2:
unchanged:
--- atom4-4.1.orig/Construct
+++ atom4-4.1/Construct
@@ -88,7 +88,7 @@
 # Local configuration
 $INCPATH  = "$INCDIR:$PROGLIBPATH/include";
 $LIBPATH  = "$PROGLIBPATH/lib:$LIBDIR:$X11LIBPATH";
-$LIBS     = "$PROGLIB $NCURSESLIB $X11LIB -latom4 -lxatom4";
+$LIBS     = "-latom4 -lxatom4 $PROGLIB $NCURSESLIB $X11LIB";
 $LIBS    .= " -pg" if $PROFILE;
 
 $CONS = new cons(

Reply via email to