[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problems compiling libvista



Hi *,
I'm now packaging the new version of libvista (2.1.7), present at
http://mia.sf.net. After having found all dependencies, still have a
compilation issue. Here it is:

---8<---
 i486-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I.. -lm -lX11 -lXt -lXmu -lXm -MT Colormap.lo -MD -MP -MF .deps/Colormap.Tpo -c Colormap.c >/dev/null 2>&1
/bin/bash ../libtool --mode=link i486-linux-gnu-gcc  -lm -lX11 -lXt -lXmu -lXm  -Wl,-z,defs,--as-needed -o libvx.la -rpath /usr/lib -version-info 1:7:0 -release 2 -export-dynamic VXDialog.lo VXImage.lo VXInit.lo VXInput.lo VXLine.lo VXMenu.lo VXMisc.lo VXOverlays.lo VXText.lo VImageView.lo Colormap.lo  
i486-linux-gnu-gcc -shared  .libs/VXDialog.o .libs/VXImage.o .libs/VXInit.o .libs/VXInput.o .libs/VXLine.o .libs/VXMenu.o .libs/VXMisc.o .libs/VXOverlays.o .libs/VXText.o .libs/VImageView.o .libs/Colormap.o  -lm -lX11 -lXt -lXmu -lXm  -Wl,-z -Wl,defs -Wl,--as-needed -Wl,-soname -Wl,libvx-2.so.1 -o .libs/libvx-2.so.1.0.7
.libs/VXDialog.o: In function `VXPopupMessageBox':
VXDialog.c:(.text+0x170): undefined reference to `VError'
VXDialog.c:(.text+0x187): undefined reference to `VError'
.libs/VXDialog.o: In function `VXPopupTextBox':
VXDialog.c:(.text+0x302): undefined reference to `VError'
VXDialog.c:(.text+0x319): undefined reference to `VError'
...
--->8---

Well, the issue is: these symbols (as well as others not shown here), are part
of libvista itself:

$ objdump -t vista/.libs/libvista-2.so.1.0.7 |grep -e VError -e VWarning -e VFree -e VMalloc
0001f8d3 g     F .text	00000077              VError
0001f94a g     F .text	0000004e              VWarning
0000c0f8 g     F .text	00000040              VMalloc
0000c1ed g     F .text	00000019              VFree
$

This might be a really silly question; but I've never encountered this before.
How should I link libvista during its build? Is there something I'm obviously
missing? Is it fault of that "-Wl,-z,defs,--as-needed"?

Kindly,
David

P.S.: CCing also Thies Jochimsen <thies@jochimsen.de>, as he might be
interested (as he package an earlier version of this library)

-- 
 . ''`.  Debian maintainer | http://wiki.debian.org/DavidPaleino
 : :'  : Linuxer #334216 --|-- http://www.hanskalabs.net/
 `. `'`  GPG: 1392B174 ----|---- http://snipr.com/qa_page
   `-   2BAB C625 4E66 E7B8 450A C3E1 E6AA 9017 1392 B174

Attachment: signature.asc
Description: PGP signature


Reply to: