You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There are missing glib references when linking in win32 mode.
I had to install gcc-multilib to be able to compile, otherwise bits/predefs.h is missing.
I am cross-compiling from debian wheezy with gcc-mingw32. Any ideas?
libtoolize: putting auxiliary files in AC_CONFIG_AUX_DIR, `config'.
libtoolize: copying file `config/ltmain.sh'
libtoolize: Consider adding `AC_CONFIG_MACRO_DIR([m4])' to configure.ac and
libtoolize: rerunning libtoolize, to keep the correct libtool macros in-tree.
libtoolize: Consider adding `-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
�[91mconfigure.ac:12: installing `config/ar-lib'
�[0m�[91mconfigure.ac:16: installing `config/config.guess'
�[0m�[91mconfigure.ac:16: installing `config/config.sub'
�[0m�[91mconfigure.ac:9: installing `config/install-sh'
�[0m�[91mconfigure.ac:9: installing `config/missing'
�[0m�[91msrc/Makefile.am: installing `config/depcomp'
�[0mchecking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for i586-mingw32msvc-strip... i586-mingw32msvc-strip
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for i586-mingw32msvc-gcc... i586-mingw32msvc-gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.exe
checking for suffix of executables... .exe
checking whether we are cross compiling... yes
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether i586-mingw32msvc-gcc accepts -g... yes
checking for i586-mingw32msvc-gcc option to accept ISO C89... none needed
checking dependency style of i586-mingw32msvc-gcc... gcc3
checking for i586-mingw32msvc-ar... i586-mingw32msvc-ar
checking the archiver (i586-mingw32msvc-ar) interface... ar
checking build system type... x86_64-unknown-linux-gnu
checking host system type... i586-pc-mingw32msvc
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by i586-mingw32msvc-gcc... /usr/bin/i686-w64-mingw32-ld
checking if the linker (/usr/bin/i686-w64-mingw32-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/i586-mingw32msvc-nm -B
checking the name lister (/usr/bin/i586-mingw32msvc-nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking whether the shell understands some XSI constructs... yes
checking whether the shell understands "+="... yes
checking how to convert x86_64-unknown-linux-gnu file names to i586-pc-mingw32msvc format... func_convert_file_nix_to_w32
checking how to convert x86_64-unknown-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/i686-w64-mingw32-ld option to reload object files... -r
checking for i586-mingw32msvc-objdump... i586-mingw32msvc-objdump
checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL
checking for i586-mingw32msvc-dlltool... i586-mingw32msvc-dlltool
checking how to associate runtime and link libraries... func_cygming_dll_for_implib
checking for i586-mingw32msvc-ar... (cached) i586-mingw32msvc-ar
checking for archiver @FILE support... @
checking for i586-mingw32msvc-strip... (cached) i586-mingw32msvc-strip
checking for i586-mingw32msvc-ranlib... i586-mingw32msvc-ranlib
checking command to parse /usr/bin/i586-mingw32msvc-nm -B output from i586-mingw32msvc-gcc object... ok
checking for sysroot... no
checking for i586-mingw32msvc-mt... no
checking for mt... no
checking if : is a manifest tool... no
checking how to run the C preprocessor... i586-mingw32msvc-gcc -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for dlfcn.h... no
checking for objdir... .libs
checking if i586-mingw32msvc-gcc supports -fno-rtti -fno-exceptions... no
checking for i586-mingw32msvc-gcc option to produce PIC... -DDLL_EXPORT -DPIC
checking if i586-mingw32msvc-gcc PIC flag -DDLL_EXPORT -DPIC works... yes
checking if i586-mingw32msvc-gcc static flag -static works... yes
checking if i586-mingw32msvc-gcc supports -c -o file.o... yes
checking if i586-mingw32msvc-gcc supports -c -o file.o... (cached) yes
checking whether the i586-mingw32msvc-gcc linker (/usr/bin/i686-w64-mingw32-ld) supports shared libraries... yes
checking whether -lc should be explicitly linked in... yes
checking dynamic linker characteristics... Win32 ld.exe
checking how to hardcode library paths into programs... immediate
checking whether stripping libraries is possible... yes
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... yes
checking whether to build static libraries... no
checking for i586-mingw32msvc-gcc... (cached) i586-mingw32msvc-gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether i586-mingw32msvc-gcc accepts -g... (cached) yes
checking for i586-mingw32msvc-gcc option to accept ISO C89... (cached) none needed
checking dependency style of i586-mingw32msvc-gcc... (cached) gcc3
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... 64
checking for i586-mingw32msvc-pkg-config... no
checking for pkg-config... /usr/bin/pkg-config
�[91mconfigure: WARNING: using cross tools not prefixed with host triplet
�[0mchecking pkg-config is at least version 0.9.0... yes
checking for PURPLE... yes
checking for gpgme-config... /usr/bin/gpgme-config
checking for GPGME - version >= 1.2.0... yes
checking locale.h usability... yes
checking locale.h presence... yes
checking for locale.h... yes
checking for string.h... (cached) yes
checking for setlocale... yes
checking for strdup... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating config.h
config.status: executing depfiles commands
config.status: executing libtool commands
Making clean in src
make[1]: Entering directory `/root/Pidgin-GPG/src'
rm -rf .libs _libs
test -z "pidgin_gpg.la" || rm -f pidgin_gpg.la
rm -f "./so_locations"
rm -f *.o
rm -f *.lo
make[1]: Leaving directory `/root/Pidgin-GPG/src'
Making clean in .
make[1]: Entering directory `/root/Pidgin-GPG'
rm -rf .libs _libs
rm -f *.lo
make[1]: Leaving directory `/root/Pidgin-GPG'
make all-recursive
make[1]: Entering directory `/root/Pidgin-GPG'
Making all in src
make[2]: Entering directory `/root/Pidgin-GPG/src'
/bin/bash ../libtool --tag=CC --mode=compile i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libpurple -I/usr/include -g -O2 -MT pidgin_gpg_la-pidgin-gpg.lo -MD -MP -MF .deps/pidgin_gpg_la-pidgin-gpg.Tpo -c -o pidgin_gpg_la-pidgin-gpg.lo `test -f 'pidgin-gpg.c' || echo './'`pidgin-gpg.c
libtool: compile: i586-mingw32msvc-gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libpurple -I/usr/include -g -O2 -MT pidgin_gpg_la-pidgin-gpg.lo -MD -MP -MF .deps/pidgin_gpg_la-pidgin-gpg.Tpo -c pidgin-gpg.c -DDLL_EXPORT -DPIC -o .libs/pidgin_gpg_la-pidgin-gpg.o
mv -f .deps/pidgin_gpg_la-pidgin-gpg.Tpo .deps/pidgin_gpg_la-pidgin-gpg.Plo
/bin/bash ../libtool --tag=CC --mode=link i586-mingw32msvc-gcc -I/usr/include/glib-2.0 -I/usr/lib/x86_64-linux-gnu/glib-2.0/include -I/usr/include/libpurple -I/usr/include -g -O2 -module -avoid-version -lpurple -lglib-2.0 -lgpgme -L/usr/lib/x86_64-linux-gnu -lgpg-error -no-undefined -L/root/Pidgin-GPG/win32libs -o pidgin_gpg.la -rpath /usr/local/lib/pidgin pidgin_gpg_la-pidgin-gpg.lo
libtool: link: i586-mingw32msvc-gcc -shared .libs/pidgin_gpg_la-pidgin-gpg.o -lpurple -lglib-2.0 -lgpgme -L/usr/lib/x86_64-linux-gnu -lgpg-error -L/root/Pidgin-GPG/win32libs -O2 -o .libs/pidgin_gpg.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/pidgin_gpg.dll.a
Creating library file: .libs/pidgin_gpg.dll.a�[91m.�[0m�[91mlibs�[0m�[91m/�[0m�[91mpidgin_gpg_la�[0m�[91m-�[0m�[91mpidgin�[0m�[91m-�[0m�[91mgpg.o�[0m�[91m:�[0m�[91m �[0m�[91mIn�[0m�[91m �[0m�[91mfunction�[0m�[91m �[0m�[91m`�[0m�[91mget_plugin_pref_frame�[0m�[91m'�[0m�[91m:�[0m�[91m
�[0m�[91m/�[0m�[91mroot�[0m�[91m/�[0m�[91mPidgin�[0m�[91m-�[0m�[91mGPG�[0m�[91m/�[0m�[91msrc�[0m�[91m/�[0m�[91mpidgin�[0m�[91m-gpg.c:1222: undefined reference to `_g_strdup'
/root/Pidgin-GPG/src/pidgin-gpg.c:1222: undefined reference to `_g_strdup'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `plugin_load':
/root/Pidgin-GPG/src/pidgin-gpg.c:1141: undefined reference to `_g_str_equal'
/root/Pidgin-GPG/src/pidgin-gpg.c:1141: undefined reference to `_g_str_hash'
/root/Pidgin-GPG/src/pidgin-gpg.c:1141: undefined reference to `_g_hash_table_new'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `receiving_im_msg_cb':
/root/Pidgin-GPG/src/pidgin-gpg.c:962: undefined reference to `_g_hash_table_lookup'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `menu_action_toggle_cb':
/root/Pidgin-GPG/src/pidgin-gpg.c:988: undefined reference to `_g_hash_table_lookup'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `conversation_extended_menu_cb':
/root/Pidgin-GPG/src/pidgin-gpg.c:1078: undefined reference to `_g_hash_table_lookup'
/root/Pidgin-GPG/src/pidgin-gpg.c:1083: undefined reference to `_g_list_append'
/root/Pidgin-GPG/src/pidgin-gpg.c:1087: undefined reference to `_g_list_append'
/root/Pidgin-GPG/src/pidgin-gpg.c:1091: undefined reference to `_g_list_append'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `verify':
/root/Pidgin-GPG/src/pidgin-gpg.c:447: undefined reference to `_g_strdup'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `jabber_presence_received':
/root/Pidgin-GPG/src/pidgin-gpg.c:764: undefined reference to `_g_hash_table_replace'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `xmlnode_clear_data':
/root/Pidgin-GPG/src/pidgin-gpg.c:69: undefined reference to `_g_return_if_fail_warning'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `jabber_send_signal_cb':
/root/Pidgin-GPG/src/pidgin-gpg.c:788: undefined reference to `_g_list_find'
/root/Pidgin-GPG/src/pidgin-gpg.c:792: undefined reference to `_g_str_equal'
/root�[0m
�[91m/Pidgin-GPG/src/pidgin-gpg.c:832: undefined reference to `_g_str_equal'
/root/Pidgin-GPG/src/pidgin-gpg.c:839: undefined reference to `_g_strdup'
/root/Pidgin-GPG/src/pidgin-gpg.c:844: undefined reference to `_g_hash_table_lookup'
/root/Pidgin-GPG/src/pidgin-gpg.c:788: undefined reference to `_g_return_if_fail_warning'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `is_key_available':
/root/Pidgin-GPG/src/pidgin-gpg.c:196: undefined reference to `_g_strdup'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `sending_im_msg_cb':
/root/Pidgin-GPG/src/pidgin-gpg.c:1111: undefined reference to `_g_hash_table_lookup'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `menu_action_retrievekey_cb':
/root/Pidgin-GPG/src/pidgin-gpg.c:1043: undefined reference to `_g_hash_table_lookup'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `conversation_created_cb':
/root/Pidgin-GPG/src/pidgin-gpg.c:898: undefined reference to `_g_hash_table_lookup'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `get_key_armored':
/root/Pidgin-GPG/src/pidgin-gpg.c:268: undefined reference to `_g_strdup'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `jabber_message_received':
/root/Pidgin-GPG/src/pidgin-gpg.c:677: undefined reference to `_g_hash_table_lookup'
.libs/pidgin_gpg_la-pidgin-gpg.o: In function `decrypt':
/root/Pidgin-GPG/src/pidgin-gpg.c:596: undefined reference to `_g_strdup'
collect2: ld returned 1 exit status
�[0m�[91mmake[2]: �[0m�[91m*** [pidgin_gpg.la] Error 1�[0m�[91m
�[0mmake[2]: Leaving directory `/root/Pidgin-GPG/src'
�[91mmake[1]: �[0m�[91m*** [all-recursive] Error 1�[0m�[91m
�[0mmake[1]: Leaving directory `/root/Pidgin-GPG'
�[91mmake: �[0m�[91m*** [all] Error 2
The text was updated successfully, but these errors were encountered:
Ok some header is adding an underscore in front of the glib functions. That seems not to be correct.
Which distros and packages are you using to build this?
Edit 1:
I found out that this error only appears with
./configure --host i586-mingw32msvc
No matter if it is the real i586 mingw or the newer i686-w64 version, the error is the same.
The project compiles fine without defining a target host.
Edit 2:
It could be the glib_cv_uscore flag that is set wrong from the configure script. I don't know how to fix that yet. :/
Edit 3:
Ok renaming /usr/lib/x86_64-linux-gnu/libglib-2.0.a helps. That forces the underscore check to the supplied libglib-2.0.dll and make succeeds, producing a pidgin_gpg.dll! Very very hacky approach but it works, yayy!
BUT: Pidgin isnt able to load that plugin! Debug window tells:
plugins: C:\Program Files (x86)\Pidgin\plugins\pidgin_gpg.dll is not loadable: `C:\Program Files (x86)\Pidgin\plugins\pidgin_gpg.dll': Das angegebene Modul wurde nicht gefunden.
Looking into depends of pidgin_gpg.dll shows that the library names it depends on are messed up. Renaming them to libgpgme-11.dll and libglib-2.0-0.dll doesn't help. The libpurple.dll is is missing depending libraries itself. The original one in the pidgin main folder too. This looks all very messed up. Getting this plugin to work on win32 is really painful.. :(
Edit 4:
Ok i got it working by putting only the renamed libgpgme-11.dll and libgpg-error-0.dll in the pidgin main folder. This win32 mode really needs some love!
There are missing glib references when linking in win32 mode.
I had to install gcc-multilib to be able to compile, otherwise bits/predefs.h is missing.
I am cross-compiling from debian wheezy with gcc-mingw32. Any ideas?
The text was updated successfully, but these errors were encountered: