-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I believe this is a known problem with libtool. The problem is that it uses the command "file" to determine if a file is actually a DLL. Unfortunately, for some reason mingw doesn't come with "file", so libtool gets confused. The way I worked around this is to install cygwin, and then set the $PATH to have the cygwin bin directory after the mingw bin directory.

Let me know how that works. Also, make sure you are using gcc 3.4 on mingw.

On Sat, 1 Oct 2005, Jason Moyers wrote:

I am trying to build VOS with MinGW/Msys, I get the following errors while
linking:
g++ -DHAVE_CONFIG_H -I. -I. -I../../../libs/vos -I../../../libs
-I../../../libs -DVIP_EXPORTS -I/home/Administrator/src/vos-
win32-mingw-libs-0.22//include -D_M T -mthreads
-I/home/Administrator/src/vos-win32-mingw-libs-0.22//include -I/home
/Administrator/src/vos-win32-mingw-libs-0.22//include -D_REENTRANT -g -O2
-D_REE NTRANT -D_PTHREADS -D_MT -mthreads -g -Wall -MT stdprotocol.lo -MD
-MP -MF .deps /stdprotocol.Tpo -c stdprotocol.cc -DDLL_EXPORT -DPIC -o
.libs/stdprotocol.o
/bin/sh ../../../libtool --mode=link g++ -g -O2 -D_REENTRANT -D_PTHREADS
-D_MT -mthreads -g -Wall
-L/home/Administrator/src/vos-win32-mingw-libs-0.22//lib
-mt hreads -L/home/Administrator/src/vos-win32-mingw-libs-0.22//lib -o
libvip.la <http://libvip.la> -rp ath /usr/local/lib
-L../../../libs/vos/vutil -no-undefined -version-info 0:0:0 s ocketthread.lo
lowlatencyproto.lo connection.lo socketmultiplexer.lo stdprotocol .lo
-lvutil -L/home/Administrator/src/vos-win32-mingw-libs-0.22//lib -lboost_thr
ead -lws2_32

*** Warning: This system can not link to static lib archive
/home/Administrator/ src/vos-0.22.1/libs/vos/vutil/libvutil.la.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: linker path does not have real file for library -lboost_thread.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libboost_thread and none of the candidates passed a file format
test
*** using a file magic. Last file checked:
/home/Administrator/src/vos-win32-min gw-libs-0.22
//lib/libboost_thread.dll.a

*** Warning: linker path does not have real file for library -lws2_32.
*** I have the capability to make that library automatically link in when
*** you link to this library. But I can only do this if you have a
*** shared version of the library, which you do not appear to have
*** because I did check the linker path looking for a file starting
*** with libws2_32 and none of the candidates passed a file format test
*** using a file magic. Last file checked:
/mingw/lib/gcc-lib/mingw32/3.2.3/../. ./..//libws2_32.a
*** The inter-library dependencies that have been dropped here will be
*** automatically added whenever a program is linked with this library
*** or is declared to -dlopen it.

*** Since this library must not contain undefined symbols,
*** because either the platform does not support them or
*** it was explicitly requested with -no-undefined,
*** libtool will only create a static version of it.
ar cru .libs/libvip.a .libs/socketthread.o .libs/lowlatencyproto.o
.libs/connect ion.o .libs/socketmultiplexer.o .libs/stdprotocol.o
ranlib .libs/libvip.a
creating libvip.la <http://libvip.la>
(cd .libs && rm -f libvip.la <http://libvip.la> && ln -s ../libvip.la
libvip.la <http://libvip.la>)
for lib in .libs/libvip.so* .libs/libvip.*dylib .libs/libvip*.dll.a ; do \
if test -f $lib ; then \
rm -f basename ../../../inplace/lib/`basename $lib` ; \
CDIR=`pwd` ; \
cd ../../../inplace/lib ; \
ln -s ../../libs/vos/vip/$lib . ; \
cd $CDIR ; \
fi ; \
done
for lib in .libs/libvip*.dll .libs/libvip*.exe ; do \
if test -f $lib ; then \
rm -f basename ../../../inplace/bin/`basename $lib` ; \
CDIR=`pwd` ; \
cd ../../../inplace/bin ; \
ln -s ../../libs/vos/vip/$lib . ; \
cd $CDIR ; \
fi ; \
done
make[4]: Leaving directory `/home/Administrator/src/vos-0.22.1/libs/vos/vip'

I have installed MinGW, Msys, Msys-DTK. Not sure what is going on... any
help would be appericated.
Jason


[   Peter Amstutz   ][ [EMAIL PROTECTED] ][ [EMAIL PROTECTED]  ]
[Lead Programmer][Interreality Project][Virtual Reality for the Internet]
[ VOS: Next Generation Internet Communication][ http://interreality.org ]
[ http://interreality.org/~tetron ][ pgpkey:  pgpkeys.mit.edu  18C21DF7 ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDQA8iaeHUyhjCHfcRAhZ/AJ9eBucHxCfyLWJHQT9ZwN8bcu4LPwCcDGFS
olrfou4mc9OX+p3Z9WQwKI8=
=C5KZ
-----END PGP SIGNATURE-----


_______________________________________________
vos-d mailing list
vos-d@interreality.org
http://www.interreality.org/cgi-bin/mailman/listinfo/vos-d

Reply via email to