After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 724259 - cross-compiling gnutls for win32 from Linux fails
cross-compiling gnutls for win32 from Linux fails
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: packages
git master
Other Linux
: Normal normal
: 1.5.1
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-02-13 00:34 UTC by Olivier Crête
Modified: 2014-11-08 14:14 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Olivier Crête 2014-02-13 00:34:26 UTC
I get this:

/bin/sh ../libtool  --tag=CC   --mode=link i686-w64-mingw32-gcc     -Wall -g -O2 -DWINVER=0x0501 -D_WIN32_WINNT=0x0501 -no-undefined -export-symbols-regex '^xssl.*' -version-info 0:0:0 -Wl,--output-def,libgnutls-xssl-28.def -L/home/ocrete/cerbero/dist/windows_x86/lib  -o libgnutls-xssl.la -rpath /home/ocrete/cerbero/dist/windows_x86/lib xssl.lo xssl_getline.lo ../gl/libgnu.la libgnutls.la -lintl 
libtool: link: i686-w64-mingw32-nm  .libs/xssl.o .libs/xssl_getline.o   ../gl/.libs/libgnu.a | sed -n -e 's/^.*[	 ]\([ABCDGIRSTW][ABCDGIRSTW]*\)[	 ][	 ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' | /usr/bin/sed -e '/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //' | sort | uniq > .libs/libgnutls-xssl.exp
libtool: link: /usr/bin/grep -E -e "^xssl.*" ".libs/libgnutls-xssl.exp" > ".libs/libgnutls-xssl.expT"
libtool: link: mv -f ".libs/libgnutls-xssl.expT" ".libs/libgnutls-xssl.exp"
libtool: link: if test "x`/usr/bin/sed 1q .libs/libgnutls-xssl.exp`" = xEXPORTS; then cp .libs/libgnutls-xssl.exp .libs/libgnutls-xssl-0.dll.def; else echo EXPORTS > .libs/libgnutls-xssl-0.dll.def; cat .libs/libgnutls-xssl.exp >> .libs/libgnutls-xssl-0.dll.def; fi
libtool: link:  i686-w64-mingw32-gcc -shared .libs/libgnutls-xssl-0.dll.def  .libs/xssl.o .libs/xssl_getline.o  -Wl,--whole-archive ../gl/.libs/libgnu.a -Wl,--no-whole-archive  -L/home/ocrete/cerbero/dist/windows_x86/lib /home/ocrete/cerbero/dist/windows_x86/lib/libiconv.dll.a -lws2_32 ./.libs/libgnutls.dll.a /home/ocrete/cerbero/dist/windows_x86/lib/libintl.dll.a  -O2 -Wl,--output-def -Wl,libgnutls-xssl-28.def   -o .libs/libgnutls-xssl-0.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libgnutls-xssl.dll.a
Creating library file: .libs/libgnutls-xssl.dll.a.libs/xssl.o: In function `xssl_printf':
/home/ocrete/cerbero/sources/windows_x86/gnutls-3.2.10/lib/xssl.c:650: undefined reference to `_gnutls_vasprintf'
collect2: error: ld returned 1 exit status

make[4]: *** [libgnutls-xssl.la] Error 1
make[4]: Leaving directory `/home/ocrete/cerbero/sources/windows_x86/gnutls-3.2.10/lib'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/ocrete/cerbero/sources/windows_x86/gnutls-3.2.10/lib'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/ocrete/cerbero/sources/windows_x86/gnutls-3.2.10/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ocrete/cerbero/sources/windows_x86/gnutls-3.2.10'
make: *** [all] Error 2
Running command 'make'
Comment 1 Edward Hervey 2014-04-07 08:33:09 UTC
Builds fine with current master

./cerbero-uninstalled -c config/cross-win32.cbc 

[(32/71) gnutls -> fetch ]
[(32/71) gnutls -> extract ]
[(32/71) gnutls -> configure ]
-----> copying /home/bilboed/work/cerbero/data/autotools/config.guess to /home/bilboed/cerbero/sources/windows_x86/gnutls-3.0.22/build-aux/config.guess
-----> copying /home/bilboed/work/cerbero/data/autotools/config.sub to /home/bilboed/cerbero/sources/windows_x86/gnutls-3.0.22/build-aux/config.sub
[(32/71) gnutls -> compile ]
[(32/71) gnutls -> install ]
[(32/71) gnutls -> post_install ]
[(32/71) gnutls -> gen_library_file ]