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

2013-05-10 Thread Andreas Tille
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


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



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

2013-05-10 Thread Sebastian Ramacher
Hi Andreas

On 2013-05-10 13:01:39, Andreas Tille wrote:
 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.

You want libxi-dev instead:

% dpkg -L libxi-dev | grep libXi.so
/usr/lib/x86_64-linux-gnu/libXi.so

That's what it is looking for if you add -lXi.

Regards
-- 
Sebastian Ramacher


signature.asc
Description: Digital signature