<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
I am trying to compile libvirt on OpenIndiana.<br>
There is some good progress here.<br>
<br>
However, I found a strange thing which may be Illumos or Solaris -
specific.<br>
Perhaps someone could comment?<br>
<br>
<a class="moz-txt-link-abbreviated" href="mailto:root@zone1:~/libvirt-1.3.4/src#">root@zone1:~/libvirt-1.3.4/src#</a> gcc -std=gnu99 -shared -fPIC -DPIC
-Wl,-z -Wl,text -Wl,-h -Wl,libvirt-qemu.so.0 -o
.libs/libvirt-qemu.so.0.1003.4
.libs/libvirt_qemu_la-libvirt-qemu.o
-R/export/home/rtvd/libvirt-1.3.4/src/.libs -R/usr/local/lib
./.libs/libvirt.so -lthread -lxml2 -lavahi-common -lavahi-client
-ldbus-1 -lgnutls -lssh2 -lcurl -lsocket -lnsl -lintl -g -O2 -Wl,-M
-Wl,./libvirt_qemu.syms -Wl,-z -Wl,now<br>
Undefined first referenced<br>
symbol in file<br>
<b>_fini</b> /usr/lib/crti.o (symbol
has no version assigned)<br>
<b>_init</b> /usr/lib/crti.o (symbol
has no version assigned)<br>
<b>_lib_version</b> /usr/lib/values-Xa.o
(symbol has no version assigned)<br>
ld: fatal: symbol referencing errors. No output written to
.libs/libvirt-qemu.so.0.1003.4<br>
collect2: error: ld returned 1 exit status<br>
<br>
The linking command looks OKish to me. The only thing I managed to
find about _fini and _init is that they are related to
initialisation and shutting down of shared libraries. Also,
-nostdlib option seems to "fix" the problem but I am not sure if it
is what really should be done. And I have never seen this on Linux.<br>
<br>
With kind regards,<br>
Denys Rtveliashvili<br>
</body>
</html>