On 19/05/14 23:36, Stephen Kitt wrote:
Hi Eugen,
On Mon, 19 May 2014 19:28:53 +0200, Eugen Dedu
<eugen.d...@pu-pm.univ-fcomte.fr> wrote:
Thank you for maintaining mingw-w64 for debian!
It's always a pleasure!
I try to compile ekiga using mingw-w64 and the problem is that it
generates only a .a, not a .dll. The reason is that libtool gives
errors like this:
[...]
The problem is with the ones recognised as archive static. The
following files have this problem in my case:
libdxerr9.a, libdxguid.a, libstrmiids.a, libuuid.a.
Do you know why the above files have this problem? Feel free to ask me
more information if needed.
The archive static files are object archives, built from C files compiled
to object files and archived. The archive import files are stubs for DLLs,
build from definition files. For example, dsound which you mention is built
from mingw-w64-crt/lib32/dsound.def in the mingw-w64 source; whereas uuid is
built from a bunch of C source files (see mingw-w64-crt/Makefile.am for
details; look for "src_libuuid").
What exactly are you trying to do? I know that it is possible to link both
static and import archives into a DLL, wine-gecko does that with libuuid
amongst others; looking through my build logs I see
i686-w64-mingw32-g++ -mwindows -shared -Wl,--out-implib -Wl,libmozglue.dll.a -o
mozglue.dll dummy.o ./module.res -lpthread -static-libgcc -static-libstdc++
-Wl,--enable-stdcall-fixup -Wl,--large-address-aware mozglue.def
../../mfbt/libmfbt.a
/tmp/buildd/wine-gecko-2.21-2.21+dfsg1/wine_gecko-2.21-x86/modules/zlib/src/libmozz.a
-luuid -lgdi32 -lwinmm -lwsock32 -luserenv -lsecur32 -lnetapi32
Hum, here is the output:
/bin/bash ../libtool --tag=CXX --mode=link i686-w64-mingw32-g++
-mms-bitfields -g -O2 -I/home/ededu/softs/ekiga/windows-svn-v14/include
-march=pentium-mmx -Wall -Wextra -Wswitch-default -Wfloat-equal -Wshadow
-Wl,--enable-auto-import -shared -module -no-undefined -avoid-version
-L/home/ededu/softs/ekiga/windows-svn-v14/lib -lgmodule-2.0
-lgthread-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl
-L/home/ededu/softs/ekiga/windows-svn-v14/lib -lxml2
-L/home/ededu/softs/ekiga/windows-svn-v14/lib
-L/srv/win32builder/fixed_364/build/win32/lib
-L/home/ededu/softs/ekiga/windows-svn-v14/lib -lgtk-3 -lgdk-3 -lgdi32
-limm32 -lshell32 -lole32 -Wl,-luuid -lpangocairo-1.0 -lpangoft2-1.0
-lfreetype -lfontconfig -lpangowin32-1.0 -lgdi32 -lpango-1.0 -lm
-latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0
-lgobject-2.0 -lglib-2.0 -lintl
-L/home/ededu/softs/ekiga/windows-svn-v14/lib -lpt -ldsound -ldxerr9
-ldxguid -lstrmiids -lole32 -luuid -loleaut32 -lquartz -lexpat -lregex
-lwinmm -lwsock32 -lws2_32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32
-liphlpapi -lole32 -lquartz
-L/home/ededu/softs/ekiga/windows-svn-v14/lib -lopal -lspeexdsp -lwinmm
-lwsock32 -lws2_32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32
-liphlpapi -lole32 -lquartz -lpt -ldsound -ldxerr9 -ldxguid -lstrmiids
-lole32 -luuid -loleaut32 -lquartz -lexpat -lregex -lwinmm -lwsock32
-lws2_32 -lsnmpapi -lmpr -lcomdlg32 -lgdi32 -lavicap32 -liphlpapi
-lole32 -lquartz -L/home/ededu/softs/ekiga/windows-svn-v14/lib
-L/srv/win32builder/fixed_364/build/win32/lib
-L/home/ededu/softs/ekiga/windows-svn-v14/lib -lclutter-1.0 -latk-1.0
-lcogl-pango -lcogl -lgmodule-2.0 -ljson-glib-1.0 -lgio-2.0 -lgdk-3
-lgdi32 -limm32 -lshell32 -lole32 -Wl,-luuid -lpangocairo-1.0
-lpangoft2-1.0 -lfreetype -lfontconfig -lpangowin32-1.0 -lgdi32
-lpango-1.0 -lm -lgdk_pixbuf-2.0 -lcairo-gobject -lcairo -lgobject-2.0
-lglib-2.0 -lintl -L/home/ededu/softs/ekiga/windows-svn-v14/lib
-L/srv/win32builder/fixed_364/build/win32/lib
-L/home/ededu/softs/ekiga/windows-svn-v14/lib -lclutter-gtk-1.0
-lclutter-1.0 -lcogl-pango -lcogl -lgmodule-2.0 -ljson-glib-1.0 -lgtk-3
-lgdk-3 -lgdi32 -limm32 -lshell32 -lole32 -Wl,-luuid -lpangocairo-1.0
-lpangoft2-1.0 -lfreetype -lfontconfig -lpangowin32-1.0 -lgdi32
-lpango-1.0 -lm -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0
-lgio-2.0 -lgobject-2.0 -lglib-2.0 -lintl
-L/home/ededu/softs/ekiga/windows-svn-v14/lib
-L/srv/win32builder/fixed_364/build/win32/lib
-L/home/ededu/softs/ekiga/windows-svn-v14/lib -lclutter-gst-2.0
-lclutter-1.0 -latk-1.0 -lcogl-pango -lcogl -lgmodule-2.0
-ljson-glib-1.0 -lgio-2.0 -lgdk-3 -lgdi32 -limm32 -lshell32 -lole32
-Wl,-luuid -lpangocairo-1.0 -lpangoft2-1.0 -lfreetype -lfontconfig
-lpangowin32-1.0 -lgdi32 -lpango-1.0 -lm -lgdk_pixbuf-2.0
-lcairo-gobject -lcairo -lgstapp-1.0 -lgstbase-1.0 -lgstreamer-1.0
-lgobject-2.0 -lglib-2.0 -lintl
-L/home/ededu/softs/ekiga/windows-svn-v14/lib -Wl,-subsystem,console -o
libekiga.la -rpath /home/ededu/softs/ekiga/windows-svn-v14/dist/Ekiga
platform/platform.lo settings/settings-mappings.lo gui/gmvideowidget.lo
gui/dialpad.lo gui/gm-smileys.lo gui/gmwindow.lo gui/gmcallbacks.lo
gui/gmentrydialog.lo gui/gmmenuaddon.lo gui/gmstatusbar.lo
gui/gmstockicons.lo gui/gmpowermeter.lo gui/gmcellrendererexpander.lo
gui/gm-cell-renderer-bitext.lo
gui/gm-text-buffer-enhancer-helper-interface.lo
gui/gm-text-anchored-tag.lo gui/gm-text-smiley.lo gui/gm-text-extlink.lo
gui/gm-text-buffer-enhancer.lo gui/gm-smiley-chooser-button.lo
engine/engine.lo engine/framework/boost-exceptions.lo
engine/framework/form.lo engine/framework/robust-xml.lo
engine/framework/menu-builder.lo engine/framework/menu-builder-tools.lo
engine/framework/form-builder.lo engine/framework/form-dumper.lo
engine/framework/form-request-simple.lo engine/framework/runtime-glib.lo
engine/framework/services.lo engine/framework/menu-xml.lo
engine/framework/kickstart.lo engine/plugin/plugin-core.lo
engine/account/account-core.lo engine/addressbook/contact-core.lo
engine/chat/chat-core.lo engine/friend-or-foe/friend-or-foe.lo
engine/notification/notification-dummy.lo
engine/presence/proxy-presentity.lo engine/presence/uri-presentity.lo
engine/presence/presence-core.lo engine/protocol/call-manager.lo
engine/protocol/call-core.lo engine/protocol/codec-description.lo
engine/videooutput/videooutput-core.lo
engine/videoinput/videoinput-core.lo
engine/audiooutput/audiooutput-scheduler.lo
engine/audiooutput/audiooutput-core.lo
engine/audioinput/audioinput-core.lo engine/hal/hal-core.lo
engine/gui/gtk-core/menu-builder-gtk.lo
engine/gui/gtk-core/form-dialog-gtk.lo
engine/gui/gtk-core/optional-buttons-gtk.lo
engine/gui/gtk-core/codecsbox.lo engine/gui/gtk-core/gtk-core.lo
engine/gui/gtk-core/gtk-core-main.lo
engine/gui/gtk-frontend/addressbook-window.lo
engine/gui/gtk-frontend/accounts-window.lo
engine/gui/gtk-frontend/assistant-window.lo
engine/gui/gtk-frontend/main_window.lo
engine/gui/gtk-frontend/book-view-gtk.lo
engine/gui/gtk-frontend/call-window.lo
engine/gui/gtk-frontend/roster-view-gtk.lo
engine/gui/gtk-frontend/call-history-view-gtk.lo
engine/gui/gtk-frontend/default_devices.lo
engine/gui/gtk-frontend/presentity-view.lo
engine/gui/gtk-frontend/heap-view.lo
engine/gui/gtk-frontend/chat-area.lo
engine/gui/gtk-frontend/conversation-page.lo
engine/gui/gtk-frontend/preferences-window.lo
engine/gui/gtk-frontend/statusicon.lo
engine/gui/gtk-frontend/statusmenu.lo
engine/gui/gtk-frontend/chat-window.lo
engine/gui/gtk-frontend/gtk-frontend.lo engine/components/ptlib/utils.lo
engine/components/ptlib/audioinput-manager-ptlib.lo
engine/components/ptlib/audioinput-main-ptlib.lo
engine/components/ptlib/videoinput-manager-ptlib.lo
engine/components/ptlib/videoinput-main-ptlib.lo
engine/components/ptlib/audiooutput-manager-ptlib.lo
engine/components/ptlib/audiooutput-main-ptlib.lo
engine/components/opal/opal-call-manager.lo
engine/components/opal/pcss-endpoint.lo
engine/components/opal/opal-account.lo
engine/components/opal/opal-bank.lo engine/components/opal/opal-call.lo
engine/components/opal/opal-codec-description.lo
engine/components/opal/opal-main.lo engine/components/opal/opal-audio.lo
engine/components/opal/opal-videoinput.lo
engine/components/opal/opal-videooutput.lo
engine/components/opal/opal-plugins-hook.lo
engine/components/opal/opal-presentity.lo
engine/components/opal/h323-endpoint.lo
engine/components/opal/sip-heap.lo
engine/components/opal/sip-conversation.lo
engine/components/opal/sip-dialect.lo
engine/components/opal/sip-endpoint.lo
engine/components/call-history/history-contact.lo
engine/components/call-history/history-book.lo
engine/components/call-history/history-source.lo
engine/components/call-history/history-main.lo
engine/components/gmconf-personal-details/gmconf-personal-details.lo
engine/components/local-roster/local-presentity.lo
engine/components/local-roster/local-heap.lo
engine/components/local-roster/local-cluster.lo
engine/components/local-roster/local-roster-main.lo
engine/components/local-roster/local-roster-bridge.lo
engine/components/mlogo-videoinput/videoinput-manager-mlogo.lo
engine/components/mlogo-videoinput/videoinput-main-mlogo.lo
engine/components/null-audioinput/audioinput-manager-null.lo
engine/components/null-audioinput/audioinput-main-null.lo
engine/components/null-audiooutput/audiooutput-manager-null.lo
engine/components/null-audiooutput/audiooutput-main-null.lo
engine/components/clutter-gst-videooutput/videooutput-manager-clutter-gst.lo
engine/components/clutter-gst-videooutput/videooutput-main-clutter-gst.lo
*** Warning: linker path does not have real file for library -ldxerr9.
*** 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 libdxerr9 and none of the candidates passed a file format test
*** using a file magic. Last file checked:
/usr/i686-w64-mingw32/lib/libdxerr9.a
*** Warning: linker path does not have real file for library -ldxguid.
*** 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 libdxguid and none of the candidates passed a file format test
*** using a file magic. Last file checked:
/usr/i686-w64-mingw32/lib/libdxguid.a
*** Warning: linker path does not have real file for library -lstrmiids.
*** 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 libstrmiids and none of the candidates passed a file format test
*** using a file magic. Last file checked:
/usr/i686-w64-mingw32/lib/libstrmiids.a
*** Warning: linker path does not have real file for library -luuid.
*** 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 libuuid and none of the candidates passed a file format test
*** using a file magic. Last file checked:
/usr/i686-w64-mingw32/lib/libuuid.a
*** Warning: linker path does not have real file for library -lregex.
*** 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 libregex and none of the candidates passed a file format test
*** using a file magic. Last file checked:
/home/ededu/softs/ekiga/windows-svn-v14/lib/libregex.a
*** Warning: libtool could not satisfy all declared inter-library
*** dependencies of module libekiga. Therefore, libtool will create
*** a static module, that should work as long as the dlopening
*** application is linked with the -dlopen flag.
Is it normal to have these messages?
--
Eugen
--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org