[Debian-med-packaging] Bug#707426: [Help] Re: Bug#707426: maqview: FTBFS: (.text+0x74): undefined reference to `XISelectEvents'

Andreas Tille andreas at an3as.eu
Fri May 10 11:01:39 UTC 2013


Hi,

I can confirm this problem.

On Thu, May 09, 2013 at 10:08:57AM +0200, Lucas Nussbaum wrote:
> 
> Relevant part:
> > g++  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security  -Wl,-z,relro -L/usr/lib -o maqview read_cache.o view_goto.o view_panel.o gl_gui.o MainFrame.o btree.o maqmap_index.o zrio.o stdhashc.o cns_cache.o const.o adler32.o compress.o crc32.o deflate.o gzio.o inffast.o inflate.o infback.o inftrees.o trees.o uncompr.o zutil.o -Wl,-Bstatic -lglut -Wl,-Bdynamic -lGL -lGLU -lm -lX11 
> > /usr/lib/gcc/x86_64-linux-gnu/4.7/../../../x86_64-linux-gnu/libglut.a(libglut_la-freeglut_xinput.o): In function `fgRegisterDevices':
> > (.text+0x74): undefined reference to `XISelectEvents'
> > collect2: error: ld returned 1 exit status

The missing reference can be found in

  $ strings /usr/lib/x86_64-linux-gnu/libXi.so.6 | grep XISelectEvents
  XISelectEvents

so I added -lXi explicitly as well as added libxi6 to Build-Depends.
However, this ended up in

  /usr/bin/ld: cannot find -lXi

so I suspected that it is not found automatically by ld in the multiarch
dir for whatever reason and thus I also added this explicitly so the
line looks like

g++  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security  -Wl,-z,relro -L/usr/lib/x86_64-linux-gnu -L/usr/lib -o maqview read_cache.o view_goto.o view_p
anel.o gl_gui.o MainFrame.o btree.o maqmap_index.o zrio.o stdhashc.o cns_cache.o const.o adler32.o compress.o crc32.o deflate.o gzio.o inffast.o inflate.o infback.o inftrees.o trees.o
uncompr.o zutil.o -Wl,-Bstatic -lglut -Wl,-Bdynamic -lGL -lGLU -lm -lX11 -lXi
/usr/bin/ld: cannot find -lXi
collect2: error: ld returned 1 exit status


As you see my suspicion to add the multiarch dir has not helped.  Any
other hint?

Kind regards

      Andreas.


-- 
http://fam-tille.de



More information about the Debian-med-packaging mailing list